add_setting( 'bc_front_page_check' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_checkbox', ) ); $wp_customize->add_control( 'bc_front_page_check', array( 'label' => __( 'Hide Front Page?', 'broadcast-lite' ), 'description' => __( 'Check this box to hide the Front Page section.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_check', 'type' => 'checkbox', ) ); // END SETTING // SETTING - bc_front_page_title_check $wp_customize->add_setting( 'bc_front_page_title_check' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_checkbox', ) ); $wp_customize->add_control( 'bc_front_page_title_check', array( 'label' => __( 'Hide Front Page Title?', 'broadcast-lite' ), 'description' => __( 'Check this box to hide the Front Page title.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_title_check', 'type' => 'checkbox', ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_front_page_bg_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_front_page_bg_color', array( 'label' => __( 'Background Color', 'broadcast-lite' ), 'description' => __( 'Choose a background color for this section.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_bg_color', ) ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_front_page_title_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_front_page_title_color', array( 'label' => __( 'Title Color', 'broadcast-lite' ), 'description' => __( 'Choose a title color for this section.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_title_color', ) ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_front_page_text_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_front_page_text_color', array( 'label' => __( 'Text Color', 'broadcast-lite' ), 'description' => __( 'Choose a text color for this section.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_text_color', ) ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_front_page_link_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_front_page_link_color', array( 'label' => __( 'Link Color', 'broadcast-lite' ), 'description' => __( 'Choose a link color for this section.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_link_color', ) ) ); // END SETTING // SETTING - bc_front_page_bg_image $wp_customize->add_setting( 'bc_front_page_bg_image' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_front_page_bg_image', array( 'label' => __( '(Advanced) Background Image', 'broadcast-lite' ), 'description' => __( 'This image should be large, as it\'s set to cover the entire section.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_bg_image', ) ) ); // END SETTING // SETTING - bc_front_page_bg_size $wp_customize->add_setting( 'bc_front_page_bg_size', array( 'default' => 'cover', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); // CONTROL - Dropdown for Background Image Size $wp_customize->add_control( 'bc_front_page_bg_size', array( 'type' => 'select', 'label' => __( 'Background Image Size', 'broadcast-lite' ), 'description' => __( 'Choose how the background image should be displayed.', 'broadcast-lite' ), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_bg_size', 'choices' => array( 'cover' => __( 'Cover', 'broadcast-lite' ), 'contain' => __( 'Contain', 'broadcast-lite' ), ), ) ); // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_front_page_gradient' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_textarea_field' ) ); $wp_customize->add_control( 'bc_front_page_gradient', array( 'label' => __( '(Advanced) Gradient Background', 'broadcast-lite' ), 'description' => __( 'If you\'d like to use a gradient background instead of solid color, add your gradient CSS here. You can generate CSS here.', 'broadcast-lite'), 'section' => 'bc_front_page_settings', 'settings' => 'bc_front_page_gradient', 'type' => 'textarea', ) ); // END SETTING } add_action( 'customize_register', 'broadcast_customize_front_page_settings' );