/**
  * This function enqueues scripts and styles
  */
 public function enqueue()
 {
     wp_enqueue_script('sds-theme-options-customizer-color-scheme', SDS_Theme_Options::sds_core_url() . '/js/customizer-sds-theme-options-color-scheme.js', array('customize-base', 'customize-controls'), SDS_Theme_Options::get_version());
     wp_localize_script('sds-theme-options-customizer-color-scheme', 'sds_color_schemes_customizer', array('color_schemes' => sds_color_schemes(), 'controls' => $this->color_controls));
     // Call the parent enqueue method here
     parent::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();
 }
 /**
  * This function enqueues scripts and styles
  */
 public function enqueue()
 {
     // Protocol
     $protocol = is_ssl() ? 'https' : 'http';
     // Grab the SDS Theme Options instance
     $sds_theme_options_instance = SDS_Theme_Options_Instance();
     // Web Fonts
     if (function_exists('sds_web_fonts')) {
         $google_families = $sds_theme_options_instance->get_google_font_families_list();
         wp_enqueue_style('google-web-fonts', $protocol . '://fonts.googleapis.com/css?family=' . $google_families, false, SDS_Theme_Options::get_version());
     }
     // Call the parent enqueue method here
     parent::enqueue();
 }
Пример #4
0
function sds_customize_controls_enqueue_scripts()
{
    // SDS Theme Options
    wp_enqueue_style('sds-theme-options', SDS_Theme_Options::sds_core_url() . '/css/sds-theme-options.css', false, SDS_Theme_Options::get_version());
    // Customizer SDS Theme Options (after core SDS Theme Options)
    wp_enqueue_style('sds-theme-options-customizer', SDS_Theme_Options::sds_core_url() . '/css/customizer-sds-theme-options.css', array('sds-theme-options'));
}