add_panel( 'cam_custom_comments_colors_panel', array( 'title' => __( 'Comments colors', 'cameleon' ), 'priority' => 26, 'capability' => 'edit_theme_options', 'description' => __('Customize comments colors', 'cameleon'), ) ); ///////////////////////////////////////////////// // SECTION : COMMENTS BACKGROUNDS ///////////////////////////////////////////////// $wp_customize->add_section( 'cam_custom_comments_background_colors', array( 'title' => __( 'Comments background colors', 'cameleon' ), 'priority' => 10, 'capability' => 'edit_theme_options', 'description' => __('Customize comments background colors', 'cameleon'), 'panel' => 'cam_custom_comments_colors_panel', ) ); // Setting 1st LEVEL COMMENT ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_firstcomment_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_firstcomment_background', array( 'label' => __( 'First level comments background', 'cameleon' ), 'section' => 'cam_custom_comments_background_colors', 'settings' => 'custom_firstcomment_background', 'priority' => 10, ) ) ); // Setting 2nd LEVEL COMMENT ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_secondcomment_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_secondcomment_background', array( 'label' => __( 'Second level comments background', 'cameleon' ), 'section' => 'cam_custom_comments_background_colors', 'settings' => 'custom_secondcomment_background', 'priority' => 10, ) ) ); ///////////////////////////////////////////////// // SECTION : COMMENT TEXTS ///////////////////////////////////////////////// $wp_customize->add_section( 'cam_custom_comments_texts_colors', array( 'title' => __( 'Comments texts colors', 'cameleon' ), 'priority' => 10, 'capability' => 'edit_theme_options', 'description' => __('Customize comments texts colors', 'cameleon'), 'panel' => 'cam_custom_comments_colors_panel', ) ); // Setting COMMENTS TEXT color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_firstcomments_text_color', 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_firstcomments_text_color', array( 'label' => __( 'Texts color', 'cameleon' ), 'section' => 'cam_custom_comments_texts_colors', 'settings' => 'custom_firstcomments_text_color', 'priority' => 10, ) ) ); // Setting COMMENTS LINKS color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_firstcomments_links_color', array( 'default' => '#98b8df', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_firstcomments_links_color', array( 'label' => __( 'Links color', 'cameleon' ), 'section' => 'cam_custom_comments_texts_colors', 'settings' => 'custom_firstcomments_links_color', 'priority' => 10, ) ) ); // Setting COMMENTS LINKS:HOVER color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_firstcomments_linkshover_color', array( 'default' => '#7ea2cc', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'cameleon_custom_firstcomments_linkshover_color', array( 'label' => __( 'Links color on mouse over', 'cameleon' ), 'section' => 'cam_custom_comments_texts_colors', 'settings' => 'custom_firstcomments_linkshover_color', 'priority' => 10, ) ) ); } public static function header_output() { ?>