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