OSU Logo
'; } /* * Returns the favicon embed */ function osu_drupal_1_11_get_favicon(){ return sprintf("",base_path() . drupal_get_path('theme', 'osu_drupal_1_11')) ; } /* * * You can use this to override the display of your feed icons * function THEMENAME_feed_icon($url, $title) { if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), $title)) { $result = ''. $image; $result .= 'subscribe to RSS feed'; $result .= ''; return $result; } } */ /* Uses the theme settings saved variables: * 0: Continuous rotation; * 1: Random on load * 2: Same image always * * @params bool $is_front * @params string $rotating_div The #id or .class of the div containing rotating images */ function osu_drupal_1_11_rotating_header($is_front=false, $rotating_div='#hd') { $path = osu_drupal_1_11_get_rotating_header_path(); //print_r($path); $rotating_header_type = ($is_front)?theme_get_setting('osu_rotating_header_type'):theme_get_setting('osu_second_rotating_header_type'); switch ($rotating_header_type) { case 0: include_once './' . drupal_get_path('theme', 'osu_drupal_1_11') . '/rotating-image.php'; break; case 1: $available_images = glob($path['abs'].'*'); $image = $available_images[rand(0, (count($available_images) - 1))]; echo '
'; echo 'header image'; echo '
'; break; case 2: if (theme_get_setting('osu_rotating_header_single_image')) { $image = ($is_front)?theme_get_setting('osu_rotating_header_single_image'):theme_get_setting('osu_second_rotating_header_single_image'); echo '
'; echo 'header image'; echo '
'; } break; } } /** * Overriding the zen breadcrumb function so that we can insert the * breadcrumb prefix * */ function osu_drupal_1_11_breadcrumb($breadcrumb) { if (!empty($breadcrumb) && theme_get_setting('osu_breadcrumb_first') != '') { $breadcrumb[0] = l(theme_get_setting('osu_breadcrumb_first'), ''); } // Get the breadcrumbs that zen generates $output = zen_breadcrumb($breadcrumb); if (!empty($output)) { $start_html = '