本文整理汇总了PHP中queue_css_url函数的典型用法代码示例。如果您正苦于以下问题:PHP queue_css_url函数的具体用法?PHP queue_css_url怎么用?PHP queue_css_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了queue_css_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: viewerHead
/**
* 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');
}
示例2: hookAdminHead
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');
}
}
示例3: hookExhibitBuilderPageHead
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 ");
}
}
示例4: auto_discovery_link_tags
">
<?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>
示例5: queue_css_url
<?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');
?>
示例6: auto_discovery_link_tags
<?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
示例7: http_build_query
// 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;
示例8: viewerHead
/**
* 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');
}
示例9: http_build_query
// 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;
示例10: auto_discovery_link_tags
</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>
示例11: auto_discovery_link_tags
<?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
示例12: auto_discovery_link_tags
<?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
示例13: auto_discovery_link_tags
<?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
示例14: implode
echo implode(' · ', $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
示例15: hookPublicHead
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');
}