當前位置: 首頁>>代碼示例>>PHP>>正文


PHP print_footer_scripts函數代碼示例

本文整理匯總了PHP中print_footer_scripts函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_footer_scripts函數的具體用法?PHP print_footer_scripts怎麽用?PHP print_footer_scripts使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了print_footer_scripts函數的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _wp_footer_scripts

/**
 * Private, for use in *_footer_scripts hooks
 *
 * @since 3.3.0
 */
function _wp_footer_scripts()
{
    print_late_styles();
    print_footer_scripts();
}
開發者ID:vheidari,項目名稱:WordPress,代碼行數:10,代碼來源:script-loader.php

示例2: _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

示例3: 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

示例4: wpv_reduced_footer

function wpv_reduced_footer()
{
    wpv_reduced_delim();
    echo 'scripts|';
    print_footer_scripts();
}
開發者ID:amitmula,項目名稱:amitandaastha.in,代碼行數:6,代碼來源:base.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: 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();
}
開發者ID:antoshkin,項目名稱:puzzler,代碼行數:9,代碼來源:puzzler.php

示例7: 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

示例8: wp_print_footer_scripts

/**
 * Prints the scripts that were queued for the footer on the front end.
 *
 * @since 2.8
 */
function wp_print_footer_scripts()
{
    return print_footer_scripts();
}
開發者ID:Esleelkartea,項目名稱:herramienta_para_autodiagnostico_ADEADA,代碼行數:9,代碼來源:script-loader.php

示例9: pte_init_iframe

/**
 * Sending output to an iframe
 */
function pte_init_iframe()
{
    global $title, $pte_iframe;
    $pte_iframe = true;
    // Provide the base framework/HTML for the editor.
    require_once ABSPATH . WPINC . '/script-loader.php';
    // Check the input parameters and create the HTML
    pte_edit_setup();
    print "<!DOCTYPE html>\n<html><head><title>{$title}</title>\n";
    print_head_scripts();
    print_admin_styles();
    print '</head><body class="wp-core-ui pte-iframe">';
    // Simply echo the created HTML
    pte_edit_page();
    print_footer_scripts();
    print '</body></html>';
}
開發者ID:roycocup,項目名稱:enclothed,代碼行數:20,代碼來源:functions.php

示例10: 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();
 }
開發者ID:swc-dng,項目名稱:swcsandbox,代碼行數:15,代碼來源:FrmProEntriesController.php

示例11: 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

示例12: 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;
}
開發者ID:nhemsley,項目名稱:wordpress,代碼行數:14,代碼來源:script-loader.php


注:本文中的print_footer_scripts函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。