/**
  * Queue header scripts
  *
  * Queues script libraries and stylesheets to include in header
  *
  * @return null
  */
 public function viewerHead($params)
 {
     $libUrl = absolute_url('plugins/MultimediaDisplay/libraries/mediaelement/build/');
     $libUrl = str_replace('admin/', '', $libUrl);
     queue_js_url($libUrl . 'mediaelement-and-player.min.js');
     queue_css_url($libUrl . 'mediaelementplayer.css');
 }
 public function hookAdminHead()
 {
     $request = Zend_Controller_Front::getInstance()->getRequest();
     if ($request->getModuleName() == 'default' && $request->getControllerName() == 'plugins' && $request->getActionName() == 'config' && $request->getParam('name') == 'SocialBookmarking') {
         queue_css_url('http://cache.addthiscdn.com/icons/v1/sprites/services.css');
     }
 }
Exemple #3
0
 public function hookExhibitBuilderPageHead($args)
 {
     if (array_key_exists('mosaic', $args['layouts'])) {
         queue_js_url(url('/plugins/Mosaic/highslide/highslide-full.js'));
         queue_css_url(url('/plugins/Mosaic/highslide/highslide.css'));
         queue_js_string("\$ = jQuery");
         $graphicsDir = url('/plugins/Mosaic/highslide/graphics/');
         queue_js_string("\n                    jQuery(document).ready(function() {\n                        hs.graphicsDir ='{$graphicsDir}';\n                    })\n            ");
     }
 }
">
    <?php 
}
?>

    <?php 
echo auto_discovery_link_tags();
?>
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>

    <?php 
queue_css_url('https://lib.bgsu.edu/assets/css/font-awesome.css');
queue_css_url('https://lib.bgsu.edu/assets/css/photoswipe.css');
queue_css_url('https://lib.bgsu.edu/assets/css/photoswipe/default-skin.css');
queue_js_url('https://lib.bgsu.edu/assets/js/photoswipe.js');
queue_js_url('https://lib.bgsu.edu/assets/js/photoswipe-ui-default.js');
queue_js_url('https://lib.bgsu.edu/assets/js/typogr.js');
$style = (include __DIR__ . '/../style/' . get_theme_option('style') . '.php');
echo head_css();
echo head_js();
?>
</head>
<?php 
echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass));
?>
    <a href="#content" id="skipnav" class="sr-only sr-only-focusable"><?php 
echo __('Skip to main content');
?>
</a>
Exemple #5
0
<?php

//<!-- LiquidSlider scripts with items/show -->
queue_css_url(WEB_ROOT . '/themes/seasons-ahp/liquidslider/css/liquid-slider.css');
queue_js_url(WEB_ROOT . '/themes/seasons-ahp/javascripts/jquery/1.9.1/jquery.min.js');
queue_js_url(WEB_ROOT . '/themes/seasons-ahp/liquidslider/js/jquery.easing.1.3.js');
queue_js_url(WEB_ROOT . '/themes/seasons-ahp/liquidslider/js/jquery.touchSwipe.min.js');
queue_js_url(WEB_ROOT . '/themes/seasons-ahp/liquidslider/js/jquery.liquid-slider.min.js');
$js = "\n\t\t\$(function(){\n      /* Here is the slider using default settings */\n      \$('#slider-id').liquidSlider();\n      /* If you want to adjust the settings, you set an option\n         as follows:\n          \$('#slider-id').liquidSlider({\n            autoSlide:false,\n            autoHeight:false\n          });\n\n         Find more options at http://liquidslider.kevinbatdorf.com/\n      */\n      /* If you need to access the internal property or methods, use this:\n      var sliderObject = \$.data( \$('#slider-id')[0], 'liquidSlider');\n      console.log(sliderObject);\n      */\n    });\n";
queue_js_string($js);
echo head(array('title' => metadata('item', array('Dublin Core', 'Title')), 'bodyclass' => 'items show'));
?>

<h1><?php 
echo metadata('item', array('Dublin Core', 'Title'));
?>
</h1>
<!-- Liquid Slider Begins Here-->
    <?php 
if (get_theme_option('Item FileGallery') == 0 && metadata('item', 'has files')) {
    $attrs = array('wrapper' => array('id' => 'slider-id', 'class' => 'liquid-slider'));
    echo custom_item_image_gallery($attrs);
}
?>
<!-- Liquid Slider Ends Here -->

<div id="primary">

    <?php 
echo all_element_texts('item');
?>
    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>

    <!-- Stylesheets -->
    <!-- Le styles -->
    <?php 
queue_css_url('http://fonts.googleapis.com/css?family=Oxygen');
queue_css_url('http://fonts.googleapis.com/css?family=Inconsolata');
queue_css_url('http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css');
queue_css_file(array('bootstrap_journal', 'font-awesome', 'style', 'ol', 'custom', 'small_nav'));
echo head_css();
?>

    <!-- JavaScripts -->
    <?php 
// jQuery is enabled by default in Omeka and in most themes.
// queue_js_url('https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
// queue_js_url('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js');
queue_js_file(array('bootstrap.min', 'jquery.bxSlider.min'));
echo head_js();
?>
</head>

<?php 
Exemple #7
0
// Builds query string appended to requests for Bootstrap CSS.
$theme_query = http_build_query(array('brand-primary' => '#F1596C', 'headings-font-family' => "'Varela Round',sans-serif"), '', '&');
// Defines style settings for the theme.
$theme_style = array('logo' => array('header' => '<img width="290" height="42" class="logo-header"' . ' src="' . img('logo/em.png') . '"' . ' alt="' . __('Enacted Metadata - ' . 'Special Collections Brought to Life') . '">', 'navbar' => false, 'footer' => '<img width="190" height="50" class="logo-footer"' . ' src="https://lib.bgsu.edu/assets/img/ul-black.svg"' . ' alt="' . __('BGSU University Libraries') . '">'), 'home' => array('header' => false, 'navbar' => false, 'footer' => false), 'search' => false, 'navbar' => true, 'footer' => true, 'item' => array('browse' => array('sort' => array('Dublin Core,Title' => __('Title'), 'added' => __('Date Added')), 'picture' => true, 'elements' => false, 'description' => true, 'tags' => __('Tags:')), 'show' => array('pictures' => __('Files'), 'elements' => true, 'files' => false, 'collection' => false, 'tags' => __('Tags'), 'citation' => __('Citation'))));
// Make changes to theme if displayed as part of a collection or exhibit.
if (!empty($exhibit)) {
    // Change home to exhibit homepage.
    $theme_style['home']['header'] = record_url($exhibit);
    // Change navigation to top pages of the exhibit.
    $theme_style['navbar'] = __DIR__ . '/../nav/exhibit-pages.php';
} elseif (!empty($collection)) {
    // Change home to collection homepage.
    $theme_style['home']['header'] = record_url($collection);
    // Change navbar to link to ways of viewing collection.
    $theme_style['navbar'] = __DIR__ . '/../nav/items.php';
    // Change page search to search across collection.
    $theme_style['search'] = array('collection' => $collection->id);
}
// Load Bootstrap and Bootstrap theme files with appropriate variables.
queue_css_url('https://lib.bgsu.edu/assets/theme/bootstrap.css?' . $theme_query);
queue_css_url('https://lib.bgsu.edu/assets/theme/bootstrap-theme.css?' . $theme_query);
// Load main CSS file for the theme.
queue_css_file('theme');
// Load CSS file for this style.
queue_css_url('https://fonts.googleapis.com/css?family=Varela+Round');
queue_css_file('style/em');
// Load Javascript files for Bootstrap and the theme.
queue_js_url('https://lib.bgsu.edu/assets/js/bootstrap.js');
queue_js_file('theme');
// Return style information.
return $theme_style;
 /**
  * Queue header scripts
  *
  * Queues script libraries and stylesheets to include in header
  *
  * @return null
  */
 public function viewerHead($params)
 {
     $libDir = dirname(dirname(dirname(__FILE__))) . '/libraries/ohmsviewer/';
     $config = parse_ini_file($libDir . "config/config.ini", true);
     if (empty($params['cacheFileName'])) {
         throw new Exception('Item cannot be displayed. No cache file specified for Ohms Viewer.');
         return;
     }
     $cachefile = is_array($params['cacheFileName']) ? $params['cacheFileName'][0] : $params['cacheFileName'];
     require_once $libDir . 'lib/CacheFile.class.php';
     $liburl = absolute_url('/plugins/MultimediaDisplay/libraries/ohmsviewer/');
     $liburl = str_replace('admin/', '', $liburl);
     $cssurl = $liburl . 'css/';
     $jsurl = $liburl . 'js/';
     //queue_css_url($cssurl.$config['css']);
     queue_css_url($cssurl . 'viewer.css');
     queue_css_url($cssurl . 'jquery-ui.toggleSwitch.css');
     queue_css_url($cssurl . 'jquery-ui-1.8.16.custom.css');
     queue_css_url($cssurl . 'font-awesome.css');
     queue_css_url($cssurl . 'jquery.fancybox.css');
     queue_css_url($cssurl . 'jquery.fancybox-buttons.css');
     queue_css_url($cssurl . 'jquery.fancybox-thumbs.css');
     queue_css_url($cssurl . 'jplayer.blue.monday.css');
     queue_js_url('//ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js');
     queue_js_url($jsurl . 'jquery-ui.toggleSwitch.js');
     queue_js_url($jsurl . 'viewer_legacy.js');
     queue_js_url($jsurl . 'jquery.jplayer.min.js');
     queue_js_url($jsurl . 'jquery.easing.1.3.js');
     queue_js_url($jsurl . 'jquery.scrollTo-min.js');
     queue_js_url($jsurl . 'fancybox_2_1_5/source/jquery.fancybox.pack.js');
     queue_js_url($jsurl . 'fancybox_2_1_5/source/helpers/jquery.fancybox-buttons.js');
     queue_js_url($jsurl . 'fancybox_2_1_5/source/helpers/jquery.fancybox-media.js');
     queue_js_url($jsurl . 'fancybox_2_1_5/source/helpers/jquery.fancybox-thumbs.js');
 }
Exemple #9
0
// Builds query string appended to requests for Bootstrap CSS.
$theme_query = http_build_query(array('brand-primary' => '#ff7300', 'headings-font-family' => "Georgia,'Times New Roman',serif"), '', '&');
// Defines style settings for the theme.
$theme_style = array('logo' => array('header' => '<img width="300" height="124" class="logo-header"' . ' src="' . img('logo/ccam.png') . '"' . ' alt="' . __('Cochrane Cunningham Archive & Museum') . '">', 'navbar' => false, 'footer' => '<img width="190" height="50" class="logo-footer"' . ' src="https://lib.bgsu.edu/assets/img/ul-white.svg"' . ' alt="' . __('BGSU University Libraries') . '">'), 'home' => array('header' => false, 'navbar' => false, 'footer' => false), 'search' => false, 'navbar' => true, 'footer' => true, 'item' => array('browse' => array('sort' => array('Dublin Core,Title' => __('Title'), 'added' => __('Date Added')), 'picture' => true, 'elements' => false, 'description' => true, 'tags' => __('Tags:')), 'show' => array('pictures' => __('Files'), 'elements' => true, 'files' => false, 'collection' => false, 'tags' => __('Tags'), 'citation' => __('Citation'))));
// Make changes to theme if displayed as part of a collection or exhibit.
if (!empty($exhibit)) {
    // Change home to exhibit homepage.
    $theme_style['home']['header'] = record_url($exhibit);
    // Change navigation to top pages of the exhibit.
    $theme_style['navbar'] = __DIR__ . '/../nav/exhibit-pages.php';
} elseif (!empty($collection)) {
    // Change home to collection homepage.
    $theme_style['home']['header'] = record_url($collection);
    // Change navbar to link to ways of viewing collection.
    $theme_style['navbar'] = __DIR__ . '/../nav/items.php';
    // Change page search to search across collection.
    $theme_style['search'] = array('collection' => $collection->id);
}
// Load Bootstrap and Bootstrap theme files with appropriate variables.
queue_css_url('https://lib.bgsu.edu/assets/theme/bootstrap.css?' . $theme_query);
queue_css_url('https://lib.bgsu.edu/assets/theme/bootstrap-theme.css?' . $theme_query);
// Load main CSS file for the theme.
queue_css_file('theme');
// Load CSS file for this style.
queue_css_file('style/ccam');
// Load Javascript files for Bootstrap and the theme.
queue_js_url('https://lib.bgsu.edu/assets/js/bootstrap.js');
queue_js_file('theme');
// Return style information.
return $theme_style;
Exemple #10
0
</title>

    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>

    <!-- Stylesheets -->
    <!-- Le styles -->
    <?php 
queue_css_url('http://fonts.googleapis.com/css?family=Oxygen');
queue_css_url('http://fonts.googleapis.com/css?family=Inconsolata');
queue_css_file(array('bootstrap', 'font-awesome', 'style', 'ol'));
echo head_css();
?>

    <!-- JavaScripts -->
    <?php 
// jQuery is enabled by default in Omeka and in most themes.
// queue_js_url('https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
// queue_js_url('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js');
queue_js_file(array('jquery.bxSlider.min'));
echo head_js();
?>
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
Exemple #11
0
    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->

    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>


    <!-- Stylesheets -->
    <?php 
queue_css_file(array('iconfonts', 'style'));
queue_css_url('//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic');
echo head_css();
echo theme_header_background();
?>

    <?php 
($backgroundColor = get_theme_option('background_color')) || ($backgroundColor = "#FFFFFF");
($textColor = get_theme_option('text_color')) || ($textColor = "#444444");
($linkColor = get_theme_option('link_color')) || ($linkColor = "#888888");
($buttonColor = get_theme_option('button_color')) || ($buttonColor = "#000000");
($buttonTextColor = get_theme_option('button_text_color')) || ($buttonTextColor = "#FFFFFF");
($titleColor = get_theme_option('header_title_color')) || ($titleColor = "#000000");
?>
    <style>
        body {
            background-color: <?php 
    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->

    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>


    <!-- Stylesheets -->
    <?php 
queue_css_file('style');
queue_css_url('http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Gafata&subset=latin,latin-ext');
echo head_css();
echo theme_header_background();
?>
    <style>
        #site-title a:link, #site-title a:visited,
        #site-title a:active, #site-title a:hover {
            color: #<?php 
echo ($titleColor = get_theme_option('header_title_color')) ? $titleColor : "000000";
?>
;
            <?php 
if (get_theme_option('header_background')) {
    ?>
            text-shadow: 0px 0px 20px #000;
            <?php 
    <?php 
echo auto_discovery_link_tags();
?>

<!-- Plugin Stuff -->

    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>


<!-- Stylesheets -->
    <?php 
queue_css_file('normalize');
queue_css_file('style');
queue_css_url('http://fonts.googleapis.com/css?family=Crimson+Text|Allerta');
echo head_css();
echo theme_header_background();
?>
	
<!-- JavaScripts -->
	<?php 
queue_js_file('modernizr');
?>
	<?php 
queue_js_file('selectivizr-min');
?>
	<?php 
queue_js_file('respond.min');
?>
	<?php 
echo implode(' &middot; ', $titleParts);
?>
</title>

    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>

    <!-- Stylesheets -->
    <?php 
queue_css_url('//fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic|Droid+Serif:400,700|Oxygen:400');
//queue_css_file('normalize');
queue_css_file('bootstrap/css/bootstrap', 'screen');
queue_css_file('style', 'screen');
queue_css_file('print', 'print');
echo head_css();
?>

    <!-- JavaScripts -->
    <?php 
queue_js_file('vendor/modernizr');
?>
    <?php 
queue_js_file('vendor/selectivizr');
?>
    <?php 
 public function hookPublicHead($args)
 {
     queue_js_url("//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js");
     queue_css_url('//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css');
     queue_css_file('geolocation-marker');
     queue_js_file('map');
 }
Exemple #16
0
?>
    <title><?php 
echo implode(' &middot; ', $titleParts);
?>
</title>

    <?php 
echo auto_discovery_link_tags();
?>

    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>
    <!-- Stylesheets -->
    <?php 
queue_css_url('http://fonts.googleapis.com/css?family=Playfair+Display:700,400|Playfair+Display+SC:400&subset=latin');
queue_css_file(array('iconfonts', 'style'));
echo head_css();
if ($background = get_theme_option('Background Image')) {
    $storage = Zend_Registry::get('storage');
    $uri = $storage->getUri($storage->getPathByType($background, 'theme_uploads'));
    echo '<style>body { background: url("' . $uri . '") repeat; }</style>';
}
?>
    <!-- JavaScripts -->
    <?php 
queue_js_file('vendor/selectivizr', 'javascripts', array('conditional' => '(gte IE 6)&(lte IE 8)'));
?>
    <?php 
queue_js_file('vendor/respond');
?>
Exemple #17
0
/**
 * Styles for admin bar.
 */
function admin_bar_css()
{
    queue_css_url('//fonts.googleapis.com/css?family=Arvo:400', 'screen');
    queue_css_file('admin-bar', 'screen');
}
Exemple #18
0
echo implode(' &middot; ', $titleParts);
?>
</title>

    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>

    <!-- Stylesheets -->
    <?php 
queue_css_url('//fonts.googleapis.com/css?family=Lato');
queue_css_file(array('iconfonts', 'style'));
echo head_css();
?>

    <!-- JavaScripts -->
    <?php 
queue_js_file(array('jquery-accessibleMegaMenu', 'emiglio', 'globals'));
echo head_js();
?>
</head>

<?php 
echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass));
?>
    <a href="#content" id="skipnav"><?php 
echo implode(' &middot; ', $titleParts);
?>
</title>

    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>

    <!-- Stylesheets -->
    <?php 
queue_css_url('//fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic');
queue_css_file(array('iconfonts', 'normalize', 'style'), 'screen');
queue_css_file('print', 'print');
echo head_css();
?>

    <!-- JavaScripts -->
    <?php 
queue_js_file('vendor/modernizr');
?>
    <?php 
queue_js_file('vendor/selectivizr');
?>
    <?php 
queue_js_file('jquery-extra-selectors');
?>
/**
 * Add a CSS file or files to the current page.
 *
 * All stylesheets will be included in the page's head. This needs to be
 * called either before head(), or in a plugin_header hook.
 *
 * @package Omeka\Function\View\Asset
 * @see head_css()
 * @param string|array $file File to use, if an array is passed, each array
 * member will be treated like a file.
 * @param string $media CSS media declaration, defaults to 'all'.
 * @param string|bool $conditional IE-style conditional comment, used generally
 * to include IE-specific styles. Defaults to false.
 * @param string $dir Directory to search for the file.  Keeping the default is
 * recommended.
 */
function queue_css_file($file, $media = 'all', $conditional = false, $dir = 'css')
{
    if (is_array($file)) {
        foreach ($file as $singleFile) {
            queue_css_file($singleFile, $media, $conditional, $dir);
        }
        return;
    }
    queue_css_url(css_src($file, $dir), $media, $conditional);
}
    <title><?php 
echo __('Omeka Admin');
?>
: <?php 
echo option('site_title');
echo isset($title) ? ' | ' . strip_formatting($title) : '';
?>
</title>

<?php 
queue_css_file(array('style', 'skeleton', 'jquery-ui'));
queue_css_file('media/960min', 'only screen and (min-width: 960px)');
queue_css_file('media/768min', 'only screen and (min-width: 768px) and (max-width: 959px)');
queue_css_file('media/767max', 'only screen and (max-width: 767px)');
queue_css_file('media/479max', 'only screen and (max-width: 479px)');
queue_css_url('https://fonts.googleapis.com/css?family=Arvo:400,700,400italic,700italic|Cabin:400,700,400italic,700italic');
queue_js_file(array('vendor/respond', 'vendor/modernizr', 'vendor/selectivizr', 'globals'));
?>

<!-- Stylesheets -->
<?php 
echo head_css();
?>

<!-- JavaScripts -->
<?php 
echo head_js();
?>
</head>

<body id="upgrade">
echo implode(' &middot; ', $titleParts);
?>
</title>

  <?php 
echo auto_discovery_link_tags();
?>

  <!-- Plugin Stuff -->
  <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>
  
  <!-- Stylesheets -->
  <?php 
queue_css_url('//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic,800,800italic|Cardo:400,400italic,700');
queue_css_file('screen', 'screen');
queue_css_file('bootstrap.min', 'all');
echo head_css();
?>
  
  <!-- JavaScripts -->
  <?php 
queue_js_url('//code.jquery.com/jquery-2.1.4.min.js');
queue_js_file('globals');
queue_js_file('global');
queue_js_file('masonry.pkgd');
queue_js_file('imagesloaded.pkgd');
echo head_js();
?>
  
Exemple #23
0
// Defines style settings for the theme.
$theme_style = array('logo' => array('header' => '<img width="113" height="34" class="logo-header"' . ' src="https://lib.bgsu.edu/assets/img/bgsu-white.svg"' . ' alt="' . __('BGSU') . '">', 'navbar' => '<img width="250" height="400" class="logo-navbar"' . ' src="' . img('logo/ct.png') . '"' . ' alt="' . __('Campus Tour') . '">', 'footer' => '<img width="190" height="50" class="logo-footer"' . ' src="https://lib.bgsu.edu/assets/img/ul-white.svg"' . ' alt="' . __('BGSU University Libraries') . '">'), 'home' => array('header' => false, 'navbar' => false, 'footer' => false), 'search' => false, 'navbar' => true, 'footer' => true, 'item' => array('browse' => array('sort' => array('Dublin Core,Title' => __('Title'), 'Dublin Core,Creator' => __('Creator'), 'added' => __('Date Added')), 'picture' => true, 'elements' => false, 'description' => true, 'tags' => __('Tags:')), 'show' => array('pictures' => __('Files'), 'elements' => true, 'files' => false, 'collection' => false, 'tags' => __('Tags'), 'citation' => __('Citation'))));
// Make changes to theme if displayed as part of a collection or exhibit.
if (!empty($exhibit)) {
    // Change home to exhibit homepage.
    $theme_style['home']['navbar'] = record_url($exhibit);
    // Change navigation to top pages of the exhibit.
    $theme_style['navbar'] = __DIR__ . '/../nav/exhibit-pages.php';
} elseif (!empty($collection)) {
    // Change home to collection homepage.
    $theme_style['home']['navbar'] = record_url($collection);
    // Change navbar to link to ways of viewing collection.
    $theme_style['navbar'] = __DIR__ . '/../nav/items.php';
    // Change page search to search across collection.
    $theme_style['search'] = array('collection' => $collection->id);
}
// Load Bootstrap and Bootstrap theme files with appropriate variables.
queue_css_url('https://lib.bgsu.edu/assets/theme/bootstrap.css?' . $theme_query);
queue_css_url('https://lib.bgsu.edu/assets/theme/bootstrap-theme.css?' . $theme_query);
// Load main CSS file for the theme.
queue_css_file('theme');
// Load CSS to display navigation on left of page, instead of top.
queue_css_file('sidebar');
// Load CSS file for this style.
queue_css_url('https://fonts.googleapis.com/css?family=Oleo+Script:400,700');
queue_css_file('style/ct');
// Load Javascript files for Bootstrap and the theme.
queue_js_url('https://lib.bgsu.edu/assets/js/bootstrap.js');
queue_js_file('theme');
// Return style information.
return $theme_style;
 function hookPublicHead($args)
 {
     queue_css_url('//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css');
 }
/**
 * Display the CSS layout for the exhibit in the public head
 */
function exhibit_builder_public_head($args)
{
    $request = Zend_Controller_Front::getInstance()->getRequest();
    $module = $request->getModuleName();
    if ($module == 'exhibit-builder') {
        queue_css_file('exhibits');
        if ($exhibitPage = get_current_record('exhibit_page', false)) {
            $blocks = $exhibitPage->ExhibitPageBlocks;
            $layouts = array();
            foreach ($blocks as $block) {
                $layout = $block->getLayout();
                if (!array_key_exists($layout->id, $layouts)) {
                    $layouts[$layout->id] = true;
                    try {
                        queue_css_url($layout->getAssetUrl('layout.css'));
                    } catch (InvalidArgumentException $e) {
                        // no CSS for this layout
                    }
                }
            }
            fire_plugin_hook('exhibit_builder_page_head', array('view' => $args['view'], 'layouts' => $layouts));
        }
    }
}
?>
</title>

    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Plugin Stuff -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>

    <!-- Stylesheets -->
    <?php 
queue_css_file(array('iconfonts', 'normalize', 'style'));
queue_css_url('//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic|PT+Serif:700');
echo head_css();
?>

    <!-- JavaScripts -->
    <?php 
queue_js_file(array('globals', 'vendor/jquery-accessibleMegaMenu'));
?>
    <?php 
echo head_js();
?>
</head>
<?php 
echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass));
?>
    <a href="#content" id="skipnav"><?php