remove_control( 'display_header_text' ); $wp_customize->remove_control( 'header_textcolor' ); $wp_customize->remove_section( 'header_image' ); /* Logo */ // add logo section $wp_customize->add_section( 'wptime_cmz_logo_section', array( 'title' => __('Logo', 'super-simple') ) ); // add option for upload logo $wp_customize->add_setting( 'wptime_cmz_logo_url', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' ) ); // add control for upload logo $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'wptime_cmz_logo_url', array( 'label' => __('Logo Image', 'super-simple'), 'section' => 'wptime_cmz_logo_section', 'description' => __('Upload logo (if do you want retina logo, upload large logo, and set logo retina width and height).', 'super-simple'), 'settings' => 'wptime_cmz_logo_url' ) ) ); // add option for logo width $wp_customize->add_setting( 'wptime_cmz_logo_width', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for logo width $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_logo_width', array( 'label' => __('Logo Retina Width', 'super-simple'), 'section' => 'wptime_cmz_logo_section', 'description' => __('If you uploaded large logo only, enter logo width (division by two), for example if large logo width is 200, enter 100.', 'super-simple'), 'settings' => 'wptime_cmz_logo_width' ) ) ); // add option for logo height $wp_customize->add_setting( 'wptime_cmz_logo_height', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for logo height $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_logo_height', array( 'label' => __('Logo Retina Height', 'super-simple'), 'section' => 'wptime_cmz_logo_section', 'description' => __('If you uploaded large logo only, enter logo height (division by two), for example if large logo height is 200, enter 100.', 'super-simple'), 'settings' => 'wptime_cmz_logo_height' ) ) ); /* Footer Social Links */ // add footer social links section $wp_customize->add_section( 'wptime_cmz_footer_social_section', array( 'title' => __('Footer Social Links', 'super-simple') ) ); // add facebook link option $wp_customize->add_setting( 'wptime_cmz_facebook_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for facebook link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_facebook_link', array( 'label' => __('Facebook', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_facebook_link' ) ) ); // add twitter link option $wp_customize->add_setting( 'wptime_cmz_twitter_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for twitter link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_twitter_link', array( 'label' => __('Twitter', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_twitter_link' ) ) ); // add instagram link option $wp_customize->add_setting( 'wptime_cmz_instagram_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for instagram link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_instagram_link', array( 'label' => __('Instagram', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_instagram_link' ) ) ); // add google plus link option $wp_customize->add_setting( 'wptime_cmz_google_plus_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for google plus link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_google_plus_link', array( 'label' => __('Google Plus', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_google_plus_link' ) ) ); // add youtube link option $wp_customize->add_setting( 'wptime_cmz_youtube_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for youtube link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_youtube_link', array( 'label' => __('YouTube', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_youtube_link' ) ) ); // add vimeo link option $wp_customize->add_setting( 'wptime_cmz_vimeo_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for vimeo link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_vimeo_link', array( 'label' => __('Vimeo', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_vimeo_link' ) ) ); // add linkedin link option $wp_customize->add_setting( 'wptime_cmz_linkedin_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for linkedin link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_linkedin_link', array( 'label' => __('LinkedIn', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_linkedin_link' ) ) ); // add flickr link option $wp_customize->add_setting( 'wptime_cmz_flickr_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for flickr link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_flickr_link', array( 'label' => __('Flickr', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_flickr_link' ) ) ); // add soundcloud link option $wp_customize->add_setting( 'wptime_cmz_soundcloud_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for soundcloud link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_soundcloud_link', array( 'label' => __('SoundCloud', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_soundcloud_link' ) ) ); // add vk.com link option $wp_customize->add_setting( 'wptime_cmz_vkcom_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for vk.com link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_vkcom_link', array( 'label' => __('VK.com', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_vkcom_link' ) ) ); // add pinterest link option $wp_customize->add_setting( 'wptime_cmz_pinterest_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for pinterest link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_pinterest_link', array( 'label' => __('Pinterest', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_pinterest_link' ) ) ); // add behance link option $wp_customize->add_setting( 'wptime_cmz_behance_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for behance link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_behance_link', array( 'label' => __('Behance', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_behance_link' ) ) ); // add dribbble link option $wp_customize->add_setting( 'wptime_cmz_dribbble_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for dribbble link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_dribbble_link', array( 'label' => __('Dribbble', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_dribbble_link' ) ) ); // add github link option $wp_customize->add_setting( 'wptime_cmz_github_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for github link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_github_link', array( 'label' => __('GitHub', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_github_link' ) ) ); // add apple link option $wp_customize->add_setting( 'wptime_cmz_apple_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for apple link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_apple_link', array( 'label' => __('Apple', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_apple_link' ) ) ); // add microsoft link option $wp_customize->add_setting( 'wptime_cmz_microsoft_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for microsoft link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_microsoft_link', array( 'label' => __('Microsoft', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_microsoft_link' ) ) ); // add android link option $wp_customize->add_setting( 'wptime_cmz_android_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); // add control for android link option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_android_link', array( 'label' => __('Android', 'super-simple'), 'section' => 'wptime_cmz_footer_social_section', 'description' => false, 'settings' => 'wptime_cmz_android_link' ) ) ); /* General */ // add General section $wp_customize->add_section( 'wptime_cmz_general_section', array( 'title' => __('General', 'super-simple') ) ); // add enable footer tagline option $wp_customize->add_setting( 'wptime_cmz_enable_footer_tagline', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'alobaidi_cmz_sanitize_checkbox' ) ); // add control for enable footer tagline option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_enable_footer_tagline', array( 'label' => __('Enable Footer Tagline', 'super-simple'), 'type' => 'checkbox', 'section' => 'wptime_cmz_general_section', 'description' => false, 'settings' => 'wptime_cmz_enable_footer_tagline' ) ) ); // add disable sharing buttons option $wp_customize->add_setting( 'wptime_cmz_disable_sharing_buttons', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'alobaidi_cmz_sanitize_checkbox' ) ); // add control for disable sharing buttons option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_disable_sharing_buttons', array( 'label' => __('Disable Post Sharing Buttons', 'super-simple'), 'type' => 'checkbox', 'section' => 'wptime_cmz_general_section', 'description' => false, 'settings' => 'wptime_cmz_disable_sharing_buttons' ) ) ); // add disable top button option $wp_customize->add_setting( 'wptime_cmz_disable_top_button', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'alobaidi_cmz_sanitize_checkbox' ) ); // add control for disable top button option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_disable_top_button', array( 'label' => __('Disable Top Button', 'super-simple'), 'type' => 'checkbox', 'section' => 'wptime_cmz_general_section', 'description' => false, 'settings' => 'wptime_cmz_disable_top_button' ) ) ); // add disable author template option $wp_customize->add_setting( 'wptime_cmz_disable_author_template', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'alobaidi_cmz_sanitize_checkbox' ) ); // add control for disable author template option $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wptime_cmz_disable_author_template', array( 'label' => __('Disable Author Template', 'super-simple'), 'type' => 'checkbox', 'section' => 'wptime_cmz_general_section', 'description' => false, 'settings' => 'wptime_cmz_disable_author_template' ) ) ); // add option for upload favicon $wp_customize->add_setting( 'wptime_cmz_favicon_link', array( 'type' => 'option', 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' ) ); // add control for upload favicon $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'wptime_cmz_favicon_link', array( 'label' => __('Upload Favicon', 'super-simple'), 'section' => 'wptime_cmz_general_section', 'description' => false, 'settings' => 'wptime_cmz_favicon_link' ) ) ); /* Header Colors */ $wp_customize->add_section( 'wptime_cmz_header_colors_section', array( 'title' => __('Header Colors', 'super-simple') ) ); $wp_customize->add_setting( 'wptime_cmz_header_background_color', array( 'type' => 'option', 'default' => '#A8D2AA', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_background_color', array( 'label' => __('Background Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_header_logo_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_logo_text_color', array( 'label' => __('Text Logo Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_logo_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_header_logo_text_hover_color', array( 'type' => 'option', 'default' => '#769478', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_logo_text_hover_color', array( 'label' => __('Text Logo Hover Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_logo_text_hover_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_header_link_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_link_color', array( 'label' => __('Links Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_link_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_header_link_hover_color', array( 'type' => 'option', 'default' => '#769478', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_link_hover_color', array( 'label' => __('Links Hover & Current Menu Link Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_link_hover_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_header_menu_icon_color', array( 'type' => 'option', 'default' => '#769478', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_menu_icon_color', array( 'label' => __('Menu Icon Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_menu_icon_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_header_search_background_color', array( 'type' => 'option', 'default' => '#769478', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_search_background_color', array( 'label' => __('Search Background Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_search_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_header_search_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_header_search_text_color', array( 'label' => __('Search Text Color', 'super-simple'), 'section' => 'wptime_cmz_header_colors_section', 'description' => false, 'settings' => 'wptime_cmz_header_search_text_color' ) ) ); /* Content Colors */ $wp_customize->add_section( 'wptime_cmz_content_colors_section', array( 'title' => __('Content Colors', 'super-simple') ) ); $wp_customize->add_setting( 'wptime_cmz_content_link_color', array( 'type' => 'option', 'default' => '#829fd3', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_link_color', array( 'label' => __('Links Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => false, 'settings' => 'wptime_cmz_content_link_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_content_heading_color', array( 'type' => 'option', 'default' => '#e27777', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_heading_color', array( 'label' => __('Heading Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => __("post title, h1, h2, h3, h4, h5, h6 color.", 'super-simple'), 'settings' => 'wptime_cmz_content_heading_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_content_d_b_r_bg_color', array( 'type' => 'option', 'default' => '#f5b06e', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_d_b_r_bg_color', array( 'label' => __('Post Date & Reply Link & Buttons Background Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => false, 'settings' => 'wptime_cmz_content_d_b_r_bg_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_content_d_b_r_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_d_b_r_text_color', array( 'label' => __('Post Date & Reply Link & Buttons Text Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => false, 'settings' => 'wptime_cmz_content_d_b_r_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_content_read_more_background_color', array( 'type' => 'option', 'default' => '#829fd3', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_read_more_background_color', array( 'label' => __('Read More Background Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => false, 'settings' => 'wptime_cmz_content_read_more_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_content_read_more_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_read_more_text_color', array( 'label' => __('Read More Text Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => false, 'settings' => 'wptime_cmz_content_read_more_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_content_share_buttons_background_color', array( 'type' => 'option', 'default' => '#ae82d3', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_share_buttons_background_color', array( 'label' => __('Share Buttons Background Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => false, 'settings' => 'wptime_cmz_content_share_buttons_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_content_share_buttons_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_content_share_buttons_text_color', array( 'label' => __('Share Buttons Text Color', 'super-simple'), 'section' => 'wptime_cmz_content_colors_section', 'description' => false, 'settings' => 'wptime_cmz_content_share_buttons_text_color' ) ) ); /* General Colors */ $wp_customize->add_section( 'wptime_cmz_general_colors_section', array( 'title' => __('General Colors', 'super-simple') ) ); $wp_customize->add_setting( 'wptime_cmz_general_single_title_background_color', array( 'type' => 'option', 'default' => '#f5f4c2', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_single_title_background_color', array( 'label' => __('Single Title Background Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => __("go to category page to show single title (and tag page, search page, etc).", 'super-simple'), 'settings' => 'wptime_cmz_general_single_title_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_general_single_title_text_color', array( 'type' => 'option', 'default' => '#d382a6', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_single_title_text_color', array( 'label' => __('Single Title Text Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => __("go to category page to show single title (and tag page, search page, etc).", 'super-simple'), 'settings' => 'wptime_cmz_general_single_title_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_general_text_shading_background_color', array( 'type' => 'option', 'default' => '#e27777', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_text_shading_background_color', array( 'label' => __('Text Shading Background Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => __("shading any text to know this option.", 'super-simple'), 'settings' => 'wptime_cmz_general_text_shading_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_general_top_button_background_color', array( 'type' => 'option', 'default' => '#769478', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_top_button_background_color', array( 'label' => __('Top Button Background Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => false, 'settings' => 'wptime_cmz_general_top_button_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_general_top_button_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_top_button_text_color', array( 'label' => __('Top Button Text Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => false, 'settings' => 'wptime_cmz_general_top_button_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_general_post_navigation_background_color', array( 'type' => 'option', 'default' => '#f5f4c2', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_post_navigation_background_color', array( 'label' => __('Post Navigation Wrap Background Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => __("older and newer wrap background color.", 'super-simple'), 'settings' => 'wptime_cmz_general_post_navigation_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_general_post_navigation_link_background_color', array( 'type' => 'option', 'default' => '#d382a6', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_post_navigation_link_background_color', array( 'label' => __('Post Navigation Link Background Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => __("older and newer link background color.", 'super-simple'), 'settings' => 'wptime_cmz_general_post_navigation_link_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_general_post_navigation_link_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_general_post_navigation_link_text_color', array( 'label' => __('Post Navigation Link Icon Color', 'super-simple'), 'section' => 'wptime_cmz_general_colors_section', 'description' => __("older and newer link icon color.", 'super-simple'), 'settings' => 'wptime_cmz_general_post_navigation_link_text_color' ) ) ); /* Author Template Colors */ $wp_customize->add_section( 'wptime_cmz_author_template_colors_section', array( 'title' => __('Author Template Colors', 'super-simple') ) ); $wp_customize->add_setting( 'wptime_cmz_author_template_background_color', array( 'type' => 'option', 'default' => '#f5f4c2', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_author_template_background_color', array( 'label' => __('Author Template Background Color', 'super-simple'), 'section' => 'wptime_cmz_author_template_colors_section', 'description' => false, 'settings' => 'wptime_cmz_author_template_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_author_template_name_text_color', array( 'type' => 'option', 'default' => '#d382a6', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_author_template_name_text_color', array( 'label' => __('Author Name Text Color', 'super-simple'), 'section' => 'wptime_cmz_author_template_colors_section', 'description' => false, 'settings' => 'wptime_cmz_author_template_name_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_author_template_bio_text_color', array( 'type' => 'option', 'default' => '#666666', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_author_template_bio_text_color', array( 'label' => __('Biographical Text Color', 'super-simple'), 'section' => 'wptime_cmz_author_template_colors_section', 'description' => false, 'settings' => 'wptime_cmz_author_template_bio_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_author_template_social_background_color', array( 'type' => 'option', 'default' => '#d382a6', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_author_template_social_background_color', array( 'label' => __('Social Icons Background Color', 'super-simple'), 'section' => 'wptime_cmz_author_template_colors_section', 'description' => false, 'settings' => 'wptime_cmz_author_template_social_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_author_template_social_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_author_template_social_text_color', array( 'label' => __('Social Icons Color', 'super-simple'), 'section' => 'wptime_cmz_author_template_colors_section', 'description' => false, 'settings' => 'wptime_cmz_author_template_social_text_color' ) ) ); /* Footer Colors */ $wp_customize->add_section( 'wptime_cmz_footer_colors_section', array( 'title' => __('Footer Colors', 'super-simple') ) ); $wp_customize->add_setting( 'wptime_cmz_footer_background_color', array( 'type' => 'option', 'default' => '#9bc3b3', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_background_color', array( 'label' => __('Background Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => false, 'settings' => 'wptime_cmz_footer_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_footer_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_text_color', array( 'label' => __('Text Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => false, 'settings' => 'wptime_cmz_footer_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_footer_widget_title_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_widget_title_text_color', array( 'label' => __('Widget Title Text Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => false, 'settings' => 'wptime_cmz_footer_widget_title_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_footer_links_color', array( 'type' => 'option', 'default' => '#5a7269', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_links_color', array( 'label' => __('Links Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => false, 'settings' => 'wptime_cmz_footer_links_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_footer_social_icons_background_color', array( 'type' => 'option', 'default' => '#5a7269', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_social_icons_background_color', array( 'label' => __('Social Icons Background Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => false, 'settings' => 'wptime_cmz_footer_social_icons_background_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_footer_social_icons_text_color', array( 'type' => 'option', 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_social_icons_text_color', array( 'label' => __('Social Icons Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => false, 'settings' => 'wptime_cmz_footer_social_icons_text_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_footer_tagline_color', array( 'type' => 'option', 'default' => '#5a7269', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_tagline_color', array( 'label' => __('Tagline Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => false, 'settings' => 'wptime_cmz_footer_tagline_color' ) ) ); $wp_customize->add_setting( 'wptime_cmz_footer_between_border_color', array( 'type' => 'option', 'default' => '#8CB0A2', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptime_cmz_footer_between_border_color', array( 'label' => __('Footer Bottom Border Color', 'super-simple'), 'section' => 'wptime_cmz_footer_colors_section', 'description' => __("border color between social icons and widgets.", 'super-simple'), 'settings' => 'wptime_cmz_footer_between_border_color' ) ) ); } add_action( 'customize_register', 'Alobaidi_add_customizer' ); // Display custom style from customizer options function Alobaidi_display_custom_style(){ ?>