當前位置: 首頁>>代碼示例>>PHP>>正文


PHP queue_js_file函數代碼示例

本文整理匯總了PHP中queue_js_file函數的典型用法代碼示例。如果您正苦於以下問題:PHP queue_js_file函數的具體用法?PHP queue_js_file怎麽用?PHP queue_js_file使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了queue_js_file函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: hookPublicHead

 public function hookPublicHead()
 {
     queue_css_file('commenting');
     queue_js_file('commenting');
     queue_js_file('tiny_mce', 'javascripts/vendor/tiny_mce');
     queue_js_string("Commenting.pluginRoot = '" . WEB_ROOT . "/commenting/comment/'");
 }
開發者ID:KelvinSmithLibrary,項目名稱:playhouse,代碼行數:7,代碼來源:CommentingPlugin.php

示例2: 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

示例3: hookAdminHead

 public function hookAdminHead($args)
 {
     // Core hookAdminHead taken from ElementTypes plugin
     $request = Zend_Controller_Front::getInstance()->getRequest();
     $module = $request->getModuleName();
     if (is_null($module)) {
         $module = 'default';
     }
     $controller = $request->getControllerName();
     $action = $request->getActionName();
     if ($module === 'default' && $controller === 'items' && in_array($action, array('add', 'edit'))) {
         // ------------------------------------------
         // An array of dependencies:
         // Each dependency is represented by a "dependee", a "term", and a "dependent".
         // ... meaning: If and only if the "dependee"'s value equals the "term", the "dependent" will be visible.
         // Retrieve dependencies from Database
         /* */
         $json = get_option('conditional_elements_dependencies');
         if (!$json) {
             $json = "[]";
         }
         # else { $json = $this->_removeOutdatedDependencies($json); }
         /* */
         echo "<script>var conditionalElementsDep={$json};</script>";
         // ------------------------------------------
         queue_js_file('conditionalelements');
     }
     # if ($module === 'default' ...
 }
開發者ID:GerZah,項目名稱:plugin-ConditionalElements,代碼行數:29,代碼來源:ConditionalElementsPlugin.php

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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


注:本文中的queue_js_file函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。