Jetpack_Custom_CSS_Enhancements::customize_controls_enqueue_scripts PHP Method

customize_controls_enqueue_scripts() public static method

Handle the enqueueing and localizing for scripts to be used in the Customizer.
    public static function customize_controls_enqueue_scripts()
    {
        wp_enqueue_style('jetpack-customizer-css');
        wp_enqueue_script('jetpack-customizer-css');
        $content_help = __('Set a different content width for full size images.', 'jetpack');
        if (!empty($GLOBALS['content_width'])) {
            $content_help .= sprintf(__(' The default content width for the <strong>%1$s</strong> theme is %2$d pixels.', 'jetpack'), wp_get_theme()->Name, intval($GLOBALS['content_width']));
        }
        wp_localize_script('jetpack-customizer-css', '_jp_css_settings', array('useRichEditor' => !jetpack_is_mobile() && apply_filters('safecss_use_ace', true), 'areThereCssRevisions' => self::are_there_css_revisions(), 'revisionsUrl' => self::get_revisions_url(), 'cssHelpUrl' => '//en.support.wordpress.com/custom-design/editing-css/', 'l10n' => array('mode' => __('Start Fresh', 'jetpack'), 'mobile' => __('On Mobile', 'jetpack'), 'contentWidth' => $content_help, 'revisions' => _x('See full history', 'Toolbar button to see full CSS revision history', 'jetpack'), 'css_help_title' => _x('Help', 'Toolbar button to get help with custom CSS', 'jetpack'))));
    }