id ) );
$class = 'customize-control customize-control-' . $this->type; ?>
render_content(); ?>
cats = get_categories($options);
parent::__construct( $wp_customize, $id, $args );
}
public function render_content()
{
if(!empty($this->cats))
{
?>
id ) );
$class = 'customize-control customize-control-' . $this->type; ?>
render_content(); ?>
id ) );
$class = 'customize-control customize-control-' . $this->type; ?>
render_content(); ?>
add_panel( 'homepage_setting', array(
'priority' => 500,
'capability' => 'edit_theme_options',
'title' => __('Homepage Settings', 'callcenter'),
) );
/* --------------------------------------
=========================================
Slider Section
=========================================
-----------------------------------------*/
$wp_customize->add_section(
'callcenter_slider_section_settings', array(
'title' => __('Slider Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
//Slider Effect
$wp_customize->add_setting(
'callcenter_slider_options', array(
'default' => __('backSlide','callcenter'),
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_slider_options', array(
'type' => 'select',
'label' => __('Slider Transition Effects','callcenter'),
'description' => __('Select Transition Effects','callcenter'),
'section' => 'callcenter_slider_section_settings',
'choices' => array('backSlide'=>__('Back Slide', 'callcenter'), 'fade'=>__('Fade', 'callcenter')),
));
//Slider Duration
$wp_customize->add_setting(
'callcenter_slider_duration', array(
'default' => __('200','callcenter'),
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_slider_duration', array(
'type' => 'text',
'label' => __('Slider Animation Speed','callcenter'),
'section' => 'callcenter_slider_section_settings',
'description' => __('Enter The Slider Speed Value','callcenter'),
) );
//Slider Duration
$wp_customize->add_setting(
'callcenter_slider_duration', array(
'default' => __('200','callcenter'),
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_slider_duration', array(
'type' => 'text',
'label' => __('Slider Intervel Duration','callcenter'),
'section' => 'callcenter_slider_section_settings',
) );
//Slider One
//Slider One Title
$wp_customize->add_setting(
'callcenter_slider_one_title', array(
'default' => __('Callcenter wordpress theme','callcenter'),
'sanitize_callback' => 'callcenter_homepage_title_sanitize_text',
) );
$wp_customize->add_control(
'callcenter_slider_one_title', array(
'label' => __('Slider One Title', 'callcenter'),
'section' => 'callcenter_slider_section_settings',
'type' => 'text',
) );
//Slider One Description
$wp_customize->add_setting(
'callcenter_slider_one_desc', array(
'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie laoreet ipsum eu laoreet. ugiignissimat Vivamus dignissim feugiat erat sit amet convallis. Vestibulum placerat elit vitae purus consequatNulla facilisi.','callcenter'),
'sanitize_callback' => 'callcenter_homepage_title_sanitize_text',
) );
$wp_customize->add_control(
'callcenter_slider_one_desc', array(
'label' => __('Slider One Description', 'callcenter'),
'section' => 'callcenter_slider_section_settings',
'type' => 'textarea',
) );
//Slider one image
$wp_customize->add_setting(
'callcenter_slider_one_image', array(
'sanitize_callback' => 'esc_url_raw',
'default' => get_template_directory_uri() . '/images/slide/slide1.jpg'
) );
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize,
'callcenter_slider_one_image', array(
'label' => __('Slider One Image','callcenter'),
'section' => 'callcenter_slider_section_settings',
'settings' =>'callcenter_slider_one_image',
'type' => 'upload',)
) );
//Line break
$wp_customize->add_setting(
'callcenter_slider_one_section', array(
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(new WP_line_break_header_Customize_Control($wp_customize,'callcenter_slider_one_section', array(
'section' => 'callcenter_slider_section_settings',
'type' => 'radio',
'settings' => 'callcenter_slider_one_section',)
) );
//Slider Two
//Slider Two Title
$wp_customize->add_setting(
'callcenter_slider_two_title', array(
'default' => __('Feel the difference!','callcenter'),
'sanitize_callback' => 'callcenter_homepage_title_sanitize_text',
) );
$wp_customize->add_control(
'callcenter_slider_two_title', array(
'label' => __('Slider Two Title', 'callcenter'),
'section' => 'callcenter_slider_section_settings',
'type' => 'text',
) );
//Slider Two Description
$wp_customize->add_setting(
'callcenter_slider_two_desc', array(
'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie laoreet ipsum eu laoreet. ugiignissimat Vivamus dignissim feugiat erat sit amet convallis. Vestibulum placerat elit vitae purus consequatNulla facilisi.','callcenter'),
'sanitize_callback' => 'callcenter_homepage_title_sanitize_text',
) );
$wp_customize->add_control(
'callcenter_slider_two_desc', array(
'label' => __('Slider Two Description', 'callcenter'),
'section' => 'callcenter_slider_section_settings',
'type' => 'textarea',
) );
//Slider two image
$wp_customize->add_setting(
'callcenter_slider_two_image', array(
'sanitize_callback' => 'esc_url_raw',
'default' => get_template_directory_uri() . '/images/slide/slide2.jpg'
) );
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize,
'callcenter_slider_two_image', array(
'label' => __('Slider Two Image','callcenter'),
'section' => 'callcenter_slider_section_settings',
'settings' =>'callcenter_slider_two_image',
'type' => 'upload',)
) );
//Line break
$wp_customize->add_setting(
'callcenter_slider_two_section', array(
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(new WP_line_break_header_Customize_Control($wp_customize,'callcenter_slider_two_section', array(
'section' => 'callcenter_slider_section_settings',
'type' => 'radio',
'settings' => 'callcenter_slider_two_section',)
) );
//Slider Three
//Slider Three Title
$wp_customize->add_setting(
'callcenter_slider_three_title', array(
'default' => __('Buid the business!','callcenter'),
'sanitize_callback' => 'callcenter_homepage_title_sanitize_text',
) );
$wp_customize->add_control(
'callcenter_slider_three_title', array(
'label' => __('Slider Three Title', 'callcenter'),
'section' => 'callcenter_slider_section_settings',
'type' => 'text',
) );
//Slider three Description
$wp_customize->add_setting(
'callcenter_slider_three_desc', array(
'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie laoreet ipsum eu laoreet. ugiignissimat Vivamus dignissim feugiat erat sit amet convallis. Vestibulum placerat elit vitae purus consequatNulla facilisi.','callcenter'),
'sanitize_callback' => 'callcenter_homepage_title_sanitize_text',
) );
$wp_customize->add_control(
'callcenter_slider_three_desc', array(
'label' => __('Slider Three Description', 'callcenter'),
'section' => 'callcenter_slider_section_settings',
'type' => 'textarea',
) );
//Slider three image
$wp_customize->add_setting(
'callcenter_slider_three_image', array(
'sanitize_callback' => 'esc_url_raw',
'default' => get_template_directory_uri() . '/images/slide/slide3.jpg'
) );
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize,
'callcenter_slider_three_image', array(
'label' => __('Slider Three Image','callcenter'),
'section' => 'callcenter_slider_section_settings',
'settings' =>'callcenter_slider_three_image',
'type' => 'upload',)
) );
//Line break
$wp_customize->add_setting(
'callcenter_slider_three_section', array(
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(new WP_line_break_header_Customize_Control($wp_customize,'callcenter_slider_three_section', array(
'section' => 'callcenter_slider_section_settings',
'type' => 'radio',
'settings' => 'callcenter_slider_three_section',)
) );
$wp_customize->add_setting( 'callcenter_slider_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_slider( $wp_customize, 'callcenter_slider_section', array(
'section' => 'callcenter_slider_section_settings',)
) );
/* --------------------------------------
=========================================
Call To Action Section
=========================================
-----------------------------------------*/
//calltoaction settings
$wp_customize->add_section(
'callcenter_calltoaction_section_settings', array(
'title' => __('Call To Action Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_calltoaction_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_calltoaction( $wp_customize, 'callcenter_calltoaction_section', array(
'section' => 'callcenter_calltoaction_section_settings',)
) );
/* --------------------------------------
=========================================
Serice Section
=========================================
-----------------------------------------*/
// add section to manage Services
$wp_customize->add_section(
'callcenter_service_section_settings', array(
'title' => __('Service Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
//Service Title setting
$wp_customize->add_setting(
'callcenter_service_title', array(
'default' => __('Our Services','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_service_title',array(
'label' => __('Service Title','callcenter'),
'section' => 'callcenter_service_section_settings',
'type' => 'text',
) );
//Service SubTitle setting
$wp_customize->add_setting(
'callcenter_service_subtitle', array(
'default' => __('laoreet ipsum eu laoreet. ugiignissimat Vivamus dignissim feugiat erat sit amet convallis.','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control( 'callcenter_service_subtitle', array(
'label' => __('Service Subtitle','callcenter'),
'section' => 'callcenter_service_section_settings',
'type' => 'textarea',
) );
//Number of Service setting
$wp_customize->add_setting(
'callcenter_service_number', array(
'default' => __('3','callcenter'),
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_service_number', array(
'type' => 'text',
'label' => __('Number of Services Show on Section','callcenter'),
'section' => 'callcenter_service_section_settings',
) );
//Service Load More Button setting
$wp_customize->add_setting(
'callcenter_service_button', array(
'default' => __('Load More','callcenter'),
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_service_button', array(
'type' => 'text',
'label' => __('Button Label','callcenter'),
'section' => 'callcenter_service_section_settings',
) );
/* --------------------------------------
=========================================
Funfact Callout Section
=========================================
-----------------------------------------*/
//Funfact settings
$wp_customize->add_section(
'callcenter_funfact_section_settings', array(
'title' => __('Funfact Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_funfact_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_funfact( $wp_customize, 'callcenter_funfact_section', array(
'section' => 'callcenter_funfact_section_settings',)
) );
/* --------------------------------------
=========================================
About Section
=========================================
-----------------------------------------*/
// add section to manage Services
$wp_customize->add_section(
'callcenter_about_section_settings', array(
'title' => __('About Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
//About Title setting
$wp_customize->add_setting(
'callcenter_about_title', array(
'default' => __('About Us','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_about_title', array(
'label' => __('About Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
//About Subtitle setting
$wp_customize->add_setting(
'callcenter_about_subtitle', array(
'default' => __('laoreet ipsum eu laoreet. ugiignissimat Vivamus dignissim feugiat erat sit amet convallis.','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control( 'callcenter_about_subtitle',array(
'label' => __('About Subtitle','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'textarea',) );
//About Description setting
$wp_customize->add_setting(
'callcenter_about_description', array(
'default' => '',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_about_description',array(
'label' => __('About Description','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'textarea',
) );
// add Skill One Setting
$wp_customize->add_setting(
'callcenter_skill1_title', array(
'default' => __('Skill One','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill1_title', array(
'label' => __('Skill1 Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_skill1_data', array(
'default' => __('90','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill1_data',array(
'label' => __('Skill1 value','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'number',
) );
// add Skill Two Setting
$wp_customize->add_setting(
'callcenter_skill2_title', array(
'default' => __('Skill Two','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill2_title', array(
'label' => __('Skill2 Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_skill2_data', array(
'default' => __('95','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill2_data', array(
'label' => __('Skill2 value','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'number',
) );
// add Skill Three Setting
$wp_customize->add_setting(
'callcenter_skill3_title', array(
'default' => __('Skill Three','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill3_title', array(
'label' => __('Skill3 Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_skill3_data', array(
'default' => __('70','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill3_data',array(
'label' => __('Skill3 value','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'number',
) );
// add Skill Four Setting
$wp_customize->add_setting(
'callcenter_skill4_title', array(
'default' => __('Skill Four','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill4_title', array(
'label' => __('Skill4 Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_skill4_data', array(
'default' => __('60','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_skill4_data', array(
'label' => __('Skill4 value','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'number',
) );
// add Feature one Setting
$wp_customize->add_setting(
'callcenter_feature1_icon', array(
'default' => __('fa-question-circle','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature1_icon', array(
'label' => __('Featur1 Icon','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_feature1_title', array(
'default' => __('Feature One','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature1_title',array(
'label' => __('Featur1 Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_feature1_description', array(
'default' => __('Pellentesque molestie laoreet ipsum eu laoreet. ugiignissimat molestie.','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature1_description', array(
'label' => __('Feature1 Description','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'textarea',) );
// add Feature Two Setting
$wp_customize->add_setting(
'callcenter_feature2_icon', array(
'default' => __('fa-bolt','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature2_icon',array(
'label' => __('Featur2 Icon','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_feature2_title', array(
'default' => __('Feature Two','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature2_title', array(
'label' => __('Featur2 Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_feature2_description', array(
'default' => __('Pellentesque molestie laoreet ipsum eu laoreet. ugiignissimat molestie.','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature2_description', array(
'label' => __('Feature2 Description','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'textarea',
) );
// add Feature Three Setting
$wp_customize->add_setting(
'callcenter_feature3_icon', array(
'default' => __('fa-check-square-o','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature3_icon', array(
'label' => __('Featur3 Icon','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_feature3_title', array(
'default' => __('Feature Three','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature3_title', array(
'label' => __('Featur3 Title','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'text',
) );
$wp_customize->add_setting(
'callcenter_feature3_description', array(
'default' => __('Pellentesque molestie laoreet ipsum eu laoreet. ugiignissimat molestie.','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_feature3_description', array(
'label' => __('Feature3 Description','callcenter'),
'section' => 'callcenter_about_section_settings',
'type' => 'textarea',
) );
/* --------------------------------------
=========================================
Video Section
=========================================
-----------------------------------------*/
//Video settings
$wp_customize->add_section(
'callcenter_video_section_settings', array(
'title' => __('Video Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_video_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_video( $wp_customize, 'callcenter_video_section', array(
'section' => 'callcenter_video_section_settings',)
) );
/* --------------------------------------
=========================================
Portfolio Section
=========================================
-----------------------------------------*/
// add section to manage Portfolio
$wp_customize->add_section(
'callcenter_portfolio_section_settings', array(
'title' => __('Portfolio Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_portfolio_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_portfolio( $wp_customize, 'callcenter_portfolio_section', array(
'section' => 'callcenter_portfolio_section_settings',)
) );
/* --------------------------------------
=========================================
Team Section
=========================================
-----------------------------------------*/
// add section to manage Team
$wp_customize->add_section(
'callcenter_team_section_settings', array(
'title' => __('Team Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_team_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_team( $wp_customize, 'callcenter_team_section', array(
'section' => 'callcenter_team_section_settings',)
) );
/* --------------------------------------
=========================================
Callout Section
=========================================
-----------------------------------------*/
// add section to manage Callout
$wp_customize->add_section(
'callcenter_callout_section_settings', array(
'title' => __('Callout Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
//Callout Background image
$wp_customize->add_setting(
'callcenter_callout_background', array(
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize,
'callcenter_callout_background', array(
'label' => __( 'Choose Background Image', 'callcenter' ),
'section' => 'callcenter_callout_section_settings',
'settings' => 'callcenter_callout_background',)
) );
//Callout Overlay
$wp_customize->add_setting(
'callcenter_overlay_callout_color_control',
array('sanitize_callback' => 'esc_url_raw',)
);
$wp_customize->add_control( new callcenter_Customize_contact_color_Control( $wp_customize,
'callcenter_overlay_callout_color_control', array(
'label' => 'Overlay Color',
'palette' => true,
'section' => 'callcenter_callout_section_settings')
) );
// Callout Title Setting
$wp_customize->add_setting(
'callcenter_callout_title', array(
'default' => __('Why Choose Us','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_title', array(
'label' => __('Callout Title','callcenter'),
'section' => 'callcenter_callout_section_settings',
'type' => 'text',
) );
// Callout Description Setting
$wp_customize->add_setting(
'callcenter_callout_description', array(
'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sit amet venenatis mauris. Curabitur tempus ipsum nec mi porta maximus. Nullam dapibus at nisi vitae dapibus. Donec in quam dictum, lacinia nunc at, convallis libero. Aenean a sapien felis. Proin sed vulputate tortor. Quisque dignissim vestibulum interdum. Nullam aliquet turpis ante, non ullamcorper dui ullamcorper eu. Etiam feugiat augue ipsum, sed convallis mauris suscipit ac. ','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_description', array(
'label' => __('Callout Description','callcenter'),
'section' => 'callcenter_callout_section_settings',
'type' => 'textarea',
) );
// Callout Button One Label Setting
$wp_customize->add_setting(
'callcenter_callout_button_one_label', array(
'default' => __('Explore Now','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_button_one_label', array(
'label' => __('Button One Title','callcenter'),
'section' => 'callcenter_callout_section_settings',
'type' => 'text',
) );
//Callout Button One Link Setting
$wp_customize->add_setting(
'callcenter_callout_button_one_link', array(
'default' => __('#','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_button_one_link',array(
'label' => __('Button One URL','callcenter'),
'section' => 'callcenter_callout_section_settings',
'type' => 'text',
) );
//Callout Button One Target Setting
$wp_customize->add_setting(
'callcenter_callout_button_one_target', array(
'default' => true,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_button_one_target',array(
'label' => __('Open Link New window','callcenter'),
'section' => 'callcenter_callout_section_settings',
'type' => 'checkbox',
) );
//Callout Button Two Label Setting
$wp_customize->add_setting(
'callcenter_callout_button_two_label', array(
'default' => __('Buy Now','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_button_two_label', array(
'label' => __('Button Two Title','callcenter'),
'section' => 'callcenter_callout_section_settings',
'type' => 'text',
) );
//Callout Button Two Link Setting
$wp_customize->add_setting(
'callcenter_callout_button_two_link', array(
'default' => __('#','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_button_two_link', array(
'label' => __('Button Two URL','callcenter'),
'type' => 'text',
'section' => 'callcenter_callout_section_settings',
) );
//Callout Button Two Target Setting
$wp_customize->add_setting(
'callcenter_callout_button_two_target', array(
'default' => 'true',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_callout_button_two_target', array(
'label' => __('Open Link New window','callcenter'),
'section' => 'callcenter_callout_section_settings',
'type' => 'checkbox',
) );
/* --------------------------------------
=========================================
Plans Section
=========================================
-----------------------------------------*/
// add section to manage Plans
$wp_customize->add_section(
'callcenter_plans_section_settings', array(
'title' => __('Plans Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_plans_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_plans( $wp_customize, 'callcenter_plans_section', array(
'section' => 'callcenter_plans_section_settings',)
) );
/* --------------------------------------
=========================================
Testimonials Section
=========================================
-----------------------------------------*/
// add section to manage Testimonials
$wp_customize->add_section(
'callcenter_testimonials_section_settings', array(
'title' => __('Testimonials Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_testimonials_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_testi( $wp_customize, 'callcenter_testimonials_section', array(
'section' => 'callcenter_testimonials_section',)
) );
/* --------------------------------------
=========================================
Latest News Section
=========================================
-----------------------------------------*/
// add section to manage Latest News
$wp_customize->add_section(
'news_section_settings', array(
'title' => __('News & Events Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting'
) );
//Latest News Background Image
$wp_customize->add_setting(
'news_background', array(
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize,
'news_background', array(
'label' => __( 'Choose Background Image', 'callcenter' ),
'section' => 'news_section_settings',
'settings' => 'news_background', )
) );
//Latest News Overlay Image
$wp_customize->add_setting(
'news_section_color',array(
'default' => '#f5f5f5',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new callcenter_Customize_Color_Control( $wp_customize,
'news_section_color', array(
'label' => 'Overlay Color',
'palette' => true,
'section' => 'news_section_settings')
) );
// hide meta content
$wp_customize->add_setting(
'disable_news_meta', array(
'default' => 'false',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'disable_news_meta', array(
'label' => __('Hide/Show Blog Meta:- Like author name,categories', 'callcenter'),
'description' => __('Hide / Show Blog Meta:- Like author name,categories', 'callcenter'),
'section' => 'news_section_settings',
'type' => 'radio',
'choices' => array('true'=>'On','false'=>'Off'),
) );
// Latest News Title Setting
$wp_customize->add_setting(
'callcenter_news_title', array(
'default' => __('Latest News','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_news_title',array(
'label' => __('Latest News Title','callcenter'),
'section' => 'news_section_settings',
'type' => 'text',
) );
// Latest News Subtitle Setting
$wp_customize->add_setting(
'callcenter_news_subtitle', array(
'default' => __('laoreet ipsum eu laoreet. ugiignissimat Vivamus dignissim feugiat erat sit amet convallis.','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_news_subtitle',array(
'label' => __('Latest News Subtitle','callcenter'),
'section' => 'news_section_settings',
'type' => 'textarea',
) );
$wp_customize->add_setting( 'callcenter_news_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_news( $wp_customize, 'callcenter_news_section', array(
'section' => 'news_section_settings',)
) );
/* --------------------------------------
=========================================
Google Map Section
=========================================
-----------------------------------------*/
//Gmap settings
$wp_customize->add_section(
'callcenter_gmap_section_settings', array(
'title' => __('Google Map Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_gmap_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_gmap( $wp_customize, 'callcenter_gmap_section', array(
'section' => 'callcenter_gmap_section_settings',)
) );
/* --------------------------------------
=========================================
Contact Section
=========================================
-----------------------------------------*/
//Contact settings
$wp_customize->add_section(
'callcenter_contact_section_settings', array(
'title' => __('Contact Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
//Contact Background Image
$wp_customize->add_setting(
'callcenter_contact_background', array(
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize,
'callcenter_contact_background', array(
'label' => __( 'Choose Background Image', 'callcenter' ),
'section' => 'callcenter_contact_section_settings',
'settings' => 'callcenter_contact_background', )
) );
//Contact Overlay
$wp_customize->add_setting(
'callcenter_overlay_contact_color_control',
array(
'sanitize_callback' => 'esc_url_raw',
));
$wp_customize->add_control( new callcenter_Customize_Color_Control( $wp_customize,
'callcenter_overlay_contact_color_control', array(
'label' => 'Overlay Color',
'palette' => true,
'section' => 'callcenter_contact_section_settings' )
) );
//Contact Title setting
$wp_customize ->add_setting (
'callcenter_contact_title', array(
'default' => __('Contact Us','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_contact_title', array(
'label' => __('Contact Title','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//Contact Subtitle Setting
$wp_customize->add_setting(
'callcenter_contact_subtitle', array(
'default' => '',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_contact_subtitle', array(
'label' => __('Contact Subtitle','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'textarea',
) );
//Contact Form Title Setting
$wp_customize ->add_setting(
'callcenter_contact_form_title', array(
'default' => __('Leave A Message','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'callcenter_contact_form_title', array(
'label' => __('Contact Form Title','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//Contact Form Shortcode Setting
$wp_customize ->add_setting(
'callcenter_contact_form_shortcode', array(
'default' => '',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_form_shortcode', array(
'label' => __('Contact Form Shortcode','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'textarea',
) );
//Contact Info Title Setting
$wp_customize ->add_setting (
'callcenter_contact_info_title', array(
'default' => __('Contact Info','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info_title', array(
'label' => __('Contact Info Title','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info1 Icon
$wp_customize ->add_setting (
'callcenter_contact_info1_icon', array(
'default' => __('fa-map-marker','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info1_icon', array(
'label' => __('Contact Details Info1 Icon','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
// contact Details Info1 label
$wp_customize ->add_setting (
'callcenter_contact_info1_label', array(
'default' => __('Addresss:','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info1_label', array(
'label' => __('Contact Info1 Label','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info1
$wp_customize ->add_setting (
'callcenter_contact_info1', array(
'default' => __('1240 Park Avenue NYC, USA 256323','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info1', array(
'label' => __('Contact Info1','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info2 Icon
$wp_customize ->add_setting (
'callcenter_contact_info2_icon', array(
'default' => __('fa-envelope','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info2_icon', array(
'label' => __('Contact Info2 Icon','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info2 label
$wp_customize ->add_setting (
'callcenter_contact_info2_label', array(
'default' => __('Email:','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info2_label', array(
'label' => __('Contact Info2 Label','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info2
$wp_customize ->add_setting (
'callcenter_contact_info2', array(
'default' => __('hello@themeicy.com','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info2', array(
'label' => __('Contact Info2 Detail','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info3 Icon
$wp_customize ->add_setting (
'callcenter_contact_info3_icon', array(
'default' => __('fa-phone','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info3_icon', array(
'label' => __('Contact Info3 Icon','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info3 label
$wp_customize ->add_setting (
'callcenter_contact_info3_label', array(
'default' => __('Phone:','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info3_label', array(
'label' => __('Contact Info3 Label','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info3
$wp_customize ->add_setting (
'callcenter_contact_info3', array(
'default' => __('+ (007) 548 58 5400','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info3', array(
'label' => __('Contact Info3 Detail','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info4 Icon
$wp_customize ->add_setting (
'callcenter_contact_info4_icon', array(
'default' => __('fa-clock-o','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info4_icon', array(
'label' => __('Contact Info4 Icon','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info4 label
$wp_customize ->add_setting (
'callcenter_contact_info4_label', array(
'default' => __('Open Hours:','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info4_label', array(
'label' => __('Contact Info4 Label','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'text',
) );
//contact Details Info4
$wp_customize ->add_setting (
'callcenter_contact_info4', array(
'default' => __('Mon-Sat : 10am to 7 pm , Sunday : Closed','callcenter'),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control (
'callcenter_contact_info4', array(
'label' => __('Contact Info4 Detail','callcenter'),
'section' => 'callcenter_contact_section_settings',
'type' => 'textarea',
) );
/* --------------------------------------
=========================================
Subscriber Section
=========================================
-----------------------------------------*/
// add section to manage Subscriber
$wp_customize->add_section(
'callcenter_subscriber_section_settings', array(
'title' => __('Subscriber Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',
) );
$wp_customize->add_setting( 'callcenter_subscriber_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_client( $wp_customize, 'callcenter_subscriber_section', array(
'section' => 'callcenter_subscriber_section_settings',)
) );
/* --------------------------------------
=========================================
Client Section
=========================================
-----------------------------------------*/
// add section to manage Client
$wp_customize->add_section(
'callcenter_client_section_settings',
array(
'title' => __('Client Setting','callcenter'),
'description' => '',
'panel' => 'homepage_setting',)
);
$wp_customize->add_setting( 'callcenter_client_section', array(
'sanitize_callback' => 'callcenter_pro_version_sanitize_text'
) );
$wp_customize->add_control( new callcenter_Theme_Support_client( $wp_customize, 'callcenter_client_section', array(
'section' => 'callcenter_client_section_settings',)
) );
function callcenter_pro_version_sanitize_text( $input ) {
return wp_kses_post( force_balance_tags( $input ) );
}
function callcenter_pro_version_sanitize_html( $input ) {
return force_balance_tags( $input );
}
function callcenter_homepage_title_sanitize_text ( $input ) {
return wp_kses_post( force_balance_tags( $input ) );
}
function callcenter_homepage_title_sanitize_html( $input ) {
return force_balance_tags( $input );
}
}
add_action( 'customize_register', 'callcenter_homepage_setting' );
?>