add_section( 'bc_twitch_settings' , array( 'title' => __( 'Twitch Settings', 'broadcast-lite' ), 'priority' => 30 ) ); // SECTION - bc_image_settings $wp_customize->add_section( 'bc_image_settings' , array( 'title' => __( 'Image Settings', 'broadcast-lite' ), 'priority' => 31 ) ); // SECTION - bc_schedule_settings $wp_customize->add_section( 'bc_schedule_settings' , array( 'title' => __( 'Schedule Settings', 'broadcast-lite' ), 'priority' => 32 ) ); // SECTION - bc_affiliate_settings1 $wp_customize->add_section( 'bc_affiliate_settings1' , array( 'title' => __( 'Affiliate Settings 1', 'broadcast-lite' ), 'priority' => 10, 'panel' => 'bc_affiliate_panel', ) ); // SECTION - bc_affiliate_settings2 $wp_customize->add_section( 'bc_affiliate_settings2' , array( 'title' => __( 'Affiliate Settings 2', 'broadcast-lite' ), 'priority' => 20, 'panel' => 'bc_affiliate_panel', ) ); // SECTION - bc_affiliate_settings3 $wp_customize->add_section( 'bc_affiliate_settings3' , array( 'title' => __( 'Affiliate Settings 3', 'broadcast-lite' ), 'priority' => 30, 'panel' => 'bc_affiliate_panel', ) ); // PANEL - bc_affiliate_panel $wp_customize->add_panel( 'bc_affiliate_panel', array( 'priority' => 33, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Affiliate Links', 'broadcast-lite'), 'description' => __('Enter an image and link to your first affiliate here.', 'broadcast-lite'), ) ); // SECTION - bc_social_settings $wp_customize->add_section( 'bc_social_settings', array( 'title' => __('Social Links', 'broadcast-lite'), 'priority' => 34, ) ); // SETTING - bc_twitch_username $wp_customize->add_setting( 'bc_twitch_username' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_twitch_username', array( 'label' => __( 'Twitch Username', 'broadcast-lite' ), 'description' => __( 'This is where the magic happens. Broadcast will hook into the Twitch API using your username and then come alive when you go live.', 'broadcast-lite' ), 'type' => 'text', 'section' => 'bc_twitch_settings', 'settings' => 'bc_twitch_username', ) ); // END SETTING // SETTING - bc_featured_image $wp_customize->add_setting( 'bc_featured_image' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_featured_image', array( 'label' => __( 'Featured Image', 'broadcast-lite' ), 'description' => __( 'This image should be large, at least 1920 x 1080 pixels.', 'broadcast-lite'), 'section' => 'bc_image_settings', 'settings' => 'bc_featured_image', ) ) ); // END SETTING // SETTING - bc_logo $wp_customize->add_setting( 'bc_logo' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_logo', array( 'label' => __( 'Logo', 'broadcast-lite' ), 'description' => __( 'This image should be square, at least 300 x 300 pixels.', 'broadcast-lite'), 'section' => 'bc_image_settings', 'settings' => 'bc_logo', ) ) ); // END SETTING // SETTING - bc_schedule_check $wp_customize->add_setting( 'bc_schedule_check' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_checkbox', ) ); $wp_customize->add_control( 'bc_schedule_check', array( 'label' => __( 'Activate Schedule', 'broadcast-lite' ), 'description' => __( 'Check this box if you would like to activate the countdown to your next stream.', 'broadcast-lite'), 'section' => 'bc_schedule_settings', 'settings' => 'bc_schedule_check', 'type' => 'checkbox', ) ); // END SETTING // SETTING - bc_schedule $wp_customize->add_setting( 'bc_schedule' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Date_Time_Control( $wp_customize, 'bc_schedule', array( 'label' => __( 'Next Stream Date', 'broadcast-lite' ), 'description' => __( 'Add your next stream date & time below to begin the countdown timer. As soon as you go live, the timer will disappear.', 'broadcast-lite'), 'section' => 'bc_schedule_settings', 'settings' => 'bc_schedule', ) ) ); // END SETTING // SETTING - bc_affiliate1_image $wp_customize->add_setting( 'bc_affiliate1_image' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_affiliate1_image', array( 'label' => __( 'Affiliate 1 Image', 'broadcast-lite' ), 'description' => __( 'This image can be square or rectangular, something around 200 x 200 pixels works well. ', 'broadcast-lite'), 'section' => 'bc_affiliate_settings1', 'settings' => 'bc_affiliate1_image', ) ) ); // END SETTING // SETTING - bc_affiliate1_link $wp_customize->add_setting( 'bc_affiliate1_link' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_affiliate1_link', array( 'label' => __( 'Affiliate 1 Link', 'broadcast-lite' ), 'description' => __( 'This URL should start with http:// or https:// ', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_affiliate_settings1', 'settings' => 'bc_affiliate1_link', ) ); // END SETTING // SETTING - bc_affiliate2_image $wp_customize->add_setting( 'bc_affiliate2_image' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_affiliate2_image', array( 'label' => __( 'Affiliate 2 Image', 'broadcast-lite' ), 'description' => __( 'This image can be square or rectangular, something around 200 x 200 pixels works well. ', 'broadcast-lite'), 'section' => 'bc_affiliate_settings2', 'settings' => 'bc_affiliate2_image', ) ) ); // END SETTING // SETTING - bc_affiliate2_link $wp_customize->add_setting( 'bc_affiliate2_link' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_affiliate2_link', array( 'label' => __( 'Affiliate 2 Link', 'broadcast-lite' ), 'description' => __( 'This URL should start with http:// or https:// ', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_affiliate_settings2', 'settings' => 'bc_affiliate2_link', ) ); // END SETTING // SETTING - bc_affiliate2_image $wp_customize->add_setting( 'bc_affiliate3_image' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_affiliate3_image', array( 'label' => __( 'Affiliate 3 Image', 'broadcast-lite' ), 'description' => __( 'This image can be square or rectangular, something around 200 x 200 pixels works well. ', 'broadcast-lite'), 'section' => 'bc_affiliate_settings3', 'settings' => 'bc_affiliate3_image', ) ) ); // END SETTING // SETTING - bc_affiliate2_link $wp_customize->add_setting( 'bc_affiliate3_link' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_affiliate3_link', array( 'label' => __( 'Affiliate 3 Link', 'broadcast-lite' ), 'description' => __( 'This URL should start with http:// or https:// ', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_affiliate_settings3', 'settings' => 'bc_affiliate3_link', ) ); // END SETTING // SETTING - bc_twitter $wp_customize->add_setting( 'bc_twitter' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_twitter', array( 'label' => __( 'Twitter Link', 'broadcast-lite' ), 'type' => 'text', 'section' => 'bc_social_settings', 'settings' => 'bc_twitter', ) ); // END SETTING // SETTING - bc_facebook $wp_customize->add_setting( 'bc_facebook' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_facebook', array( 'label' => __( 'Facebook Link', 'broadcast-lite' ), 'description' => __( 'Fill this field to add a link to your Facebook.', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_social_settings', 'settings' => 'bc_facebook', ) ); // END SETTING // SETTING - bc_instagram $wp_customize->add_setting( 'bc_instagram' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_instagram', array( 'label' => __( 'Instagram Link', 'broadcast-lite' ), 'description' => __( 'Fill this field to add a link to your Instagram.', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_social_settings', 'settings' => 'bc_instagram', ) ); // END SETTING // SETTING - bc_youtube $wp_customize->add_setting( 'bc_youtube' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_youtube', array( 'label' => __( 'YouTube Link', 'broadcast-lite' ), 'description' => __( 'Fill this field to add a link to your YouTube.', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_social_settings', 'settings' => 'bc_youtube', ) ); // END SETTING // SETTING - bc_google $wp_customize->add_setting( 'bc_google' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_google', array( 'label' => __( 'Google+ Link', 'broadcast-lite' ), 'description' => __( 'Fill this field to add a link to your Google+.', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_social_settings', 'settings' => 'bc_google', ) ); // END SETTING // SETTING - bc_twitch $wp_customize->add_setting( 'bc_twitch' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_twitch', array( 'label' => __( 'Twitch Link', 'broadcast-lite' ), 'description' => __( 'Fill this field to add a link to your Twitch.', 'broadcast-lite'), 'type' => 'text', 'section' => 'bc_social_settings', 'settings' => 'bc_twitch', ) ); // END SETTING } add_action( 'customize_register', 'broadcast_customize_register' );