add_panel( 'appointment_template', array(
'priority' => 920,
'capability' => 'edit_theme_options',
'title' => __('Template Settings', 'appointment'),
) );
// add section to manage About
$wp_customize->add_section(
'about_section_settings',
array(
'title' => __('About Us Template','appointment'),
'panel' => 'appointment_template',
'priority' => 100,
)
);
$wp_customize->add_setting( 'appointment_options[about_upgrade]', array(
'default' => false,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new appointment_Customize_about_upgrade(
$wp_customize,
'appointment_options[about_upgrade]',
array(
'label' => __('Appointment Upgrade','appointment'),
'section' => 'about_section_settings',
'settings' => 'appointment_options[about_upgrade]',
)
)
);
//enable/disable blog post meta content
$wp_customize->add_section( 'blog_template' , array(
'title' => __('Blog Meta Settings', 'appointment'),
'panel' => 'appointment_template',
'priority' => 150,
) );
$wp_customize->add_setting(
'appointment_options[blog_meta_section_settings]',
array(
'default' => 0,
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
)
);
$wp_customize->add_setting( 'appointment_options[blog_upgrade]', array(
'default' => false,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new appointment_Customize_blog_upgrade(
$wp_customize,
'appointment_options[blog_upgrade]',
array(
'label' => __('Appointment Upgrade','appointment'),
'section' => 'blog_template',
'settings' => 'appointment_options[blog_upgrade]',
)
)
);
$wp_customize->add_setting(
'appointment_options[blog_meta_section_settings]',
array(
'default' => 0,
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
)
);
$wp_customize->add_control(
'appointment_options[blog_meta_section_settings]',
array(
'label' => __('Hide Post Meta From Blog Pages, Archive Pages, Categories, Author etc.','appointment'),
'section' => 'blog_template',
'type' => 'checkbox',
)
);
// add section to manage Setting
$wp_customize->add_section(
'setting_section_settings',
array(
'title' => __('Service Setting Template','appointment'),
'panel' => 'appointment_template',
'priority' => 100,
)
);
$wp_customize->add_setting( 'appointment_options[service_upgrade]', array(
'default' => false,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new appointment_Customize_service_upgrade(
$wp_customize,
'appointment_options[service_upgrade]',
array(
'label' => __('Appointment Upgrade','appointment'),
'section' => 'setting_section_settings',
'settings' => 'appointment_options[service_upgrade]',
)
)
);
// add section to manage contact page
$wp_customize->add_section(
'contact_section_settings',
array(
'title' => __('Contact page Setting','appointment'),
'panel' => 'appointment_template',)
);
//Form title
$wp_customize->add_setting( 'appointment_options[contact_form_upgrade]', array(
'default' => false,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new appointment_Customize_form_upgrade(
$wp_customize,
'appointment_options[contact_form_upgrade]',
array(
'label' => __('Appointment Upgrade','appointment'),
'section' => 'contact_section_settings',
'settings' => 'appointment_options[contact_form_upgrade]',
)
)
);
$wp_customize->add_setting(
'appointment_options[send_usmessage]',
array(
'default' => __('Send Us a Message','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control( 'appointment_options[send_usmessage]',array(
'label' => __('Contact Form Title','appointment'),
'section' => 'contact_section_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
) );
// enable/disable google map
$wp_customize->add_setting(
'appointment_options[contact_google_map_enabled]',
array('capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'appointment_options[contact_google_map_enabled]',
array(
'type' => 'checkbox',
'label' => __('Hide Google Map','appointment'),
'section' => 'contact_section_settings',
)
);
//Google map
$wp_customize->add_setting(
'appointment_options[contact_google_title]',
array(
'default' => __('Find the Address','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option'
)
);
$wp_customize->add_control( 'appointment_options[contact_google_title]',array(
'label' => __('Contact Google map Title','appointment'),
'section' => 'contact_section_settings',
'type' => 'text','input_attrs'=> array('disabled'=>'disabled')) );
//Google Map URL
$wp_customize->add_setting(
'appointment_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( 'appointment_options[contact_google_map_url]',array(
'label' => __('Google Map URL:','appointment'),
'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' => __('','appointment'),
'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','appointment'),
'description' => '',
'panel' => 'appointment_template',)
);
$wp_customize->add_setting( 'appointment_options[contact_info_upgrade]', array(
'default' => false,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new appointment_Customize_information_upgrade(
$wp_customize,
'appointment_options[contact_info_upgrade]',
array(
'label' => __('Appointment Upgrade','appointment'),
'section' => 'contact_info_settings',
'settings' => 'appointment_options[contact_info_upgrade]',
)
)
);
// enable/disable Contact info setting
$wp_customize->add_setting(
'appointment_options[contact-callout-enable]',
array('capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'appointment_options[contact-callout-enable]',
array(
'type' => 'checkbox',
'label' => __('Hide Contact info Section','appointment'),
'section' => 'contact_info_settings',
'input_attrs'=> array('disabled'=>'disabled')
)
);
//Form title
$wp_customize->add_setting(
'appointment_options[contact_title]',
array(
'default' => __('Contact Info','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control( 'appointment_options[contact_title]',array(
'label' => __('Contact Information Title','appointment'),
'section' => 'contact_info_settings',
'type' => 'text','input_attrs'=> array('disabled'=>'disabled')) );
//Form Decription
$wp_customize->add_setting(
'appointment_options[contact_description]',
array(
'default' => __('Read what customers are saying','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option'
)
);
$wp_customize->add_control( 'appointment_options[contact_description]',array(
'label' => __('Contact Information Description','appointment'),
'section' => 'contact_info_settings',
'type' => 'text','input_attrs'=> array('disabled'=>'disabled')) );
//Contact Call-us
$wp_customize->add_setting(
'appointment_options[contact_call_icon]', array(
'default' => 'fa-phone',
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control( 'appointment_options[contact_call_icon]', array(
'label' => __('Contact Call Icon', 'appointment'),
'section' => 'contact_info_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
));
$wp_customize->add_setting(
'appointment_options[contact_call_title]',
array(
'default' => __('Have a question? Call us now','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control(
'appointment_options[contact_call_title]',
array(
'label' => __('Contact call Title','appointment'),
'section' => 'contact_info_settings',
'type' => 'text','input_attrs'=> array('disabled'=>'disabled')
)
);
$wp_customize->add_setting(
'appointment_options[contact_call_description]',
array(
'default' => __('+82 334 843 52','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option'
)
);
$wp_customize->add_control(
'appointment_options[contact_call_description]',
array(
'label' => __('Contact call Description','appointment'),
'section' => 'contact_info_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
)
);
//Contact Address
$wp_customize->add_setting(
'appointment_options[contact_add_icon]', array(
'default' => 'fa-map-marker',
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control( 'appointment_options[contact_add_icon]', array(
'label' => __('Contact address icon', 'appointment'),
'section' => 'contact_info_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
));
$wp_customize->add_setting(
'appointment_options[contact_add_title]',
array(
'default' => __('Our Office Location','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control(
'appointment_options[contact_add_title]',
array(
'label' => __('Contact address Title','appointment'),
'section' => 'contact_info_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
)
);
$wp_customize->add_setting(
'appointment_options[contact_add_description]',
array(
'default' => __('3108 Evergreen Lane Washington, (USA) 90032','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control(
'appointment_options[contact_add_description]',
array(
'label' => __('Contact Address Description','appointment'),
'section' => 'contact_info_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
)
);
//Contact Email Setting
$wp_customize->add_setting(
'appointment_options[contact_mail_icon]', array(
'default' => 'fa-envelope',
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control( 'appointment_options[contact_mail_icon]', array(
'label' => __('Contact E-Mail icon', 'appointment'),
'section' => 'contact_info_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
));
$wp_customize->add_setting(
'appointment_options[contact_mail_title]',
array(
'default' => __('Drop us an mail','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control(
'appointment_options[contact_mail_title]',
array(
'label' => __('Contact E-Mail Title','appointment'),
'section' => 'contact_info_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
)
);
$wp_customize->add_setting(
'appointment_options[contact_mail_description]',
array(
'default' => __('info@yoursupport.com','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control(
'appointment_options[contact_mail_description]',
array(
'label' => __('Contact E-Mail Description','appointment'),
'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','appointment'),
'description' => '',
'panel' => 'appointment_template',)
);
$wp_customize->add_setting( 'appointment_options[contact_callout_upgrade]', array(
'default' => false,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new appointment_Customize_contact_callout_upgrade(
$wp_customize,
'appointment_options[contact_callout_upgrade]',
array(
'label' => __('Appointment Upgrade','appointment'),
'section' => 'contact_callout_settings',
'settings' => 'appointment_options[contact_callout_upgrade]',
)
)
);
// enable/disable Contact Form Setting
$wp_customize->add_setting(
'appointment_options[check_contact_callout]',
array('capability' => 'edit_theme_options',
'type'=> 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'appointment_options[check_contact_callout]',
array(
'type' => 'checkbox',
'label' => __('Hide Contact callout','appointment'),
'section' => 'contact_callout_settings',
'input_attrs'=> array('disabled'=>'disabled')
)
);
//Form title
$wp_customize->add_setting(
'appointment_options[contact_callout_title]',
array(
'default' => __('Contact Info','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control( 'appointment_options[contact_callout_title]',array(
'label' => __('Contact Callout Title','appointment'),
'section' => 'contact_callout_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
) );
//Form Decription
$wp_customize->add_setting(
'appointment_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.','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control( 'appointment_options[contact_callout_description]',array(
'label' => __('Contact Description','appointment'),
'section' => 'contact_callout_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
) );
$wp_customize ->add_setting (
'appointment_options[contact_callout_button]',
array(
'default' => __('Buy Now!','appointment'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field' ,
'type' => 'option',
)
);
$wp_customize->add_control (
'appointment_options[contact_callout_button]',
array (
'label' => __('Contact callout Button text','appointment'),
'section' => 'contact_callout_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
) );
$wp_customize ->add_setting (
'appoointment_options[contact_callout_button_link]',
array(
'default' => __('#','appointment'),
'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','appointment'),
'section' => 'contact_callout_settings',
'type' => 'text',
'input_attrs'=> array('disabled'=>'disabled')
) );
$wp_customize->add_setting(
'appointment_options[contact_callout_link_target]',
array('capability' => 'edit_theme_options',
'default' => 1,
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'appointment_options[contact_callout_link_target]',
array(
'type' => 'checkbox',
'label' => __('Open link new tab/window','appointment'),
'section' => 'contact_callout_settings',
'input_attrs'=> array('disabled'=>'disabled')
)
);
}
add_action( 'customize_register', 'appointment_template_customizer' );
?>