add_panel( 'bizvilla_template', array( 'priority' => 920, 'capability' => 'edit_theme_options', 'title' => __('Template Settings', 'bizvilla'), ) ); // add section to manage About $wp_customize->add_section( 'about_section_settings', array( 'title' => __('About Us Template','bizvilla'), 'panel' => 'bizvilla_template', 'priority' => 100, ) ); $wp_customize->add_setting( 'bizvilla_options[about_upgrade]', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new bizvilla_Customize_about_upgrade( $wp_customize, 'bizvilla_options[about_upgrade]', array( 'label' => __('bizvilla Upgrade','bizvilla'), 'section' => 'about_section_settings', 'settings' => 'bizvilla_options[about_upgrade]', ) ) ); //enable/disable blog post meta content $wp_customize->add_section( 'blog_template' , array( 'title' => __('Blog Meta Settings', 'bizvilla'), 'panel' => 'bizvilla_template', 'priority' => 150, ) ); $wp_customize->add_setting( 'bizvilla_options[blog_meta_section_settings]', array( 'default' => 0, 'capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'bizvilla_options[blog_upgrade]', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new bizvilla_Customize_blog_upgrade( $wp_customize, 'bizvilla_options[blog_upgrade]', array( 'label' => __('bizvilla Upgrade','bizvilla'), 'section' => 'blog_template', 'settings' => 'bizvilla_options[blog_upgrade]', ) ) ); $wp_customize->add_setting( 'bizvilla_options[blog_meta_section_settings]', array( 'default' => 0, 'capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bizvilla_options[blog_meta_section_settings]', array( 'label' => __('Hide Post Meta From Blog Pages, Archive Pages, Categories, Author etc.','bizvilla'), 'section' => 'blog_template', 'type' => 'checkbox', ) ); // add section to manage Setting $wp_customize->add_section( 'setting_section_settings', array( 'title' => __('Service Setting Template','bizvilla'), 'panel' => 'bizvilla_template', 'priority' => 100, ) ); $wp_customize->add_setting( 'bizvilla_options[service_upgrade]', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new bizvilla_Customize_service_upgrade( $wp_customize, 'bizvilla_options[service_upgrade]', array( 'label' => __('bizvilla Upgrade','bizvilla'), 'section' => 'setting_section_settings', 'settings' => 'bizvilla_options[service_upgrade]', ) ) ); // add section to manage contact page $wp_customize->add_section( 'contact_section_settings', array( 'title' => __('Contact page Setting','bizvilla'), 'panel' => 'bizvilla_template',) ); //Form title $wp_customize->add_setting( 'bizvilla_options[contact_form_upgrade]', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new bizvilla_Customize_form_upgrade( $wp_customize, 'bizvilla_options[contact_form_upgrade]', array( 'label' => __('bizvilla Upgrade','bizvilla'), 'section' => 'contact_section_settings', 'settings' => 'bizvilla_options[contact_form_upgrade]', ) ) ); $wp_customize->add_setting( 'bizvilla_options[send_usmessage]', array( 'default' => __('Send Us a Message','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[send_usmessage]',array( 'label' => __('Contact Form Title','bizvilla'), 'section' => 'contact_section_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); // enable/disable google map $wp_customize->add_setting( 'bizvilla_options[contact_google_map_enabled]', array('capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bizvilla_options[contact_google_map_enabled]', array( 'type' => 'checkbox', 'label' => __('Hide Google Map','bizvilla'), 'section' => 'contact_section_settings', ) ); //Google map $wp_customize->add_setting( 'bizvilla_options[contact_google_title]', array( 'default' => __('Find the Address','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'bizvilla_options[contact_google_title]',array( 'label' => __('Contact Google map Title','bizvilla'), 'section' => 'contact_section_settings', 'type' => 'text','input_attrs'=> array('disabled'=>'disabled')) ); //Google Map URL $wp_customize->add_setting( 'bizvilla_options[contact_google_map_url]', array( 'default' => 'https://maps.google.co.in/maps?f=q&source=s_q&hl=en&geocode=&q=Kota+Industrial+Area,+Kota,+Rajasthan&aq=2&oq=kota+&sll=25.003049,76.117499&sspn=0.020225,0.042014&t=h&ie=UTF8&hq=&hnear=Kota+Industrial+Area,+Kota,+Rajasthan&z=13&ll=25.142832,75.879538', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_google_map_url]',array( 'label' => __('Google Map URL:','bizvilla'), 'section' => 'contact_section_settings', 'type' => 'textarea','textarea_attrs'=> array('disabled'=>'disabled')) ); // Add Team link class WP_map_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?> add_setting( 'map', array( 'default' => __('','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( new WP_map_Customize_Control( $wp_customize, 'map', array( 'section' => 'contact_section_settings', )) ); //Contact Information Setting $wp_customize->add_section( 'contact_info_settings', array( 'title' => __('Contact Information Settings','bizvilla'), 'description' => '', 'panel' => 'bizvilla_template',) ); $wp_customize->add_setting( 'bizvilla_options[contact_info_upgrade]', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new bizvilla_Customize_information_upgrade( $wp_customize, 'bizvilla_options[contact_info_upgrade]', array( 'label' => __('bizvilla Upgrade','bizvilla'), 'section' => 'contact_info_settings', 'settings' => 'bizvilla_options[contact_info_upgrade]', ) ) ); // enable/disable Contact info setting $wp_customize->add_setting( 'bizvilla_options[contact-callout-enable]', array('capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bizvilla_options[contact-callout-enable]', array( 'type' => 'checkbox', 'label' => __('Hide Contact info Section','bizvilla'), 'section' => 'contact_info_settings', 'input_attrs'=> array('disabled'=>'disabled') ) ); //Form title $wp_customize->add_setting( 'bizvilla_options[contact_title]', array( 'default' => __('Contact Info','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_title]',array( 'label' => __('Contact Information Title','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text','input_attrs'=> array('disabled'=>'disabled')) ); //Form Decription $wp_customize->add_setting( 'bizvilla_options[contact_description]', array( 'default' => __('Read what customers are saying','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'bizvilla_options[contact_description]',array( 'label' => __('Contact Information Description','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text','input_attrs'=> array('disabled'=>'disabled')) ); //Contact Call-us $wp_customize->add_setting( 'bizvilla_options[contact_call_icon]', array( 'default' => 'fa-phone', 'capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bizvilla_options[contact_call_icon]', array( 'label' => __('Contact Call Icon', 'bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') )); $wp_customize->add_setting( 'bizvilla_options[contact_call_title]', array( 'default' => __('Have a question? Call us now','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_call_title]', array( 'label' => __('Contact call Title','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text','input_attrs'=> array('disabled'=>'disabled') ) ); $wp_customize->add_setting( 'bizvilla_options[contact_call_description]', array( 'default' => __('+82 334 843 52','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'bizvilla_options[contact_call_description]', array( 'label' => __('Contact call Description','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); //Contact Address $wp_customize->add_setting( 'bizvilla_options[contact_add_icon]', array( 'default' => 'fa-map-marker', 'capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bizvilla_options[contact_add_icon]', array( 'label' => __('Contact address icon', 'bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') )); $wp_customize->add_setting( 'bizvilla_options[contact_add_title]', array( 'default' => __('Our Office Location','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_add_title]', array( 'label' => __('Contact address Title','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); $wp_customize->add_setting( 'bizvilla_options[contact_add_description]', array( 'default' => __('3108 Evergreen Lane Washington, (USA) 90032','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_add_description]', array( 'label' => __('Contact Address Description','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); //Contact Email Setting $wp_customize->add_setting( 'bizvilla_options[contact_mail_icon]', array( 'default' => 'fa-envelope', 'capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bizvilla_options[contact_mail_icon]', array( 'label' => __('Contact E-Mail icon', 'bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') )); $wp_customize->add_setting( 'bizvilla_options[contact_mail_title]', array( 'default' => __('Drop us an mail','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_mail_title]', array( 'label' => __('Contact E-Mail Title','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); $wp_customize->add_setting( 'bizvilla_options[contact_mail_description]', array( 'default' => __('info@yoursupport.com','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_mail_description]', array( 'label' => __('Contact E-Mail Description','bizvilla'), 'section' => 'contact_info_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); //Contact Callout $wp_customize->add_section( 'contact_callout_settings', array( 'title' => __('Contact Callout Settings','bizvilla'), 'description' => '', 'panel' => 'bizvilla_template',) ); $wp_customize->add_setting( 'bizvilla_options[contact_callout_upgrade]', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new bizvilla_Customize_contact_callout_upgrade( $wp_customize, 'bizvilla_options[contact_callout_upgrade]', array( 'label' => __('bizvilla Upgrade','bizvilla'), 'section' => 'contact_callout_settings', 'settings' => 'bizvilla_options[contact_callout_upgrade]', ) ) ); // enable/disable Contact Form Setting $wp_customize->add_setting( 'bizvilla_options[check_contact_callout]', array('capability' => 'edit_theme_options', 'type'=> 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bizvilla_options[check_contact_callout]', array( 'type' => 'checkbox', 'label' => __('Hide Contact callout','bizvilla'), 'section' => 'contact_callout_settings', 'input_attrs'=> array('disabled'=>'disabled') ) ); //Form title $wp_customize->add_setting( 'bizvilla_options[contact_callout_title]', array( 'default' => __('Contact Info','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_callout_title]',array( 'label' => __('Contact Callout Title','bizvilla'), 'section' => 'contact_callout_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); //Form Decription $wp_customize->add_setting( 'bizvilla_options[contact_callout_description]', array( 'default' => __('Be creative with our template, with hundred of options and possibilities Dont miss this great opportunity and profit from this great template.','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'bizvilla_options[contact_callout_description]',array( 'label' => __('Contact Description','bizvilla'), 'section' => 'contact_callout_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); $wp_customize ->add_setting ( 'bizvilla_options[contact_callout_button]', array( 'default' => __('Buy Now!','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' , 'type' => 'option', ) ); $wp_customize->add_control ( 'bizvilla_options[contact_callout_button]', array ( 'label' => __('Contact callout Button text','bizvilla'), 'section' => 'contact_callout_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); $wp_customize ->add_setting ( 'appoointment_options[contact_callout_button_link]', array( 'default' => __('#','bizvilla'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control ( 'appoointment_options[contact_callout_button_link]', array ( 'label' => __('Contact callout Button Link','bizvilla'), 'section' => 'contact_callout_settings', 'type' => 'text', 'input_attrs'=> array('disabled'=>'disabled') ) ); $wp_customize->add_setting( 'bizvilla_options[contact_callout_link_target]', array('capability' => 'edit_theme_options', 'default' => 1, 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bizvilla_options[contact_callout_link_target]', array( 'type' => 'checkbox', 'label' => __('Open link new tab/window','bizvilla'), 'section' => 'contact_callout_settings', 'input_attrs'=> array('disabled'=>'disabled') ) ); } add_action( 'customize_register', 'bizvilla_template_customizer' ); ?>