add_setting( 'bc_footer_check' , array(
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_checkbox',
) );
$wp_customize->add_control( 'bc_footer_check', array(
'label' => __( 'Hide Footer?', 'broadcast-lite' ),
'description' => __( 'Check this box to hide the Footer section.', 'broadcast-lite'),
'section' => 'bc_footer_settings',
'settings' => 'bc_footer_check',
'type' => 'checkbox',
)
);
// END SETTING
// SETTING - bc_footer
$wp_customize->add_setting( 'bc_footer' , array(
'default' => 'Wordpress Theme lovingly built by StreamWeasels',
'transport' => 'refresh',
'sanitize_callback' => 'wp_kses_post',
) );
$wp_customize->add_control( 'bc_footer', array(
'label' => __( 'Footer Content', 'broadcast-lite' ),
'description' => __( 'Change the content of the footer.', 'broadcast-lite' ),
'type' => 'text',
'section' => 'bc_footer_settings',
'settings' => 'bc_footer',
) );
// SETTING - bc_colour_theme
$wp_customize->add_setting( 'bc_footer_bg_color' , array(
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_text_field',
'default' => ''
) );
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'bc_footer_bg_color',
array(
'label' => __( 'Background Color', 'broadcast-lite' ),
'description' => __( 'Choose a background color for this section.', 'broadcast-lite'),
'section' => 'bc_footer_settings',
'settings' => 'bc_footer_bg_color',
) )
);
// END SETTING
// SETTING - bc_colour_theme
$wp_customize->add_setting( 'bc_footer_text_color' , array(
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_text_field',
'default' => ''
) );
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'bc_footer_text_color',
array(
'label' => __( 'Text Color', 'broadcast-lite' ),
'description' => __( 'Choose a text color for this section.', 'broadcast-lite'),
'section' => 'bc_footer_settings',
'settings' => 'bc_footer_text_color',
) )
);
// END SETTING
// SETTING - bc_colour_theme
$wp_customize->add_setting( 'bc_footer_link_color' , array(
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_text_field',
'default' => ''
) );
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'bc_footer_link_color',
array(
'label' => __( 'Link Color', 'broadcast-lite' ),
'description' => __( 'Choose a link color for this section.', 'broadcast-lite'),
'section' => 'bc_footer_settings',
'settings' => 'bc_footer_link_color',
) )
);
// END SETTING
// SETTING - bc_footer_bg_image
$wp_customize->add_setting( 'bc_footer_bg_image' , array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
new WP_Customize_Image_Control(
$wp_customize,
'bc_footer_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_footer_settings',
'settings' => 'bc_footer_bg_image',
)
) );
// END SETTING
// SETTING - bc_footer_bg_size
$wp_customize->add_setting( 'bc_footer_bg_size', array(
'default' => 'cover',
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_text_field',
) );
// CONTROL - Dropdown for Background Image Size
$wp_customize->add_control( 'bc_footer_bg_size', array(
'type' => 'select',
'label' => __( 'Background Image Size', 'broadcast-lite' ),
'description' => __( 'Choose how the background image should be displayed.', 'broadcast-lite' ),
'section' => 'bc_footer_settings',
'settings' => 'bc_footer_bg_size',
'choices' => array(
'cover' => __( 'Cover', 'broadcast-lite' ),
'contain' => __( 'Contain', 'broadcast-lite' ),
),
) );
// SETTING - bc_colour_theme
$wp_customize->add_setting( 'bc_footer_gradient' , array(
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_textarea_field'
) );
$wp_customize->add_control( 'bc_footer_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_footer_settings',
'settings' => 'bc_footer_gradient',
'type' => 'textarea',
) );
// END SETTING
}
add_action( 'customize_register', 'broadcast_customize_footer_settings' );