本文整理汇总了PHP中print_late_styles函数的典型用法代码示例。如果您正苦于以下问题:PHP print_late_styles函数的具体用法?PHP print_late_styles怎么用?PHP print_late_styles使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_late_styles函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例2: _wp_footer_scripts
/**
* Private, for use in *_footer_scripts hooks
*
* @since 3.3.0
*/
function _wp_footer_scripts()
{
print_late_styles();
print_footer_scripts();
}
示例3: 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')));
}
}
示例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>
示例5: 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')));
}
}
}
}
示例6: puzzler_footer_scripts
/**
* -- override WP_Scripts/WP_Styles by Puzzler classes through @puzzler_class_changer()
*/
function puzzler_footer_scripts()
{
puzzler_class_changer();
print_late_styles();
print_footer_scripts();
}
示例7: after_footer_loaded
/**
* Check if the form is loaded after the wp_footer hook.
* If it is, we'll need to make sure the scripts are loaded.
*/
public static function after_footer_loaded()
{
global $frm_vars;
if (!isset($frm_vars['footer_loaded']) || !$frm_vars['footer_loaded']) {
return;
}
self::enqueue_footer_js();
print_late_styles();
print_footer_scripts();
self::footer_js();
}
示例8: 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;
}
示例9: wp_print_footer_scripts
/**
* Hooks to print the scripts and styles in the footer.
*
* @since 2.8
*/
function wp_print_footer_scripts()
{
print_late_styles();
print_footer_scripts();
if (!is_admin()) {
do_action('wp_print_footer_scripts');
}
return true;
}