/** * Custom scripts and styles on customize.php for catchbase. * * @since Catch Base Pro 1.0 */ function catchbase_customize_scripts() { wp_register_script('catchbase_customizer_custom', get_template_directory_uri() . '/js/catchbase-customizer-custom-scripts.min.js', array('jquery'), '20150630', true); // Send list of color variables as object to custom customizer js wp_localize_script('catchbase_customizer_custom', 'catchbase_color_list', catchbase_color_list()); wp_enqueue_script('catchbase_customizer_custom'); wp_enqueue_style('catchbase_customizer_custom', get_template_directory_uri() . '/css/catchbase-customizer.css'); }
/** * Custom scripts and styles on customize.php for catchbase. * * @since Catch Base 1.0 */ function catchbase_customize_scripts() { wp_enqueue_script('catchbase_customizer_custom', get_template_directory_uri() . '/js/catchbase-customizer-custom-scripts.min.js', array('customize-controls', 'iris', 'underscore', 'wp-util'), '20150630', true); $catchbase_misc_links = array('upgrade_link' => esc_url('http://catchthemes.com/themes/catch-base-pro/'), 'upgrade_text' => __('Upgrade To Pro »', 'catch-base'), 'WP_version' => get_bloginfo('version'), 'old_version_message' => __('Some settings might be missing or disorganized in this version of WordPress. So we suggest you to upgrade to version 4.0 or better.', 'catch-base')); $catchbase_misc_links['color_list'] = catchbase_color_list(); //Add Upgrade Button, old WordPress message and color list via localized script wp_localize_script('catchbase_customizer_custom', 'catchbase_misc_links', $catchbase_misc_links); wp_enqueue_style('catchbase_customizer_custom', get_template_directory_uri() . '/css/catchbase-customizer.css'); }