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


PHP _print_styles函数代码示例

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


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

示例1: loadShortcodes

	function loadShortcodes() {
		! defined( 'CONCATENATE_SCRIPTS' ) && define( 'CONCATENATE_SCRIPTS', false );
		$this->setPost();
		$shortcodes = (array)vc_post_param( 'shortcodes' );
		$this->renderShortcodes( $shortcodes );
		echo '<div data-type="files">';
		_print_styles();
		print_head_scripts();
		print_late_styles();
		print_footer_scripts();
		echo '</div>';
		die();
	}
开发者ID:verbazend,项目名称:AWFA,代码行数:13,代码来源:class-vc-frontend-editor.php

示例2: print_late_styles

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 *
 * @global WP_Styles $wp_styles
 * @global bool      $concatenate_scripts
 *
 * @return array|void
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!$wp_styles instanceof WP_Styles) {
        return;
    }
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    /**
     * Filter whether to print the styles queued too late for the HTML head.
     *
     * @since 3.3.0
     *
     * @param bool $print Whether to print the 'late' styles. Default true.
     */
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}
开发者ID:vheidari,项目名称:WordPress,代码行数:31,代码来源:script-loader.php

示例3: print_late_styles

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!is_a($wp_styles, 'WP_Styles')) {
        return;
    }
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}
开发者ID:jawandsingh,项目名称:wordpress_with_sql_azure,代码行数:19,代码来源:script-loader.php

示例4: _print_styles

<div id="vc_template-html">
    <?php 
echo $editor->parseShortcodesString($editor->getTemplateContent());
?>
    <div data-type="files">
        <?php 
_print_styles();
print_head_scripts();
print_late_styles();
print_footer_scripts();
?>
    </div>
</div>
<div id="vc_template-data"><?php 
echo esc_html_e(json_encode($editor->post_shortcodes));
?>
</div>

开发者ID:ksan5835,项目名称:rankproperties,代码行数:17,代码来源:frontend_template.tpl.php

示例5: loadShortcodes

 /**
  *
  */
 function loadShortcodes()
 {
     if (is_user_logged_in()) {
         $action = vc_post_param('action');
         if ($action == 'vc_load_shortcode') {
             !defined('CONCATENATE_SCRIPTS') && define('CONCATENATE_SCRIPTS', false);
             ob_start();
             $this->setPost();
             $shortcodes = (array) vc_post_param('shortcodes');
             do_action('vc_load_shortcode', $shortcodes);
             $this->renderShortcodes($shortcodes);
             echo '<div data-type="files">';
             _print_styles();
             print_head_scripts();
             print_late_styles();
             print_footer_scripts();
             do_action('wp_print_footer_scripts');
             echo '</div>';
             $output = ob_get_clean();
             die(apply_filters('vc_frontend_editor_load_shortcode_ajax_output', $output));
         } else {
             if ($action == 'vc_frontend_default_template') {
                 // @deprecated since 4.4 and will be removed and should not be used, use action 'vc_frontend_default_template_modal' instead and templatesPanelEditor
                 $this->setPost();
                 visual_composer()->templatesEditor()->renderFrontendDefaultTemplate();
             } else {
                 if ($action == 'vc_frontend_template') {
                     // @deprecated since 4.4 and will be removed and should not be used, use action 'vc_frontend_template_modal' instead and templatesPanelEditor
                     $this->setPost();
                     visual_composer()->templatesEditor()->renderFrontendTemplate();
                 } else {
                     if ($action == 'vc_frontend_load_template') {
                         $this->setPost();
                         visual_composer()->templatesPanelEditor()->renderFrontendTemplate();
                     }
                 }
             }
         }
     }
     if (vc_post_param('action') != '') {
         do_action('vc_front_load_page_' . esc_attr(vc_post_param('action')));
     }
 }
开发者ID:Angelpm28,项目名称:ong-canada,代码行数:46,代码来源:class-vc-frontend-editor.php

示例6: loadShortcodes

 /**
  *
  */
 function loadShortcodes()
 {
     if (vc_is_page_editable() && vc_enabled_frontend()) {
         $action = vc_post_param('action');
         if ('vc_load_shortcode' === $action) {
             !defined('CONCATENATE_SCRIPTS') && define('CONCATENATE_SCRIPTS', false);
             ob_start();
             $this->setPost();
             $shortcodes = (array) vc_post_param('shortcodes');
             do_action('vc_load_shortcode', $shortcodes);
             $this->renderShortcodes($shortcodes);
             echo '<div data-type="files">';
             _print_styles();
             print_head_scripts();
             print_late_styles();
             print_footer_scripts();
             do_action('wp_print_footer_scripts');
             echo '</div>';
             $output = ob_get_clean();
             die(apply_filters('vc_frontend_editor_load_shortcode_ajax_output', $output));
         } elseif ('vc_frontend_load_template' === $action) {
             $this->setPost();
             visual_composer()->templatesPanelEditor()->renderFrontendTemplate();
         } else {
             if ('' !== $action) {
                 do_action('vc_front_load_page_' . esc_attr(vc_post_param('action')));
             }
         }
     }
 }
开发者ID:k2jysy,项目名称:wedev,代码行数:33,代码来源:class-vc-frontend-editor.php

示例7: loadShortcodes

 function loadShortcodes()
 {
     $shortcodes = (array) $this->post('shortcodes');
     $this->renderShortcodes($shortcodes);
     echo '<div data-type="files">';
     _print_styles();
     print_head_scripts();
     print_late_styles();
     print_footer_scripts();
     echo '</div>';
     die;
 }
开发者ID:roycocup,项目名称:enclothed,代码行数:12,代码来源:editor.php


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