wp_customize->add_section( 'section_header_layout_style', array( 'title' => esc_html__( 'Layout', Ace::TEXTDOMAIN ), 'panel' => 'panel_header', )); // Style Pattern // Used as class name of Header Wrapper $this->wp_customize->add_setting( 'header_style_pattern', array( 'default' => 'plain', 'transport' => 'postMessage', 'sanitize_callback' => array( 'AceSanitizeMethods', 'sanitizeHeaderStylePattern' ), 'sanitize_js_callback' => array( 'AceSanitizeMethods', 'sanitizeHeaderStylePattern' ), )); $this->wp_customize->add_control( 'header_style_pattern', array( 'section' => 'section_header_layout_style', 'settings' => 'header_style_pattern', 'label' => esc_html__( 'Header Style', Ace::TEXTDOMAIN ), 'description' => __( 'Header Style', Ace::TEXTDOMAIN ), 'type' => 'select', 'choices' => array( 'plain' => __( 'Plain', Ace::TEXTDOMAIN ), //'formal' => __( 'Formal', Ace::TEXTDOMAIN ), //'material' => __( 'Material', Ace::TEXTDOMAIN ), ) )); // Layout Pattern // Used as class name of Header Wrapper $this->wp_customize->add_setting( 'header_layout_pattern', array( 'default' => 'vertical', 'transport' => 'postMessage', 'sanitize_callback' => array( 'AceSanitizeMethods', 'sanitizeHeaderLayoutPattern' ), 'sanitize_js_callback' => array( 'AceSanitizeMethods', 'sanitizeHeaderLayoutPattern' ), )); $this->wp_customize->add_control( 'header_layout_pattern', array( 'section' => 'section_header_layout_style', 'settings' => 'header_layout_pattern', 'label' => esc_html__( 'Header Layout', Ace::TEXTDOMAIN ), 'description' => __( 'Header Layout for Fixed Part', Ace::TEXTDOMAIN ), 'type' => 'select', 'choices' => array( 'vertical' => __( 'Vertical', Ace::TEXTDOMAIN ), 'flex' => __( 'Flex', Ace::TEXTDOMAIN ), 'fixed-on-left' => __( 'Fixed on Left', Ace::TEXTDOMAIN ), //'material' => __( 'Material', Ace::TEXTDOMAIN ), ) )); // Is Header Fixed $this->wp_customize->add_setting( 'is_header_fixed', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => array( 'AceSanitizeMethods', 'sanitizeCheckbox' ), 'sanitize_js_callback' => array( 'AceSanitizeMethods', 'sanitizeCheckbox' ), )); $this->wp_customize->add_control( 'is_header_fixed', array( 'section' => 'section_header_layout_style', 'settings' => 'is_header_fixed', 'label' => esc_html__( 'Fix to top when scrolling', Ace::TEXTDOMAIN ), 'description' => __( 'Fix to top when scrolling?', Ace::TEXTDOMAIN ), 'type' => 'checkbox', )); // Search /* $this->wp_customize->add_setting( 'is_search_on_top', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => array( 'AceSanitizeMethods', 'sanitizeCheckbox' ), 'sanitize_js_callback' => array( 'AceSanitizeMethods', 'sanitizeCheckbox' ), )); $this->wp_customize->add_control( 'is_search_on_top', array( 'section' => 'section_header_layout_style', 'settings' => 'is_search_on_top', 'label' => esc_html__( 'Is Search Box on Top Right', Ace::TEXTDOMAIN ), 'description' => __( 'Is Search Box on Top Right?', Ace::TEXTDOMAIN ), 'type' => 'checkbox', )); */