本文整理匯總了PHP中WP_Customize_Image_Control::enqueue方法的典型用法代碼示例。如果您正苦於以下問題:PHP WP_Customize_Image_Control::enqueue方法的具體用法?PHP WP_Customize_Image_Control::enqueue怎麽用?PHP WP_Customize_Image_Control::enqueue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WP_Customize_Image_Control
的用法示例。
在下文中一共展示了WP_Customize_Image_Control::enqueue方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: enqueue
/**
* @access public
*/
public function enqueue()
{
wp_enqueue_media();
wp_enqueue_script('customize-views');
$this->prepare_control();
wp_localize_script('customize-views', '_wpCustomizeHeader', array('data' => array('width' => absint(get_theme_support('custom-header', 'width')), 'height' => absint(get_theme_support('custom-header', 'height')), 'flex-width' => absint(get_theme_support('custom-header', 'flex-width')), 'flex-height' => absint(get_theme_support('custom-header', 'flex-height')), 'currentImgSrc' => $this->get_current_image_src()), 'nonces' => array('add' => wp_create_nonce('header-add'), 'remove' => wp_create_nonce('header-remove')), 'uploads' => $this->uploaded_headers, 'defaults' => $this->default_headers));
parent::enqueue();
}
開發者ID:AndreyLanko,項目名稱:perevorot-prozorro-wp,代碼行數:11,代碼來源:class-wp-customize-header-image-control.php
示例2: enqueue
/**
* This function enqueues scripts and styles
*/
public function enqueue()
{
wp_enqueue_media();
// Enqueue media scripts
wp_enqueue_script('sds-theme-options-customizer-logo', get_template_directory_uri() . '/includes/js/customizer-sds-theme-options-logo.js', array('customize-base', 'customize-controls'), SDS_Theme_Options::VERSION);
// Call the parent enqueue method here
parent::enqueue();
}
開發者ID:se7ven214,項目名稱:Kungfuphp.local,代碼行數:11,代碼來源:class-sds-theme-options-customize-logo-control.php
示例3: enqueue
/**
* This function enqueues scripts and styles
*/
public function enqueue()
{
wp_enqueue_media();
// Enqueue media scripts
wp_enqueue_script('sds-theme-options-customizer-logo', SDS_Theme_Options::sds_core_url() . '/js/customizer-sds-theme-options-logo.js', array('customize-base', 'customize-controls'), SDS_Theme_Options::get_version());
// Call the parent enqueue method here
parent::enqueue();
}
示例4: enqueue
/**
* Enqueue control related scripts/styles.
*
* @since 4.3.0
* @access public
*/
public function enqueue()
{
wp_enqueue_script('customize-views');
parent::enqueue();
}
開發者ID:AndreyLanko,項目名稱:perevorot-prozorro-wp,代碼行數:11,代碼來源:class-wp-customize-cropped-image-control.php
示例5: enqueue
/**
* Enqueue control related scripts/styles.
*
* @since 4.1.0
*/
public function enqueue()
{
parent::enqueue();
$custom_background = get_theme_support('custom-background');
wp_localize_script('customize-controls', '_wpCustomizeBackground', array('defaults' => !empty($custom_background[0]) ? $custom_background[0] : array(), 'nonces' => array('add' => wp_create_nonce('background-add'))));
}
開發者ID:aaemnnosttv,項目名稱:develop.git.wordpress.org,代碼行數:11,代碼來源:class-wp-customize-background-image-control.php
示例6: enqueue
/**
* Enqueue control related scripts/styles.
*
* @since 4.1.0
*/
public function enqueue()
{
parent::enqueue();
wp_localize_script('customize-controls', '_wpCustomizeBackground', array('nonces' => array('add' => wp_create_nonce('background-add'))));
}
開發者ID:AndreyLanko,項目名稱:perevorot-prozorro-wp,代碼行數:10,代碼來源:class-wp-customize-background-image-control.php