add_panel( 'cam_custom_posts_colors_panel', array( 'title' => __( 'Posts colors', 'cameleon' ), 'priority' => 25, 'capability' => 'edit_theme_options', 'description' => __('Customize posts colors', 'cameleon'), ) ); ///////////////////////////////////////////////// // SECTION : POST BACKGROUNDS ///////////////////////////////////////////////// $wp_customize->add_section( 'cam_custom_post_background_colors', array( 'title' => __( 'Posts background colors', 'cameleon' ), 'priority' => 10, 'capability' => 'edit_theme_options', 'description' => __('Customize posts background colors', 'cameleon'), 'panel' => 'cam_custom_posts_colors_panel', ) ); // Setting POST FORMAT background ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postformat_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_postformat_background', array( 'label' => __( 'Post format', 'cameleon' ), 'section' => 'cam_custom_post_background_colors', 'settings' => 'custom_postformat_background', 'priority' => 10, ) ) ); // Setting POST TITLE background ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_posttitle_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_posttitle_background', array( 'label' => __( 'Title background color', 'cameleon' ), 'section' => 'cam_custom_post_background_colors', 'settings' => 'custom_posttitle_background', 'priority' => 10, ) ) ); // Setting POST SIDEBAR BACKGROUND color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postside_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_postside_background', array( 'label' => __( 'Post sidebar background color', 'cameleon' ), 'section' => 'cam_custom_post_background_colors', 'settings' => 'custom_postside_background', 'priority' => 10, ) ) ); // Setting POST CONTENT background ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postcontent_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_postcontent_background', array( 'label' => __( 'Content background color', 'cameleon' ), 'section' => 'cam_custom_post_background_colors', 'settings' => 'custom_postcontent_background', 'priority' => 10, ) ) ); ///////////////////////////////////////////////// // SECTION : TEXTS ///////////////////////////////////////////////// $wp_customize->add_section( 'cam_custom_post_texts_colors', array( 'title' => __( 'Posts texts colors', 'cameleon' ), 'priority' => 10, 'capability' => 'edit_theme_options', 'description' => __('Customize posts texts colors', 'cameleon'), 'panel' => 'cam_custom_posts_colors_panel', ) ); // Setting POST FORMAT TEXT color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postformat_color', array( 'default' => '#98b8df', '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_postformat_color', array( 'label' => __( 'Format icon color', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postformat_color', 'priority' => 10, ) ) ); // Setting POST TITLE LINKS ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_posttitle_links', 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_posttitle_links', array( 'label' => __( 'Post title color', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_posttitle_links', 'priority' => 10, ) ) ); // Setting POST TITLE LINKS:hover ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_posttitle_links_hover', 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_posttitle_links_hover', array( 'label' => __( 'Post title on mouse over', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_posttitle_links_hover', 'priority' => 10, ) ) ); // Setting POST SIDEBAR TEXTS color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postside_text', 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_postside_text', array( 'label' => __( 'Posts sidebar texts color', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postside_text', 'priority' => 10, ) ) ); // Setting POST SIDEBAR LINKS color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postside_link', 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_postside_link', array( 'label' => __( 'Posts sidebar links color', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postside_link', 'priority' => 10, ) ) ); // Setting POST SIDEBAR LINKS:hover color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postside_link_hover', 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_postside_link_hover', array( 'label' => __( 'Sidebar links color on mouse over', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postside_link_hover', 'priority' => 10, ) ) ); // Setting POST CONTENT TITLES color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postcontent_titles', array( 'default' => '#98b8df', '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_postcontent_titles', array( 'label' => __( 'Contents titles color', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postcontent_titles', 'priority' => 10, ) ) ); // Setting POST CONTENT TEXT color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postcontent_text', 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_postcontent_text', array( 'label' => __( 'Content texts color', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postcontent_text', 'priority' => 10, ) ) ); // Setting POST CONTENT LINKS color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postcontent_links', 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_postcontent_links', array( 'label' => __( 'Contents links color', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postcontent_links', 'priority' => 10, ) ) ); // Setting POST CONTENT LINKS:hover color ///////////////////////////////////////////////// $wp_customize->add_setting( 'custom_postcontent_links_hover', 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_postcontent_links_hover', array( 'label' => __( 'Contents links color on mouse over', 'cameleon' ), 'section' => 'cam_custom_post_texts_colors', 'settings' => 'custom_postcontent_links_hover', 'priority' => 10, ) ) ); } public static function header_output() { ?>