add_section( 'header_top' , array( 'title' => __( 'Header Top', 'askiw' ), 'priority' => 2, ) ); $wp_customize->add_setting( 'activate_header_top', array ( 'default' => true, 'sanitize_callback' => 'askiw__sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'activate_header_top', array( 'priority' => 1, 'label' => __( 'Activate Header Top', 'askiw' ), 'section' => 'header_top', 'settings' => 'activate_header_top', 'type' => 'checkbox', ) ) ); $wp_customize->add_setting( 'header_email', array ( 'default' => 'email@seosthemes.com', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'header_email', array( 'label' => __( 'E-mail', 'askiw' ), 'priority' => 3, 'section' => 'header_top', 'settings' => 'header_email', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'header_address', array ( 'default' => 'Str. 368', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'header_address', array( 'label' => __( 'Address', 'askiw' ), 'priority' => 3, 'section' => 'header_top', 'settings' => 'header_address', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'header_phone', array ( 'default' => '+01234567890', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'header_phone', array( 'label' => __( 'Phone', 'askiw' ), 'priority' => 3, 'section' => 'header_top', 'settings' => 'header_phone', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'askiw__header_search', array ( 'default' => true, 'sanitize_callback' => 'askiw__sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'askiw__header_search', array( 'label' => __( 'Activate Search Icon:', 'askiw' ), 'section' => 'header_top', 'priority' => 3, 'settings' => 'askiw__header_search', 'type' => 'checkbox', ) ) ); if( class_exists( 'WooCommerce' ) ) { $wp_customize->add_setting( 'askiw__header_cart', array ( 'default' => true, 'sanitize_callback' => 'askiw__sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'askiw__header_cart', array( 'label' => __( 'Activate WooCommerce Cart:', 'askiw' ), 'section' => 'header_top', 'priority' => 3, 'settings' => 'askiw__header_cart', 'type' => 'checkbox', ) ) ); } } function askiw__header () { ?>