本文整理汇总了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/'");
}
示例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');
}
示例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' ...
}
示例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');
}
}
示例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');
}
示例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');
}
示例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');
}
}
示例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');
}
}
示例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');
}
示例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');
}
示例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');
}
}
示例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) {
}
}
示例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');
}
示例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');
}
}
示例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"];
}