add_setting( ALAGU_THEME_SETTINGS . '[site-layout]', array( 'default' => alagu_get_option( 'site-layout' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[site-layout]', array( 'type' => 'select', 'section' => 'site-layout-container-section', 'label' => esc_html__( 'Site Layout', 'alagu' ), 'choices' => array( 'boxed' => esc_html__( 'Boxed', 'alagu'), 'wide' => esc_html__( 'Wide', 'alagu'), ) ) ) ); /** * Option : Customize Boxed Layout */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[site-boxed-layout]', array( 'default' => alagu_get_option( 'site-boxed-layout' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[site-boxed-layout]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Customize Boxed Layout?', 'alagu'), 'section' => 'site-layout-container-section', 'dependency' => array( 'site-layout', '==', 'boxed' ), 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Customize Boxed Layout */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[site-bg]', array( 'default' => '', 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_background_obj' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Background( $wp_customize, ALAGU_THEME_SETTINGS . '[site-bg]', array( 'type' => 'dt-background', 'section' => 'site-layout-container-section', 'dependency' => array( 'site-layout|site-boxed-layout', '==|==', 'boxed|true' ), 'label' => esc_html__( 'Background', 'alagu' ), ) ) );