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


PHP pl_get_cache_key函数代码示例

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


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

示例1: section_styles

 function section_styles()
 {
     wp_enqueue_script('revolution-plugins', $this->base_url . '/rs-plugin/js/jquery.themepunch.plugins.min.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('revolution', $this->base_url . '/rs-plugin/js/jquery.themepunch.revolution.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_style('revolution', sprintf('%s/rs-plugin/css/settings.css', $this->base_url), null, pl_get_cache_key());
     wp_enqueue_script('pagelines-slider', $this->base_url . '/pl.slider.js', array('jquery', 'revolution'), pl_get_cache_key(), true);
 }
开发者ID:taeche,项目名称:SoDoEx,代码行数:7,代码来源:section.php

示例2: scripts

 function scripts()
 {
     // Colorpicker
     wp_enqueue_script('css3colorpicker', PL_JS . '/colorpicker/colorpicker.js', array('jquery'), pl_get_cache_key(), true);
     // Image Uploader
     wp_enqueue_script('fineupload', PL_JS . '/fineuploader/jquery.fineuploader-3.2.min.js', array('jquery'), pl_get_cache_key(), true);
 }
开发者ID:taeche,项目名称:SoDoEx,代码行数:7,代码来源:panel.settings.php

示例3: pl_editor_scripts

 function pl_editor_scripts()
 {
     // UTILITIES ----------------------------
     // --------------------------------------
     // Forms handling
     wp_enqueue_script('form-params', PL_JS . '/form.params.min.js', array('jquery'), pl_get_cache_key(), true);
     //wp_enqueue_script( 'form-store', PL_JS . '/form.store.min.js', array('jquery'), pl_get_cache_key(), true );
     wp_enqueue_script('form-fileupload', PL_JS . '/utils.fileupload.js', array('jquery', 'jquery-ui-widget'), pl_get_cache_key(), true);
     // Bootbox Dialogs
     wp_enqueue_script('bootbox', PL_JS . '/utils.bootbox.js', array('jquery'), '3.0.0', true);
     // PAGELINES CODE -----------------------
     // --------------------------------------
     // PageLines Developer Panel
     wp_enqueue_script('pl-dev', $this->url . '/js/pl.developer.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-editor-js', $this->url . '/js/pl.editor.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-toolbox-js', $this->url . '/js/pl.toolbox.js', array('pagelines-bootstrap-all'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-optpanel', $this->url . '/js/pl.optpanel.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-configdata', $this->url . '/js/pl.configdata.js', array('jquery'), pl_get_cache_key(), true);
     // Saving
     wp_enqueue_script('pl-ajax', $this->url . '/js/pl.ajax.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-saving', $this->url . '/js/pl.saving.js', array('pl-ajax'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-datas', $this->url . '/js/pl.datas.js', array('pl-ajax'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-library', $this->url . '/js/pl.library.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-layout', $this->url . '/js/pl.layout.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('js-hotkeys', PL_JS . '/utils.hotkeys.min.js', array('jquery'), pl_get_cache_key());
     if (isset($_GET['pl-installed-theme']) || isset($_GET['pl-view-tour']) || !get_theme_mod('pl_seen_tour')) {
         wp_enqueue_style('pl-wizard-css', sprintf('%s/wizard/wizard.css', PL_JS), null, pl_get_cache_key());
         wp_enqueue_script('pl-wizard', PL_JS . '/wizard/pl.wizard.js', array('jquery'), pl_get_cache_key(), true);
         set_theme_mod('pl_seen_tour', true);
     }
     // i18n test
     wp_enqueue_script('js-i18n', $this->url . '/js/Gettext.js', pl_get_cache_key());
     add_action('wp_head', array($this, 'lang_head'));
     // Action in to scripts here...
     pagelines_register_hook('pagelines_editor_scripts');
     // Hook
     // JQUERY UI STUFF ----------------------------
     // --------------------------------------------
     wp_enqueue_script('jquery-ui-tabs');
     $dep = array('jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse');
     wp_enqueue_script('jquery-ui-core');
     wp_enqueue_script('jquery-ui-widget');
     wp_enqueue_script('jquery-ui-mouse');
     wp_enqueue_script('jquery-ui-draggable');
     wp_enqueue_script('jquery-ui-droppable');
     wp_enqueue_script('jquery-ui-resizable');
     wp_enqueue_script('jquery-ui-accordion');
     wp_enqueue_script('jquery-ui-sortable');
     wp_enqueue_script('jquery-mousewheel', PL_JS . '/utils.mousewheel.js', array('jquery'), pl_get_cache_key(), true);
     // Global AjaxURL variable --> http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/
     $ajax_url = admin_url('admin-ajax.php');
     if (has_action('pl_force_ssl')) {
         $ajax_url = str_replace('http://', 'https://', $ajax_url);
     }
     wp_localize_script('pl-editor-js', 'ajaxurl', array($ajax_url));
     //if( is_front_page() && get_theme_mod( 'pl_installed' ) && true != get_theme_mod( 'import_from_child' ) && is_file( trailingslashit( get_stylesheet_directory() ) . 'pl-config.json' ) )
     //	wp_localize_script( 'pl-editor-js', 'plconfigfile', array( true ) );
 }
开发者ID:zakikazmi,项目名称:TestGithub,代码行数:58,代码来源:editor.interface.php

示例4: scripts

 function scripts()
 {
     wp_enqueue_style('css3colorpicker', PL_JS . '/colorpicker/colorpicker.css');
     pl_enqueue_codemirror();
     // PageLines Specific JS @Code Stuff
     wp_enqueue_script('pl-less-parser', PL_JS . '/utils.less.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-js-code', $this->url . '/js/pl.code.js', array('jquery', 'codemirror', 'pl-less-parser'), pl_get_cache_key(), true);
     // less.js
     $lessjs_config = array('env' => is_pl_debug() ? 'development' : 'production');
     wp_localize_script('pl-less-parser', 'less', $lessjs_config);
 }
开发者ID:taeche,项目名称:SoDoEx,代码行数:11,代码来源:panel.code.php

示例5: pl_editor_scripts

 function pl_editor_scripts()
 {
     // UTILITIES ----------------------------
     // --------------------------------------
     // Forms handling
     wp_enqueue_script('form-params', PL_JS . '/form.params.min.js', array('jquery'), pl_get_cache_key(), true);
     //wp_enqueue_script( 'form-store', PL_JS . '/form.store.min.js', array('jquery'), pl_get_cache_key(), true );
     wp_enqueue_script('form-fileupload', PL_JS . '/utils.fileupload.js', array('jquery', 'jquery-ui-widget'), pl_get_cache_key(), true);
     // Bootbox Dialogs
     wp_enqueue_script('bootbox', PL_JS . '/utils.bootbox.js', array('jquery'), '3.0.0', true);
     // PAGELINES CODE -----------------------
     // --------------------------------------
     // PageLines Developer Panel
     wp_enqueue_script('pl-dev', $this->url . '/js/pl.developer.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-editor-js', $this->url . '/js/pl.editor.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-toolbox-js', $this->url . '/js/pl.toolbox.js', array('pagelines-bootstrap-all'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-optpanel', $this->url . '/js/pl.optpanel.js', array('jquery'), pl_get_cache_key(), true);
     // Saving
     wp_enqueue_script('pl-ajax', $this->url . '/js/pl.ajax.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-saving', $this->url . '/js/pl.saving.js', array('pl-ajax'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-datas', $this->url . '/js/pl.datas.js', array('pl-ajax'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-library', $this->url . '/js/pl.library.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-layout', $this->url . '/js/pl.layout.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('js-hotkeys', PL_JS . '/utils.hotkeys.min.js', array('jquery'), pl_get_cache_key());
     // i18n test
     wp_enqueue_script('js-i18n', $this->url . '/js/Gettext.js', pl_get_cache_key());
     add_action('wp_head', array($this, 'lang_head'));
     // Action in to scripts here...
     pagelines_register_hook('pagelines_editor_scripts');
     // Hook
     // JQUERY UI STUFF ----------------------------
     // --------------------------------------------
     wp_enqueue_script('jquery-ui-tabs');
     $dep = array('jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse');
     wp_enqueue_script('jquery-ui-core');
     wp_enqueue_script('jquery-ui-widget');
     wp_enqueue_script('jquery-ui-mouse');
     wp_enqueue_script('jquery-ui-draggable');
     wp_enqueue_script('jquery-ui-droppable');
     wp_enqueue_script('jquery-ui-resizable');
     wp_enqueue_script('jquery-ui-accordion');
     wp_enqueue_script('jquery-ui-sortable');
     wp_enqueue_script('jquery-mousewheel', PL_JS . '/utils.mousewheel.js', array('jquery'), pl_get_cache_key(), true);
     // Global AjaxURL variable --> http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/
     $ajax_url = admin_url('admin-ajax.php');
     if (has_action('pl_force_ssl')) {
         $ajax_url = str_replace('http://', 'https://', $ajax_url);
     }
     wp_localize_script('pl-editor-js', 'ajaxurl', array($ajax_url));
 }
开发者ID:benpeck,项目名称:experticity-fools,代码行数:50,代码来源:editor.interface.php

示例6: add_google_imports

 function add_google_imports()
 {
     $base_url = apply_filters('pagelines_gfont_baseurl', '//fonts.googleapis.com/css?family=');
     $gcss = $this->foundry->google_import($this->import_fonts, 'link');
     $added = pl_setting('font_extra') ? pl_setting('font_extra') : '';
     if ($added != '' && $gcss != '') {
         $gcss .= '|' . $added;
     } else {
         $gcss .= $added;
     }
     if (!$gcss) {
         return false;
     }
     $url = sprintf("%s%s", $base_url, $gcss);
     wp_enqueue_style('master_font_import', $url, false, pl_get_cache_key());
 }
开发者ID:taeche,项目名称:SoDoEx,代码行数:16,代码来源:editor.typography.php

示例7: section_cache

 function section_cache($s, $ttl = 3600, $class)
 {
     global $post;
     $cache_key = pl_get_cache_key();
     $id = $s->meta['clone'];
     $name = $s->id;
     $key = sprintf('section_cache_%s_%s_%s', $cache_key, $id, $post->ID);
     // do cache...
     $output = get_transient($key);
     if ('' != $output) {
         echo "<!-- section cache hit -->\n";
         return $output;
     }
     echo "<!-- sections cache miss -->\n";
     ob_start();
     $class->section_template_load($s);
     $output = ob_get_clean();
     set_transient($key, $output, $ttl);
     return $output;
 }
开发者ID:benpeck,项目名称:experticity-fools,代码行数:20,代码来源:class.section.cache.php

示例8: section_styles

 function section_styles()
 {
     wp_enqueue_script('superfish', $this->base_url . '/superfish.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-navi', $this->base_url . '/pl.navi.js', array('superfish'), pl_get_cache_key(), true);
 }
开发者ID:zakikazmi,项目名称:TestGithub,代码行数:5,代码来源:section.php

示例9: section_styles

 function section_styles()
 {
     wp_enqueue_script('navbar', $this->base_url . '/navbar.js', array('jquery'), pl_get_cache_key(), true);
 }
开发者ID:taeche,项目名称:SoDoEx,代码行数:4,代码来源:section.php

示例10: json_blob

    function json_blob()
    {
        ob_start();
        ?>
<script>
			!function ($) {
				
				
				$.pl = {
					data: {
						list: <?php 
        echo json_encode(pl_arrays_to_objects($this->sections_data));
        ?>
							
						,	local:  <?php 
        echo json_encode(pl_arrays_to_objects($this->current_page_data('local')));
        ?>
						
						,  type:  <?php 
        echo json_encode(pl_arrays_to_objects($this->current_page_data('type')));
        ?>
						
						,  global:  <?php 
        echo json_encode(pl_arrays_to_objects($this->current_page_data('global')));
        ?>
					}
					
					, flags: {
							refreshOnSave: false
						,	savingDialog: 'Saving'
						,	refreshingDialog: 'Success! Reloading page'
						,	layoutMode: '<?php 
        echo $this->layout->get_layout_mode();
        ?>
'
						,	saving: false
					}
					, lang: function( args ){
						var gt = new Gettext()
						return gt.gettext( args )
					}
					, config: {
						userID: '<?php 
        echo $this->get_user_id();
        ?>
'
						, currentURL: '<?php 
        echo $this->current_url();
        ?>
'
						, siteURL: '<?php 
        echo site_url();
        ?>
'
						, nonce: '<?php 
        echo wp_create_nonce("tgmpa-install");
        ?>
'
						, pageTemplate: '<?php 
        echo $this->page->template;
        ?>
'
						, templateMode: '<?php 
        echo $this->page->template_mode();
        ?>
'
						, pageID: '<?php 
        echo $this->page->id;
        ?>
'
						, typeID: '<?php 
        echo $this->page->typeid;
        ?>
'
						, pageTypeID: '<?php 
        echo $this->page->type;
        ?>
'
						, pageTypeName: '<?php 
        echo $this->page->type_name;
        ?>
'
						, devMode: <?php 
        echo $this->get_dev_mode();
        ?>
						, CacheKey: '<?php 
        echo pl_get_cache_key();
        ?>
'
						, isSpecial: '<?php 
        echo $this->page->is_special();
        ?>
'
						, isPro: <?php 
        echo pl_is_wporg() ? "false\n" : "true\n";
        ?>
						, opts: <?php 
        echo json_encode(pl_arrays_to_objects($this->get_options_config()));
        ?>
						, settings: <?php 
//.........这里部分代码省略.........
开发者ID:zakikazmi,项目名称:TestGithub,代码行数:101,代码来源:editor.handler.php

示例11: enqueue_scripts

 function enqueue_scripts()
 {
     wp_enqueue_script('pl-less-parser', PL_JS . '/utils.less.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-less-handler', PL_JS . '/pl.less.js', array('jquery', 'pl-less-parser'), pl_get_cache_key(), true);
 }
开发者ID:taeche,项目名称:SoDoEx,代码行数:5,代码来源:less.engine.php

示例12: section_styles

 function section_styles()
 {
     if (function_exists('pl_has_editor') && pl_has_editor()) {
         $clone_id = $this->get_the_id();
     }
     wp_enqueue_script('flexslider');
     wp_enqueue_style('flexslider-styles-tps', sprintf('%s/flexslider.css', $this->base_url), null, pl_get_cache_key());
     wp_enqueue_script('pagelines-easing');
 }
开发者ID:pagelines,项目名称:cp-tray-post-slider,代码行数:9,代码来源:section.php

示例13: pagelines_enqueue_expander

function pagelines_enqueue_expander()
{
    wp_enqueue_script('expander', PL_JS . '/utils.expander.min.js', array('jquery'), pl_get_cache_key());
}
开发者ID:zakikazmi,项目名称:TestGithub,代码行数:4,代码来源:admin.actions.php

示例14: scripts

 function scripts()
 {
     wp_enqueue_script('pl-js-areas', $this->url . '/js/pl.areas.js', array('jquery'), pl_get_cache_key(), true);
 }
开发者ID:taeche,项目名称:SoDoEx,代码行数:4,代码来源:editor.areas.php

示例15: section_styles

 function section_styles()
 {
     wp_enqueue_script('isotope', PL_JS . '/utils.isotope.min.js', array('jquery'), pl_get_cache_key(), true);
     wp_enqueue_script('pl-masonic', $this->base_url . '/pl.masonic.js', array('jquery'), pl_get_cache_key(), true);
 }
开发者ID:benpeck,项目名称:experticity-fools,代码行数:5,代码来源:section.php


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