add_section( 'custom_site_backgrounds_colors', array( 'title' => __( 'Site backgrounds', 'cameleon' ), 'priority' => 22, 'capability' => 'edit_theme_options', 'description' => __('Customize site backgrounds', 'cameleon'), ) ); ///////////////////////////////////////////////// ///////////////////////////////////////////////// // Setting TITLE BOX background ///////////////////////////////////////////////// ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_title_box_background', array( 'default' => '#000', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_title_box_background', array( 'label' => __( 'Site title background-color', 'cameleon' ), 'section' => 'custom_site_backgrounds_colors', 'settings' => 'custom_title_box_background', 'priority' => 10, ) ) ); ///////////////////////////////////////////////// ///////////////////////////////////////////////// // Setting NAVIGATION background ///////////////////////////////////////////////// ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_nav_background', array( 'default' => '#5d5d5d', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_nav_background', array( 'label' => __( 'Navigation background color', 'cameleon' ), 'section' => 'custom_site_backgrounds_colors', 'settings' => 'custom_nav_background', 'priority' => 10, ) ) ); ///////////////////////////////////////////////// ///////////////////////////////////////////////// // Setting SIDEBAR background ///////////////////////////////////////////////// ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_sidebar_background', array( 'default' => '#ffffff', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_sidebar_background', array( 'label' => __( 'Sidebar background color', 'cameleon' ), 'section' => 'custom_site_backgrounds_colors', 'settings' => 'custom_sidebar_background', 'priority' => 10, ) ) ); ///////////////////////////////////////////////// ///////////////////////////////////////////////// // Setting SECTION background ///////////////////////////////////////////////// ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_section_background', array( 'default' => '#eaeaea', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_section_background', array( 'label' => __( 'Main section background color', 'cameleon' ), 'section' => 'custom_site_backgrounds_colors', 'settings' => 'custom_section_background', 'priority' => 10, ) ) ); ///////////////////////////////////////////////// ///////////////////////////////////////////////// // Setting footer aside background ///////////////////////////////////////////////// ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_footer_aside_background', array( 'default' => '#000000', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_footer_aside_background', array( 'label' => __( 'Footer sidebar background color', 'cameleon' ), 'section' => 'custom_site_backgrounds_colors', 'settings' => 'custom_footer_aside_background', 'priority' => 10, ) ) ); ///////////////////////////////////////////////// ///////////////////////////////////////////////// // Setting footer section background ///////////////////////////////////////////////// ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_footer_section_background', array( 'default' => '#5d5d5d', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_footer_section_background', array( 'label' => __( 'Footer main section background color', 'cameleon' ), 'section' => 'custom_site_backgrounds_colors', 'settings' => 'custom_footer_section_background', 'priority' => 10, ) ) ); } public static function header_output() { ?>