protected function queueThemFilthyAssets()
 {
     queue_js_file('esc-neatline-ext');
     queue_js_file('esc-jquery.fancybox.pack');
     queue_css_file('esc-neatline-ext');
     queue_css_file('esc-jquery.fancybox');
 }
 public function hookPublicHead($args)
 {
     queue_css_file('jcarousel.responsive');
     queue_css_file('carousel');
     queue_js_file('jcarousel.responsive');
     queue_js_file('jquery.jcarousel.min');
 }
 /**
  * Queue public payloads.
  *
  * @param array $args Array of arguments, with `exhibit`.
  */
 public function hookNeatlinePublicStatic($args)
 {
     if ($args['exhibit']->hasWidget(self::ID)) {
         queue_css_file('dist/text-public');
         queue_js_file('dist/text-public');
     }
 }
 public function hookExhibitBuilderPageHead($args)
 {
     if (array_key_exists('lightbox-gallery', $args['layouts']) || array_key_exists('lightbox-file-text', $args['layouts']) || array_key_exists('lightbox-book', $args['layouts'])) {
         queue_js_file('lightbox.min', 'javascripts/lightbox');
         queue_css_file('lightbox');
     }
 }
Пример #5
0
/**
 * Adds theme assets to queues.
 *
 * - Modernizr
 * - Respond.js
 * - Selectivizr
 * - Google Fonts style sheet
 * - Theme style sheet
 */
function queue_theme_assets()
{
    queue_js_file('modernizr.min');
    queue_js_file(array('respond.min', 'selectivizr.min'), 'javascripts', array('conditional' => 'lt IE 9'));
    get_view()->headLink()->prependStylesheet('http://fonts.googleapis.com/css?family=Crimson+Text:400,600,400italic,600italic|Cabin:400,600,400italic', 'screen');
    queue_css_file('style');
}
 /**
  * Queue editor payloads.
  *
  * @param array $args Array of arguments, with `exhibit`.
  */
 public function hookNeatlineEditorStatic($args)
 {
     if ($args['exhibit']->hasWidget(self::ID)) {
         queue_css_file('payloads/waypoints-editor');
         queue_js_file('payloads/waypoints-editor');
     }
 }
 public function hookExhibitBuilderPageHead($args)
 {
     queue_css_file('slick');
     queue_js_file('slick');
     queue_css_file('jquery.fancybox');
     queue_css_file('jquery.fancybox-buttons');
     queue_js_file('jquery.fancybox');
 }
 /**
  * Queue css and javascript files when admin section loads
  *
  *@return void
  */
 public function hookAdminHead()
 {
     $language = array('PleaseWait' => __('Please wait...'), 'Title' => __('Title'), 'Description' => __('Description'), 'ItemType' => __('Item Type'), 'Item' => __('Item'), 'Field' => __('Field'), 'OldValue' => __('Old Value'), 'NewValue' => __('New Value'), 'ErrorGeneratingPreview' => __('Error generating preview! :('), 'CouldNotGeneratePreview' => __('Apologies, but we could not generate a preview at this time.') . ' ' . __('You may be asking for too many changes at once.') . ' ' . __('Anyway, the bulk edition will be done in the background.'), 'ItemsPreviewRequestTooLong' => __('The items preview request is taking too long!') . ' ' . __('You must be trying to select a ton of items at once.') . ' ' . __('Preview is not possible, but the bulk edition will be done in the background.'), 'FieldsPreviewRequestTooLong' => __('The fields preview request is taking too long!') . ' ' . __('You must be trying to select a ton of fields at once.') . ' ' . __('Preview is not possible, but the bulk edition will be done in the background.'), 'ChangesPreviewRequestTooLong' => __('The changes preview request is taking too long!') . ' ' . __('You must be trying to make a ton of changes at once.') . ' ' . __('Preview is not possible, but the bulk edition will be done in the background.'), 'SelectActionPerform' => __('Please select an action to perform.'), 'NoItemFound' => __('No matching items found.'), 'NoFieldFound' => __('No matching field found.'), 'NoChange' => __('No change or no preview.'), 'PlusItems' => __('Plus %s more items.', '%s'), 'PlusFields' => __('...and corresponding fields from a total of %s items.', '%s'), 'PlusChanges' => __('...and changes for a total of %s items.', '%s'), 'ShowMore' => __('Show more.'));
     $language = json_encode($language);
     queue_js_string("Omeka.BulkMetadataEditor = {language: {$language}};");
     queue_js_file('BulkMetadataEditor');
     queue_css_file('BulkMetadataEditor');
 }
 /**
  * Queue editor payloads.
  *
  * @param array $args Array of arguments, with `exhibit`.
  */
 public function hookNeatlineEditorStatic($args)
 {
     if ($args['exhibit']->hasWidget(self::ID)) {
         simile_queueSimileApi();
         queue_css_file('dist/simile-public');
         queue_js_file('dist/simile-editor');
     }
 }
/**
 * Include exhibit-specific theme assets.
 *
 * @param NeatlineExhibit $exhibit The exhibit.
 */
function nl_queueExhibitTheme($exhibit)
{
    try {
        queue_css_file('style', null, false, "exhibits/themes/{$exhibit->slug}");
        queue_js_file('script', "exhibits/themes/{$exhibit->slug}");
    } catch (Exception $e) {
    }
}
Пример #11
0
 public function hookPublicHead($args)
 {
     if (substr(current_url(), 0, 11) == '/items/show') {
         queue_js_file('openseadragon.min');
         queue_js_file('zoom');
         queue_css_file('zoom');
     }
 }
 function hookPublicHead()
 {
     queue_js_file('getUserMedia.min');
     queue_css_file('audio_recorder');
     queue_css_file('dialog/jquery-ui.min');
     queue_css_file('dialog/jquery-ui.theme.min');
     queue_css_file('dialog/jquery-ui.structure.min');
 }
 public function reorderAction()
 {
     queue_js_file('reorderelementtexts_drag');
     queue_css_file('reorderelementtexts_drag');
     $data = SELF::checkItemElement();
     $this->view->elements = $data["elements"];
     $this->view->output = $data["output"];
     $this->view->title = $data["title"];
     $this->view->elementTitle = $data["elementTitle"];
 }
Пример #14
0
 public function hookAdminHead()
 {
     $selector = get_option('select2_css_selector');
     if ($selector) {
         queue_js_file('select2.min');
         queue_css_file('select2.min');
         $selector = preg_replace('/\\s+/', ' ', $selector);
         $selector = json_encode($selector);
         queue_js_string("\n                Omeka.Select2 = {};\n                Omeka.Select2.CssSelector = {$selector};\n            ");
         queue_js_file('select2_apply');
     }
 }
Пример #15
0
 public function hookPublicHead($args)
 {
     $request = Zend_Controller_Front::getInstance()->getRequest();
     if ($request->getControllerName() == 'items' && $request->getActionName() == 'show') {
         //add javascript and css for dealing with the user tags only to item show pages
         $view = $args['view'];
         //don't know why $view->item isn't giving me the object, but it isn't, so go via request
         $itemId = $request->getParam('id');
         queue_css_file('user-tags');
         queue_css_file('jquery-ui');
         queue_js_file('user-tags');
         $js = "UserTags.webRoot = '" . WEB_ROOT . "'; ";
         $js .= "UserTags.itemId = " . $itemId . "; ";
         queue_js_string($js);
     }
 }
/**
 * Queues JavaScript and CSS for NeatlineTime in the page header.
 *
 * @since 1.0
 * @return void.
 */
function queue_timeline_assets()
{
    $headScript = get_view()->headScript();
    $headScript->appendFile(src('neatline-time-scripts.js', 'javascripts'));
    // Check useInternalJavascripts in config.ini.
    $config = Zend_Registry::get('bootstrap')->getResource('Config');
    $useInternalJs = isset($config->theme->useInternalJavascripts) ? (bool) $config->theme->useInternalJavascripts : false;
    if ($useInternalJs) {
        $timelineVariables = 'Timeline_ajax_url="' . src('simile-ajax-api.js', 'javascripts/simile/ajax-api') . '"; ' . 'Timeline_urlPrefix="' . dirname(src('timeline-api.js', 'javascripts/simile/timeline-api')) . '/"; ' . 'Timeline_parameters="bundle=true";';
        $headScript->appendScript($timelineVariables);
        $headScript->appendFile(src('timeline-api.js', 'javascripts/simile/timeline-api'));
    } else {
        $headScript->appendFile('http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js?bundle=true');
    }
    $headScript->appendScript('SimileAjax.History.enabled = false; window.jQuery = SimileAjax.jQuery');
    queue_css_file('neatlinetime-timeline');
}
Пример #17
0
 public function hookPublicHead($args)
 {
     queue_css_file('sotn');
     queue_js_file('corrections');
 }
Пример #18
0
<?php

/**
 * @version $Id$
 * @license http://www.gnu.org/licenses/gpl-3.0.txt
 * @copyright Center for History and New Media, 2013
 * @package Contribution
 */
queue_css_file('contribution-browse');
queue_js_file('contribution-contributed-item');
queue_js_file('contribution-browse');
contribution_admin_header(array(__('Contributed Items (%d)', $total_results)));
// To avoid to determine rights for each record.
$allowToManage = is_allowed('Items', 'edit') || is_allowed('Items', 'update') || is_allowed('Items', 'delete');
echo $this->partial('contribution-navigation.php');
?>

<div id="primary">

<?php 
echo flash();
if (!Omeka_Captcha::isConfigured()) {
    ?>
    <p class="alert"><?php 
    echo __("You have not entered your %s API keys under %s. We recommend adding these keys, or the contribution form will be vulnerable to spam.", '<a href="http://recaptcha.net/">reCAPTCHA</a>', "<a href='" . url('settings/edit-security#fieldset-captcha') . "'>" . __('security settings') . "</a>");
    ?>
</p>
<?php 
}
if ($total_results) {
    ?>
Пример #19
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;
Пример #20
0
<?php

/**
 * @package     omeka
 * @subpackage  solr-search
 * @copyright   2012 Rector and Board of Visitors, University of Virginia
 * @license     http://www.apache.org/licenses/LICENSE-2.0.html
 */
?>

<?php 
queue_js_file('accordion');
queue_css_file('fields');
?>

<?php 
echo head(array('title' => __('Solr Search | Field Configuration')));
?>

<div id="solr-fields">

  <?php 
echo $this->partial('admin/partials/navigation.php', array('tab' => 'fields'));
?>

  <div id="primary">

    <h2><?php 
echo __('Field Configuration');
?>
</h2>
Пример #21
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_file(array('iconfonts', 'skeleton', 'style'));
echo head_css();
?>
    <!-- JavaScripts -->
    <?php 
queue_js_file('vendor/selectivizr', 'javascripts', array('conditional' => '(gte IE 6)&(lte IE 8)'));
?>
    <?php 
queue_js_file('vendor/respond');
?>
    <?php 
queue_js_file('vendor/jquery-accessibleMegaMenu');
?>
    <?php 
queue_js_file('berlin');
?>
Пример #22
0
/**
 * Display the CSS style and javascript for the exhibit in the admin head
 */
function exhibit_builder_admin_head()
{
    $request = Zend_Controller_Front::getInstance()->getRequest();
    $module = $request->getModuleName();
    $controller = $request->getControllerName();
    // Check if using Exhibits controller, and add the stylesheet for general display of exhibits
    if ($module == 'exhibit-builder' && $controller == 'exhibits') {
        queue_css_file('exhibits', 'screen');
        queue_js_file(array('vendor/tiny_mce/tiny_mce', 'exhibits'));
    }
}
Пример #23
0
<?php

queue_css_file('page-activate');
$pageTitle = __('Modification de mot de passe');
echo head(array('title' => $pageTitle, 'ariane' => array('modification de mot de passe' => null)), $header);
?>

<div id="page-activate">

    <h1><?php 
echo $pageTitle;
?>
</h1>

<p>Une dernière étape avant d'accéder à votre espace lecteur.<br /><br />
Merci de renseigner un nouveau mot de passe dans le formulaire ci-dessous. <br /> 
Astuce : afin de renforcer la sécurité de votre mot de passe, il vous suffit de rajouter un chiffre ou un caractère spécial à votre mot. Exemple : monmotdepasse1914<br />
</p>
    <?php 
echo flash();
?>
    <h4><?php 
echo html_escape(__('Votre nom d\'utilisateur est : %s', $user->username));
?>
</h4>


    <form method="post">
        <fieldset>
        <div class="field">
        <?php 
Пример #24
0
	<link rel="icon" type="image/png" href="<?php 
echo img('icons/32_favicon.png');
?>
" sizes="32x32" />
	<link rel="icon" type="image/png" href="<?php 
echo img('icons/favicon.png');
?>
" sizes="16x16" />

    <!-- Stylesheets -->
    <?php 
queue_css_file('main');
queue_css_file('lib/bootstrap.min');
queue_css_file('lib/slick');
queue_css_file('lib/lightGallery');
queue_css_file('font-awesome/css/font-awesome.min');
echo head_css();
?>

    <!-- Scripts -->
    <?php 
queue_js_url('http://code.jquery.com/jquery-1.11.0.min.js');
queue_js_file('lib/bootstrap.min');
queue_js_file('lib/slick.min');
queue_js_file('lib/lightGallery.min');
queue_js_file('app');
echo head_js();
?>

    <style>
        header {
Пример #25
0
<?php

queue_css_file("exhibits-pages");
queue_css_file("exhibit-left-menu");
echo head(array('title' => metadata('exhibit_page', 'title') . ' &middot; ' . metadata('exhibit', 'title'), 'ariane' => $ariane, 'bodyclass' => 'exhibits show'));
echo $this->partial('exhibits/left-menu.php', array('exhibit' => $exhibit));
?>

<div id="page-show-exhibits">

    <h1><?php 
echo metadata('exhibit_page', 'title');
?>
</h1>

    <?php 
exhibit_builder_render_exhibit_page();
?>

</div>

<?php 
echo foot();
Пример #26
0
/**
 * 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);
}
Пример #27
0
<?php

/**
 * @package     omeka
 * @subpackage  solr-search
 * @copyright   2012 Rector and Board of Visitors, University of Virginia
 * @license     http://www.apache.org/licenses/LICENSE-2.0.html
 */
?>

<?php 
queue_css_file('results');
?>

<?php 
queue_js_file('moment');
queue_js_file('jquery.daterangepicker');
queue_js_string('var search_url = "' . url("solr-search") . '";
                        var autocompleteChoicesUrl = ' . js_escape(url('solr-search/results/autocomplete')) . ';');
queue_js_file('searchformfunctions');
$key = get_option('geolocation_gmaps_key');
// ? get_option('geolocation_gmaps_key') : 'AIzaSyD6zj4P4YxltcYJZsRVUvTqG_bT1nny30o';
$lang = "nl";
queue_js_url("https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places&key={$key}&language={$lang}");
echo head(array('title' => __('Solr Search')));
?>

<script type="text/javascript" charset="utf-8">
//<![CDATA[

//]]>
Пример #28
0
<?php

if (!is_admin_theme()) {
    queue_css_file('skeleton');
    queue_css_file('admin-theme');
    queue_css_file('profiles');
}
queue_js_file('admin-globals');
$head = array('title' => __("User Profile | %s", $user->name), 'bodyclass' => '');
echo head($head);
?>
<script type="text/javascript" charset="utf-8">
//<![CDATA[
// TinyMCE hates document.ready.
jQuery(window).load(function () {
    Omeka.saveScroll();
});
//]]>
</script>
<?php 
if (!is_admin_theme()) {
    ?>
    <div class="container-twelve">
<?php 
}
?>

<ul id='section-nav' class='navigation tabs'>
<?php 
$typesNav = array();
foreach ($profile_types as $index => $type) {
Пример #29
0
    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Will fire plugins that need to include their own files in <head> -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>


    <!-- Need to add custom and third-party CSS files? Include them here -->
    <?php 
queue_css_file('lib/bootstrap.min');
queue_css_file('style');
\queue_css_file('bootstrap-theme');
echo head_css();
?>

    <!-- Need more JavaScript files? Include them here -->
    <?php 
queue_js_file('lib/bootstrap.min');
queue_js_file('globals');
echo head_js();
?>
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<?php 
Пример #30
0
<?php

queue_css_file('commenting');
queue_js_file('commenting');
$pageTitle = __('Comments') . ' ' . __('(%s total)', $total_results);
echo head(array('title' => $pageTitle, 'bodyclass' => 'commenting browse'));
?>
<div id='primary'>
<div class="pagination"><?php 
echo pagination_links();
?>
</div>


<?php 
echo flash();
if (!Omeka_Captcha::isConfigured()) {
    ?>
<p class="alert"><?php 
    echo __("You have not entered your %s API keys under %s. We recommend adding these keys, or the commenting form will be vulnerable to spam.", '<a href="http://recaptcha.net/">reCAPTCHA</a>', "<a href='" . url('security#recaptcha_public_key') . "'>" . __('security settings') . "</a>");
    ?>
</p>
<?php 
}
?>

    
    
    
<?php 
if (is_allowed('Commenting_Comment', 'update-approved')) {