remove_control('header_textcolor'); /* Header Section */ $wp_customize->add_panel( 'header_options', array( 'priority' => 1, 'capability' => 'edit_theme_options', 'title' => __('Theme Options Settings', 'becorp'), ) ); $wp_customize->add_section( 'header_front_data' , array( 'title' => __('Custom Header Settings', 'becorp'), 'panel' => 'header_options', 'priority' => 20, ) ); //Hide slider $wp_customize->add_setting( 'becorp_option[header_info_phone]', array( 'default' => __('(2)245 23 68','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control('becorp_option[header_info_phone]', array( 'label' => __('Header Headline :', 'becorp'), 'section' => 'header_front_data', 'type' => 'text', )); $wp_customize->add_setting('becorp_option[header_info_mail]' , array( 'default' => 'becorp@gmail.com', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[header_info_mail]', array( 'label' => __('Header Text :', 'becorp'), 'section' => 'header_front_data', 'type' => 'text', )); //Header social Icon $wp_customize->add_section( 'header_social_icon', array( 'title' => 'Social Link ', 'panel' => 'header_options', 'priority' => 23, ) ); //Show and hide Header Social Icons $wp_customize->add_setting( 'becorp_option[header_social_media_enabled]' , array( 'default' => 0, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[header_social_media_enabled]', array( 'label' => __('Show Social icons','becorp'), 'section' => 'header_social_icon', 'type' => 'checkbox', ) ); // Facebook link $wp_customize->add_setting( 'becorp_option[social_media_facebook_link]', array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_facebook_link]', array( 'label' => __('Facebook URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[facebook_media_enabled]',array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[facebook_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //twitter link $wp_customize->add_setting( 'becorp_option[social_media_twitter_link]', array( 'default' => '#', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_twitter_link]', array( 'label' => __('Twitter URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[twitter_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[twitter_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //Linkdin link $wp_customize->add_setting( 'becorp_option[social_media_linkedin_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_linkedin_link]', array( 'label' => __('Linkdin URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[linkedin_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[linkedin_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //dribbble link $wp_customize->add_setting( 'becorp_option[social_media_dribbble_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_dribbble_link]', array( 'label' => __('Dribbble URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[dribbble_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[dribbble_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //googlelink $wp_customize->add_setting( 'becorp_option[social_media_google_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_google_link]', array( 'label' => __('Google URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[google_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[google_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //rss link $wp_customize->add_setting( 'becorp_option[social_media_rss_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_rss_link]', array( 'label' => __('rss URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[rss_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[rss_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //Custom css $wp_customize->add_section( 'custom_css' , array( 'title' => __('Custom css', 'becorp'), 'panel' => 'header_options', 'priority' => 24, ) ); $wp_customize->add_setting( 'becorp_option[becorp_custom_css]' , array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_strip_all_tags', 'type'=> 'option', )); $wp_customize->add_control( 'becorp_option[becorp_custom_css]', array( 'label' => __('Custom css snippet:', 'becorp'), 'section' => 'custom_css', 'type' => 'textarea', )); // Slider Setting Section $wp_customize->add_section( 'post_slider_section_settings', array( 'title' => __('Home Blog Post Slider Settings','becorp'), 'description' => '', 'panel' => 'header_options', 'priority' => 35, ) ); //Hide slider $wp_customize->add_setting( 'becorp_option[post_slider_enabled]', array( 'default' => 1, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[post_slider_enabled]', array( 'label' => __('Hide Blog slider','becorp'), 'section' => 'post_slider_section_settings', 'type' => 'checkbox', ) ); //Select number of latest news on front page $wp_customize->add_setting( 'becorp_option[home_blog_slider_post_count]', array( 'type' => 'option', 'default' => __('4','becorp'), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'becorp_option[home_blog_slider_post_count]', array( 'type' => 'select', 'label' => __('Select Number of Post','becorp'), 'section' => 'post_slider_section_settings', 'choices' => array('2'=>__('2', 'becorp'), '4'=>__('4', 'becorp'), '6' => __('6','becorp'), '8' => __('8','becorp'),'10'=> __('10','becorp'), '12'=> __('12','becorp'),'14'=> __('14','becorp'), '16' =>__('16','becorp')), )); function becorp_prefix_sanitize_layout_blog( $news ) { if ( ! in_array( $news, array( 1,'category_news' ) ) ) return $news; } // Slider Setting Section $wp_customize->add_section( 'slider_section_settings', array( 'title' => __('Featured Slider Settings','becorp'), 'description' => '', 'panel' => 'header_options', 'priority' => 35, ) ); //Hide slider $wp_customize->add_setting( 'becorp_option[home_banner_enabled]', array( 'default' => 1, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[home_banner_enabled]', array( 'label' => __('Hide Home slider','becorp'), 'section' => 'slider_section_settings', 'type' => 'checkbox', ) ); //Slider Image one setting $wp_customize->add_setting( 'becorp_option[slider_image_one]' , array( 'default' => get_template_directory_uri().'/images/slider/slide4.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'becorp_option[slider_image_one]', array( 'label' => __( 'Upload Slider Image One', 'becorp' ), 'section' => 'slider_section_settings', 'priority' => 150, ) ) ); $wp_customize->add_setting('becorp_option[slider_image_title_one]' , array( 'default' => __('Becorp Responsive','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_title_one]', array( 'label' => __('Slider Image Title one :', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 151, )); $wp_customize->add_setting('becorp_option[slider_image_description_one]' , array( 'default' => __('Duis autem vel eum iriure dolor in hendrerit in vulputate.','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_description_one]', array( 'label' => __('Slider Image Description One:', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 152, )); $wp_customize->add_setting( 'becorp_option[slider_button_one_title]', array( 'default' => __('More Details!','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[slider_button_one_title]',array( 'label' => __('Slider Button Text','becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 153, ) ); $wp_customize->add_setting('becorp_option[slider_image_link_one]' , array( 'default' => '#', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_link_one]', array( 'label' => __('Slider Button Link', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 154, )); $wp_customize->add_setting( 'becorp_option[slider_button_tab_one]' ,array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_button_tab_one]', array( 'type' => 'checkbox', 'label' => __('Open New tab/window','becorp'), 'section' => 'slider_section_settings', 'priority' => 155, ) ); //Slider Image two setting $wp_customize->add_setting( 'becorp_option[slider_image_two]' , array( 'default' => get_template_directory_uri().'/images/slider/slide5.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'becorp_option[slider_image_two]', array( 'label' => __( 'Upload Slider Image Two', 'becorp' ), 'section' => 'slider_section_settings', 'priority' => 156, ) ) ); $wp_customize->add_setting('becorp_option[slider_image_title_two]' , array( 'default' => __('Awesome Responsive Layout','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_title_two]', array( 'label' => __('Slider Image Title Two', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 157, )); $wp_customize->add_setting('becorp_option[slider_image_description_two]' , array( 'default' => 'Duis autem vel eum iriure dolor in hendrerit in vulputate.', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_description_two]', array( 'label' => __('Slider Image two Description :', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 158, )); $wp_customize->add_setting( 'becorp_option[slider_button_two_title]', array( 'default' => __('More Details!','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[slider_button_two_title]',array( 'label' => __('Slider Button Two Text','becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 159, ) ); $wp_customize->add_setting('becorp_option[slider_image_link_two]' , array( 'default' => '#', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_link_two]', array( 'label' => __('Slider Button Link Two', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 160, )); $wp_customize->add_setting( 'becorp_option[slider_button_tab_two]' ,array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_button_tab_two]', array( 'type' => 'checkbox', 'label' => __('Open New tab/window','becorp'), 'section' => 'slider_section_settings', 'priority' => 161, ) ); //slider Image three setting $wp_customize->add_setting( 'becorp_option[slider_image_three]' , array( 'default' => get_template_directory_uri().'/images/slider/slide6.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'becorp_option[slider_image_three]', array( 'label' => __( 'Upload Slider Image Three', 'becorp' ), 'section' => 'slider_section_settings', 'priority' => 162, ) ) ); $wp_customize->add_setting('becorp_option[slider_image_title_three]' , array( 'default' => __('Business Purpose Theme','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_title_three]', array( 'label' => __('Slider Image Title Three', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 163, )); $wp_customize->add_setting('becorp_option[slider_image_description_three]' , array( 'default' => 'Duis autem vel eum iriure dolor in hendrerit in vulputate.', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_description_three]', array( 'label' => __('Slider Image three Description', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 164, )); $wp_customize->add_setting( 'becorp_option[slider_button_three_title]', array( 'default' => __('More Details!','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[slider_button_three_title]',array( 'label' => __('Slider Button Three Text','becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 165, ) ); $wp_customize->add_setting('becorp_option[slider_image_link_three]' , array( 'default' => '#', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_image_link_three]', array( 'label' => __('Slider Button Link Three', 'becorp'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 166, )); $wp_customize->add_setting( 'becorp_option[slider_button_tab_three]' ,array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[slider_button_tab_three]', array( 'type' => 'checkbox', 'label' => __('Open New tab/window','becorp'), 'section' => 'slider_section_settings', 'priority' => 167, ) ); class WP_slider_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>