add_section( 'vinethemes_new_section_custom_css' , array( 'title' => 'Custom CSS', 'description'=> 'Add your custom CSS which will overwrite the theme CSS', 'priority' => 105, ) ); $wp_customize->add_section( 'vinethemes_new_section_color_accent' , array( 'title' => 'Colors: Main Color', 'description'=> '', 'priority' => 106, ) ); $wp_customize->add_section( 'vinethemes_new_section_color_post_color' , array( 'title' => 'Colors: Posts', 'description'=> '', 'priority' => 102, ) ); $wp_customize->add_section( 'vinethemes_new_section_color_footer' , array( 'title' => 'Colors: Footer', 'description'=> '', 'priority' => 101, ) ); $wp_customize->add_section( 'vinethemes_new_section_color_sidebar' , array( 'title' => 'Colors: Sidebar', 'description'=> '', 'priority' => 104, ) ); $wp_customize->add_section( 'vinethemes_new_section_mobile' , array( 'title' => 'Colors: Mobile Menu', 'description'=> '', 'priority' => 103, ) ); $wp_customize->add_section( 'vinethemes_new_section_color_topbar' , array( 'title' => 'Colors: Top Bar', 'description'=> '', 'priority' => 100, ) ); $wp_customize->add_section( 'vinethemes_new_section_footer' , array( 'title' => 'Footer Settings', 'description'=> '', 'priority' => 99, ) ); $wp_customize->add_section( 'vinethemes_new_section_social' , array( 'title' => 'Social Media Settings', 'description'=> 'Enter your social media usernames. Icons will not show if left blank.', 'priority' => 98, ) ); $wp_customize->add_section( 'vinethemes_new_section_page' , array( 'title' => 'Page Settings', 'description'=> '', 'priority' => 97, ) ); $wp_customize->add_section( 'vinethemes_new_section_post' , array( 'title' => 'Post Settings', 'description'=> '', 'priority' => 96, ) ); $wp_customize->add_section( 'vinethemes_grid' , array( 'title' => 'Top Grid Settings', 'description'=> '', 'priority' => 93, ) ); $wp_customize->add_section( 'vinethemes_new_section_featured' , array( 'title' => 'Carousel Area Settings', 'description'=> '', 'priority' => 94, ) ); $wp_customize->add_section( 'vinethemes_new_section_featured_boxes' , array( 'title' => 'Featured Boxes Area Settings', 'description'=> '', 'priority' => 95, ) ); $wp_customize->add_section( 'vinethemes_new_section_topbar' , array( 'title' => 'Top Bar Settings', 'description'=> '', 'priority' => 92, ) ); $wp_customize->add_section( 'vinethemes_new_section_logo_header' , array( 'title' => 'Logo and Header Settings', 'description'=> '', 'priority' => 91, ) ); $wp_customize->add_section( 'vinethemes_new_section_general' , array( 'title' => 'General Settings', 'description'=> '', 'priority' => 90, ) ); // Add Setting // General $wp_customize->add_setting( 'ct_favicon', array( 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_setting( 'ct_responsive', array( 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'home_sidebar', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'ct_sidebar_post', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'archive_sidebar', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_post_summary', array( 'default' => 'full', 'sanitize_callback' => 'vinethemes_sanitize' ) ); /* $wp_customize->add_setting( 'below_slider_area', array( 'default' => false, 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); */ // Header & Logo $wp_customize->add_setting( 'header_styles', array( 'default' => 'header1', 'sanitize_callback' => 'vinethemes_sanitize1' ) ); $wp_customize->add_setting( 'topad_area', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_logo', array( 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_setting( 'ct_header_padding_top', array( 'default' => '56', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_setting( 'ct_header_padding_bottom', array( 'default' => '56', 'sanitize_callback' => 'absint' ) ); // Top Bar $wp_customize->add_setting( 'ct_topbar_social_check', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'ct_topbar_search_check', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); /* $wp_customize->add_setting( 'ct_topbar_trending', array( 'default' => false, 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); */ $wp_customize->add_setting( 'ct_topbar_url', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); //top grid $wp_customize->add_setting( 'vine_themes_grid', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'vt_featured_cat', array( 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'vt_featured_id', array( 'default' => '', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_setting( 'vt_featured_grid_slides', array( 'default' => 'four', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); // slider area $wp_customize->add_setting( 'vine_themes_slider', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'ct_featured_cat', array( 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_featured_id', array( 'default' => '', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_setting( 'ct_featured_slider_slides', array( 'default' => '5', 'sanitize_callback' => 'absint' ) ); /* $wp_customize->add_setting( 'vine_themes_slider_full', array( 'default' => 'carousel', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); */ // Featured Boxes /* $wp_customize->add_setting( 'vine_themes_featured_box', array( 'default' => false, 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo1_title', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo1_image', array( 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo1_url', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo2_title', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo2_image', array( 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo2_url', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo3_title', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo3_image', array( 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_promo3_url', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); */ // Post Settings $wp_customize->add_setting( 'article_tags', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_author', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_related_post', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_social_share', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_author_box', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_comment_link', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_thumbnail_area', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'article_date_area', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'post_categories', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); $wp_customize->add_setting( 'post_view_counter', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); // Page $wp_customize->add_setting( 'ct_social_share', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); // Social Media $wp_customize->add_setting( 'ct_facebook', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_twitter', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_instagram', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_pinterest', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_tumblr', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_bloglovin', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_tumblr', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_google', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_youtube', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_dribbble', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_soundcloud', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_vimeo', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_linkedin', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_rss', array( 'default' => '', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); // Footer $wp_customize->add_setting( 'ct_footer_copyright', array( 'default' => '(c) 2018 - VineThemes. All Rights Reserved.', 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); $wp_customize->add_setting( 'ct_footer_share', array( 'default' => false, 'sanitize_callback' => 'vinetheme_sanitize_checkbox' ) ); // Colors // Top bar $wp_customize->add_setting( 'ct_topbar_bg', array( 'default' => '#000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_topbar_nav_color', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_topbar_nav_color_hover', array( 'default' => '#999999', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_drop_bg', array( 'default' => '#000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_drop_border', array( 'default' => '#444', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_drop_text_color', array( 'default' => '#999999', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_drop_text_hover_bg', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_drop_text_hover_color', array( 'default' => '#00AFF0', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_topbar_social_color', array( 'default' => '#000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_topbar_social_color_hover', array( 'default' => '#00AFF0', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_topbar_search_magnify', array( 'default' => '#000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); // Mobile Menu colors $wp_customize->add_setting( 'ct_mobile_bg', array( 'default' => '#161616', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_mobile_text', array( 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_mobile_icon', array( 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); // Sidebar $wp_customize->add_setting( 'ct_sidebar_title_bg', array( 'default' => false, 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_title_text', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_social_icon', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_social_icon_hover', array( 'default' => '#50aeb5', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_newsletter_bg', array( 'default' => '#f1f1f1', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_newsletter_text', array( 'default' => '#444444', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_newsletter_button_bg', array( 'default' => '#161616', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_newsletter_button_text', array( 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_newsletter_button_bg_hover', array( 'default' => '#50aeb5', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_sidebar_newsletter_button_text_hover', array( 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); // Footer $wp_customize->add_setting( 'ct_footer_bg', array( 'default' => '#111', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_footer_social', array( 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_footer_social_hover', array( 'default' => '#50aeb5', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_footer_social_line', array( 'default' => '#313131', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_footer_copyright_color', array( 'default' => '#888888', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_footer_copyright_link', array( 'default' => '#333', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); // Posts $wp_customize->add_setting( 'ct_post_title', array( 'default' => '#000000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_title_divider', array( 'default' => '#000000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_text', array( 'default' => '#242424', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_h', array( 'default' => '#242424', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_readmore_text', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_readmore_text_hover', array( 'default' => '#50aeb5', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_readmore_line', array( 'default' => '#50aeb5', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_readmore_line_hover', array( 'default' => '#50aeb5', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_share_color', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_setting( 'ct_post_share_color_hover', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); // Main Color $wp_customize->add_setting( 'ct_accent_color', array( 'default' => '#fff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); // Custom CSS $wp_customize->add_setting( 'ct_custom_css', array( 'sanitize_callback' => 'vinethemes_sanitize_text' ) ); // Add Control // General $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'upload_favicon', array( 'label' => 'Upload Favicon', 'section' => 'vinethemes_new_section_general', 'settings' => 'ct_favicon', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'responsive', array( 'label' => 'Disable Responsive', 'section' => 'vinethemes_new_section_general', 'settings' => 'ct_responsive', 'type' => 'checkbox', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'sidebar_homepage', array( 'label' => 'Disable Sidebar on Homepage', 'section' => 'vinethemes_new_section_general', 'settings' => 'home_sidebar', 'type' => 'checkbox', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'sidebar_post', array( 'label' => 'Disable Sidebar on Posts', 'section' => 'vinethemes_new_section_general', 'settings' => 'ct_sidebar_post', 'type' => 'checkbox', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'sidebar_archive', array( 'label' => 'Disable Sidebar on Archives', 'section' => 'vinethemes_new_section_general', 'settings' => 'archive_sidebar', 'type' => 'checkbox', 'priority' => 7 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_summary', array( 'label' => 'Homepage/Archive Post Summary Type', 'section' => 'vinethemes_new_section_general', 'settings' => 'article_post_summary', 'type' => 'radio', 'priority' => 8, 'choices' => array( 'full' => 'Use Full Post', 'excerpt' => 'Use Excerpt', ) ) ) ); /* $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'below_slider_area_setting', array( 'label' => 'Enable Below Slider Area (Use Widget Section to add something in the below slider area)', 'section' => 'vinethemes_new_section_general', 'settings' => 'below_slider_area', 'type' => 'checkbox', 'priority' => 9 ) ) ); */ // Header and Logo $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'header_styles', array( 'label' => 'Header Styles', 'section' => 'vinethemes_new_section_logo_header', 'settings' => 'header_styles', 'type' => 'radio', 'priority' => 18, 'choices' => array( 'header1' => 'Header Style 1(Center Logo)', 'header2' => 'Header Style 2' ) ) ) ); $wp_customize->add_control( new Customize_CustomCss_Control( $wp_customize, 'top_ad', array( 'label' => 'Top Ad Area: Place your ad code here', 'section' => 'vinethemes_new_section_logo_header', 'settings' => 'topad_area', 'type' => 'textarea', 'priority' => 19 ) ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'upload_logo', array( 'label' => 'Upload Logo', 'section' => 'vinethemes_new_section_logo_header', 'settings' => 'ct_logo', 'priority' => 20 ) ) ); $wp_customize->add_control( new Customize_Number_Control( $wp_customize, 'header_padding_top', array( 'label' => 'Top Header Padding', 'section' => 'vinethemes_new_section_logo_header', 'settings' => 'ct_header_padding_top', 'type' => 'number', 'priority' => 22 ) ) ); $wp_customize->add_control( new Customize_Number_Control( $wp_customize, 'header_padding_bottom', array( 'label' => 'Bottom Header Padding', 'section' => 'vinethemes_new_section_logo_header', 'settings' => 'ct_header_padding_bottom', 'type' => 'number', 'priority' => 23 ) ) ); // Top Bar $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'topbar_search_check', array( 'label' => 'Disable Top Bar Search', 'section' => 'vinethemes_new_section_topbar', 'settings' => 'ct_topbar_search_check', 'type' => 'checkbox', 'priority' => 4 ) ) ); /* $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'topbar_trending', array( 'label' => 'Disable Top Right Trending Icon', 'section' => 'vinethemes_new_section_topbar', 'settings' => 'ct_topbar_trending', 'type' => 'checkbox', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'trending_url', array( 'label' => 'Top Right Trending Icon Category URL', 'section' => 'vinethemes_new_section_topbar', 'settings' => 'ct_topbar_url', 'type' => 'text', 'priority' => 6 ) ) ); */ // Featured Boxes area /* $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'featured_boxes', array( 'label' => 'Enable Featured Boxes', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'vine_themes_featured_box', 'type' => 'checkbox', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'promo1_title', array( 'label' => 'Featured Box1 Title', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo1_title', 'type' => 'text', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'promo1_image', array( 'label' => 'Featured Box1 Image', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo1_image', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'promo1_url', array( 'label' => 'Featured Box1 URL', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo1_url', 'type' => 'text', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'promo2_title', array( 'label' => 'Featured Box2 Title', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo2_title', 'type' => 'text', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'promo2_image', array( 'label' => 'Featured Box2 Image', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo2_image', 'priority' => 7 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'promo2_url', array( 'label' => 'Featured Box2 URL', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo2_url', 'type' => 'text', 'priority' => 8 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'promo3_title', array( 'label' => 'Featured Box3 Title', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo3_title', 'type' => 'text', 'priority' => 9 ) ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'promo3_image', array( 'label' => 'Featured Box3 Image', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo3_image', 'priority' => 10 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'promo3_url', array( 'label' => 'Featured Box3 URL', 'section' => 'vinethemes_new_section_featured_boxes', 'settings' => 'ct_promo3_url', 'type' => 'text', 'priority' => 11 ) ) ); */ //Top Grid $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'featured_grid', array( 'label' => 'Enable Top Grid', 'section' => 'vinethemes_grid', 'settings' => 'vine_themes_grid', 'type' => 'checkbox', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Category_Control( $wp_customize, 'grid_cat', array( 'label' => 'Select Grid Category', 'settings' => 'vt_featured_cat', 'section' => 'vinethemes_grid', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'grid_id', array( 'label' => 'Select Grid post IDs', 'section' => 'vinethemes_grid', 'settings' => 'vt_featured_id', 'type' => 'text', 'priority' => 4 ) ) ); // slider area $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'featured_slider', array( 'label' => 'Enable Carousel', 'section' => 'vinethemes_new_section_featured', 'settings' => 'vine_themes_slider', 'type' => 'checkbox', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Category_Control( $wp_customize, 'featured_cat', array( 'label' => 'Select Carousel Category', 'settings' => 'ct_featured_cat', 'section' => 'vinethemes_new_section_featured', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'featured_id', array( 'label' => 'Select Carousel post/page IDs', 'section' => 'vinethemes_new_section_featured', 'settings' => 'ct_featured_id', 'type' => 'text', 'priority' => 4 ) ) ); $wp_customize->add_control( new Customize_Number_Control( $wp_customize, 'featured_slider_slides', array( 'label' => 'Number of Posts', 'section' => 'vinethemes_new_section_featured', 'settings' => 'ct_featured_slider_slides', 'type' => 'number', 'priority' => 5 ) ) ); /* $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'featured_slider_full', array( 'label' => 'Select Slider Styles', 'section' => 'vinethemes_new_section_featured', 'settings' => 'vine_themes_slider_full', 'type' => 'radio', 'priority' => 6, 'choices' => array( 'full' => 'Full Width Slider', 'carousel' => 'Carousel with 4 Items' ) ) ) ); */ // Post Settings $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_thumb', array( 'label' => 'Hide slider Image from top of Post', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_thumbnail_area', 'type' => 'checkbox', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_cat', array( 'label' => 'Hide Category', 'section' => 'vinethemes_new_section_post', 'settings' => 'post_categories', 'type' => 'checkbox', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_date', array( 'label' => 'Hide Date', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_date_area', 'type' => 'checkbox', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_tags', array( 'label' => 'Hide Tags', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_tags', 'type' => 'checkbox', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_share', array( 'label' => 'Hide Share Buttons', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_social_share', 'type' => 'checkbox', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_share_author', array( 'label' => 'Hide Author Name', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_author_box', 'type' => 'checkbox', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_comment_link', array( 'label' => 'Hide Comment Link', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_comment_link', 'type' => 'checkbox', 'priority' => 7 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_author', array( 'label' => 'Hide Author Box', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_author', 'type' => 'checkbox', 'priority' => 8 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_related', array( 'label' => 'Hide Related Posts Box', 'section' => 'vinethemes_new_section_post', 'settings' => 'article_related_post', 'type' => 'checkbox', 'priority' => 9 ) ) ); // Page $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'page_share', array( 'label' => 'Hide Share Buttons', 'section' => 'vinethemes_new_section_page', 'settings' => 'ct_social_share', 'type' => 'checkbox', 'priority' => 1 ) ) ); // Social Media $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'facebook', array( 'label' => 'Facebook', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_facebook', 'type' => 'text', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'twitter', array( 'label' => 'Twitter', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_twitter', 'type' => 'text', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'instagram', array( 'label' => 'Instagram', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_instagram', 'type' => 'text', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'pinterest', array( 'label' => 'Pinterest', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_pinterest', 'type' => 'text', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'bloglovin', array( 'label' => 'Bloglovin', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_bloglovin', 'type' => 'text', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'google', array( 'label' => 'Google Plus', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_google', 'type' => 'text', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'tumblr', array( 'label' => 'Tumblr', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_tumblr', 'type' => 'text', 'priority' => 7 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'youtube', array( 'label' => 'Youtube', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_youtube', 'type' => 'text', 'priority' => 8 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'dribbble', array( 'label' => 'Dribbble', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_dribbble', 'type' => 'text', 'priority' => 9 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'soundcloud', array( 'label' => 'Soundcloud', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_soundcloud', 'type' => 'text', 'priority' => 10 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'vimeo', array( 'label' => 'Vimeo', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_vimeo', 'type' => 'text', 'priority' => 11 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'linkedin', array( 'label' => 'Linkedin (Use full URL to your Linkedin profile)', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_linkedin', 'type' => 'text', 'priority' => 12 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'rss', array( 'label' => 'RSS Link', 'section' => 'vinethemes_new_section_social', 'settings' => 'ct_rss', 'type' => 'text', 'priority' => 13 ) ) ); // Footer $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'footer_copyright', array( 'label' => 'Footer Copyright Text', 'section' => 'vinethemes_new_section_footer', 'settings' => 'ct_footer_copyright', 'type' => 'text', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'footer_share', array( 'label' => 'Hide Footer Share Links', 'section' => 'vinethemes_new_section_footer', 'settings' => 'ct_footer_share', 'type' => 'checkbox', 'priority' => 2 ) ) ); // Colors // Top bar Colors $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'topbar_bg', array( 'label' => 'Top Bar BG', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_topbar_bg', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'topbar_nav_color', array( 'label' => 'Top Bar Menu Text Color', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_topbar_nav_color', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'topbar_nav_color_hover', array( 'label' => 'Top Bar Menu Text Hover Color', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_topbar_nav_color_hover', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'drop_bg', array( 'label' => 'Dropdown BG', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_drop_bg', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'drop_border', array( 'label' => 'Dropdown Border Color', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_drop_border', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'drop_text_color', array( 'label' => 'Dropdown Text Color', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_drop_text_color', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'drop_text_hover_bg', array( 'label' => 'Dropdown Text Hover BG', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_drop_text_hover_bg', 'priority' => 7 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'drop_text_hover_color', array( 'label' => 'Dropdown Text Hover Color', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_drop_text_hover_color', 'priority' => 8 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'topbar_social_color', array( 'label' => 'Top Bar Social Icons', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_topbar_social_color', 'priority' => 9 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'topbar_social_color_hover', array( 'label' => 'Top Bar Social Icons Hover', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_topbar_social_color_hover', 'priority' => 11 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'topbar_search_magnify', array( 'label' => 'Top Bar Search Magnify Color', 'section' => 'vinethemes_new_section_color_topbar', 'settings' => 'ct_topbar_search_magnify', 'priority' => 13 ) ) ); // Mobile menu $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mobile_bg', array( 'label' => 'Mobile Menu BG Color', 'section' => 'vinethemes_new_section_mobile', 'settings' => 'ct_mobile_bg', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mobile_text', array( 'label' => 'Mobile Menu Link Color', 'section' => 'vinethemes_new_section_mobile', 'settings' => 'ct_mobile_text', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mobile_icon', array( 'label' => 'Mobile Menu Toggle Icon Color', 'section' => 'vinethemes_new_section_mobile', 'settings' => 'ct_mobile_icon', 'priority' => 3 ) ) ); // Sidebar $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_title_bg', array( 'label' => 'Sidebar Widget Title BG', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_title_bg', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_title_text', array( 'label' => 'Sidebar Widget Title Text Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_title_text', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_social_icon', array( 'label' => 'Sidebar Social Icon Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_social_icon', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_social_icon_hover', array( 'label' => 'Sidebar Social Icon Hover Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_social_icon_hover', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_newsletter_bg', array( 'label' => 'Mailchimp Widget BG Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_newsletter_bg', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_newsletter_text', array( 'label' => 'Mailchimp Widget Text Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_newsletter_text', 'priority' => 7 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_newsletter_button_bg', array( 'label' => 'Mailchimp Widget Button BG Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_newsletter_button_bg', 'priority' => 8 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_newsletter_button_text', array( 'label' => 'Mailchimp Widget Button Text Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_newsletter_button_text', 'priority' => 9 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_newsletter_button_bg_hover', array( 'label' => 'Mailchimp Widget Button BG Hover Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_newsletter_button_bg_hover', 'priority' => 10 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_newsletter_button_text_hover', array( 'label' => 'Mailchimp Widget Button Text Hover Color', 'section' => 'vinethemes_new_section_color_sidebar', 'settings' => 'ct_sidebar_newsletter_button_text_hover', 'priority' => 11 ) ) ); // Footer $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_bg', array( 'label' => 'Footer BG Color', 'section' => 'vinethemes_new_section_color_footer', 'settings' => 'ct_footer_bg', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_social', array( 'label' => 'Footer Social Icon Color', 'section' => 'vinethemes_new_section_color_footer', 'settings' => 'ct_footer_social', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_social_hover', array( 'label' => 'Footer Social Icon Hover Color', 'section' => 'vinethemes_new_section_color_footer', 'settings' => 'ct_footer_social_hover', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_social_line', array( 'label' => 'Footer Social Separator Line', 'section' => 'vinethemes_new_section_color_footer', 'settings' => 'ct_footer_social_line', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_copyright_color', array( 'label' => 'Footer Copyright Text Color', 'section' => 'vinethemes_new_section_color_footer', 'settings' => 'ct_footer_copyright_color', 'priority' => 5 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_copyright_link', array( 'label' => 'Footer Copyright Link Color', 'section' => 'vinethemes_new_section_color_footer', 'settings' => 'ct_footer_copyright_link', 'priority' => 6 ) ) ); // Posts $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_title', array( 'label' => 'Post Title Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_title', 'priority' => 1 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_title_divider', array( 'label' => 'Post Title Divider Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_title_divider', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_text', array( 'label' => 'Post Text Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_text', 'priority' => 2 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_h', array( 'label' => 'Post H1-H6 Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_h', 'priority' => 3 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_readmore_text', array( 'label' => 'Read More Text Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_readmore_text', 'priority' => 4 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_readmore_text_hover', array( 'label' => 'Read More Text Hover Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_readmore_text_hover', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_readmore_line', array( 'label' => 'Read More Underline Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_readmore_line', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_readmore_line_hover', array( 'label' => 'Read More Underline Hover Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_readmore_line_hover', 'priority' => 6 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_share_color', array( 'label' => 'Post Share Link Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_share_color', 'priority' => 8 ) ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'post_share_color_hover', array( 'label' => 'Post Share Link Hover Color', 'section' => 'vinethemes_new_section_color_post_color', 'settings' => 'ct_post_share_color_hover', 'priority' => 9 ) ) ); // Main Color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'accent_color', array( 'label' => 'Main Color Color', 'section' => 'vinethemes_new_section_color_accent', 'settings' => 'ct_accent_color', 'priority' => 1 ) ) ); // Custom CSS $wp_customize->add_control( new Customize_CustomCss_Control( $wp_customize, 'custom_css', array( 'label' => 'Custom CSS', 'section' => 'vinethemes_new_section_custom_css', 'settings' => 'ct_custom_css', 'type' => 'custom_css', 'priority' => 1 ) ) ); // Remove Sections $wp_customize->remove_section( 'title_tagline'); $wp_customize->remove_section( 'nav'); $wp_customize->remove_section( 'static_front_page'); $wp_customize->remove_section( 'colors'); } function vinethemes_sanitize( $input ) { $valid = array( 'full' => __( 'Full', 'amstel' ), 'excerpt' => __( 'Excerpt', 'amstel' ), ); if ( array_key_exists( $input, $valid ) ) { return $input; } return ''; } function vinethemes_sanitize1( $input ) { $valid = array( 'header1' => __( 'Header1', 'amstel' ), 'header2' => __( 'Header2', 'amstel' ), ); if ( array_key_exists( $input, $valid ) ) { return $input; } return ''; } function vinethemes_sanitize_text( $input ) { return sanitize_text_field( $input ); } function vinetheme_sanitize_checkbox( $input ){ //returns true if checkbox is checked return ( isset( $input ) ? true : false ); } add_action( 'customize_register', 'vinethemes_register_theme_customizer' ); ?>