AMP_Customizer_Design_Settings::register_customizer_ui PHP Метод

register_customizer_ui() публичный статический Метод

public static register_customizer_ui ( $wp_customize )
    public static function register_customizer_ui($wp_customize)
    {
        $wp_customize->add_section('amp_design', array('title' => __('Design', 'amp'), 'panel' => AMP_Template_Customizer::PANEL_ID));
        // Header text color control.
        $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'amp_header_color', array('settings' => 'amp_customizer[header_color]', 'label' => __('Header Text Color', 'amp'), 'section' => 'amp_design', 'priority' => 10)));
        // Header background color control.
        $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'amp_header_background_color', array('settings' => 'amp_customizer[header_background_color]', 'label' => __('Header Background & Link Color', 'amp'), 'section' => 'amp_design', 'priority' => 20)));
        // Background color scheme
        $wp_customize->add_control('amp_color_scheme', array('settings' => 'amp_customizer[color_scheme]', 'label' => __('Color Scheme', 'amp'), 'section' => 'amp_design', 'type' => 'radio', 'priority' => 30, 'choices' => self::get_color_scheme_names()));
    }