当前位置: 首页>>代码示例>>PHP>>正文


PHP queue_css_file函数代码示例

本文整理汇总了PHP中queue_css_file函数的典型用法代码示例。如果您正苦于以下问题:PHP queue_css_file函数的具体用法?PHP queue_css_file怎么用?PHP queue_css_file使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了queue_css_file函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: queueThemFilthyAssets

 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');
 }
开发者ID:eScienceCenter,项目名称:NeatlineDisplayExtensions,代码行数:7,代码来源:plugin.php

示例2: hookPublicHead

 public function hookPublicHead($args)
 {
     queue_css_file('jcarousel.responsive');
     queue_css_file('carousel');
     queue_js_file('jcarousel.responsive');
     queue_js_file('jquery.jcarousel.min');
 }
开发者ID:ucdh,项目名称:plugin-ShortcodeCarousel,代码行数:7,代码来源:ShortcodeCarouselPlugin.php

示例3: hookNeatlinePublicStatic

 /**
  * 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');
     }
 }
开发者ID:HCDigitalScholarship,项目名称:annotations,代码行数:12,代码来源:NeatlineTextPlugin.php

示例4: hookExhibitBuilderPageHead

 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');
     }
 }
开发者ID:rameysar,项目名称:Omeka-Grinnell-RomanCiv,代码行数:7,代码来源:LightboxGalleryPlugin.php

示例5: queue_theme_assets

/**
 * 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');
}
开发者ID:sgbalogh,项目名称:peddler_clone5,代码行数:16,代码来源:functions.php

示例6: hookNeatlineEditorStatic

 /**
  * 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');
     }
 }
开发者ID:rameysar,项目名称:Omeka-Grinnell-RomanCiv,代码行数:12,代码来源:NeatlineWaypointsPlugin.php

示例7: hookExhibitBuilderPageHead

 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');
 }
开发者ID:sclayton29,项目名称:concarousel,代码行数:8,代码来源:ShortcodeConnectedCarouselPlugin.php

示例8: hookAdminHead

 /**
  * 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');
 }
开发者ID:biblibre,项目名称:omeka-plugin-BulkMetadataEditor,代码行数:13,代码来源:BulkMetadataEditorPlugin.php

示例9: hookNeatlineEditorStatic

 /**
  * 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');
     }
 }
开发者ID:rameysar,项目名称:Omeka-Grinnell-RomanCiv,代码行数:13,代码来源:NeatlineSimilePlugin.php

示例10: nl_queueExhibitTheme

/**
 * 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) {
    }
}
开发者ID:HCDigitalScholarship,项目名称:scattergoodjournals,代码行数:13,代码来源:Assets.php

示例11: hookPublicHead

 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');
     }
 }
开发者ID:pbinkley,项目名称:omeka-plugin-IIIF,代码行数:8,代码来源:IiifPlugin.php

示例12: hookPublicHead

 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');
 }
开发者ID:UCSCLibrary,项目名称:Omeka-AudioRecorder,代码行数:8,代码来源:AudioRecorderPlugin.php

示例13: reorderAction

 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"];
 }
开发者ID:GerZah,项目名称:plugin-ReorderElementTexts,代码行数:10,代码来源:IndexController.php

示例14: hookAdminHead

 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');
     }
 }
开发者ID:patrova,项目名称:omeka-plugin-Select2,代码行数:12,代码来源:Select2Plugin.php

示例15: hookPublicHead

 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);
     }
 }
开发者ID:Daniel-KM,项目名称:UserTags,代码行数:16,代码来源:UserTagsPlugin.php


注:本文中的queue_css_file函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。