add_panel( 'template_settings', array(
'priority' => 127,
'capability' => 'edit_theme_options',
'title' => __('Template Settings', 'busi_prof'),
) );
/* About settings */
$wp_customize->add_section( 'about_section' , array(
'title' => __('About Template', 'busi_prof'),
'panel' => 'template_settings',
'priority' => 0,
) );
//About Pro
class busiprof_Customize_about_upgrade extends WP_Customize_Control {
public function render_content() { ?>
add_setting( 'about_upgrade', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new busiprof_Customize_about_upgrade(
$wp_customize,
'about_upgrade',
array(
'label' => __('Busiprof Upgrade','busi_prof'),
'section' => 'about_section',
'settings' => 'about_upgrade',
)
)
);
// Enable Team Section
$wp_customize->add_setting( 'busiprof_pro_theme_options[enable_team_section]' , array( 'default' => 'on' , 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[enable_team_section]' , array(
'label' => __( 'Enable Team Section', 'busi_prof' ),
'section' => 'about_section',
'type' => 'radio',
'choices' => array(
'on'=>'ON',
'off'=>'OFF'
)
));
// Enable Client Section
$wp_customize->add_setting( 'busiprof_pro_theme_options[enable_client_section]' , array( 'default' => 'on' , 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[enable_client_section]' , array(
'label' => __( 'Enable Client Section', 'busi_prof' ),
'section' => 'about_section',
'type' => 'radio',
'choices' => array(
'on'=>'ON',
'off'=>'OFF'
)
));
/* Service settings */
$wp_customize->add_section( 'service_template' , array(
'title' => __('Service Template', 'busi_prof'),
'panel' => 'template_settings',
'priority' => 1,
) );
//About Pro
class busiprof_Customize_service_upgrade extends WP_Customize_Control {
public function render_content() { ?>
add_setting( 'service_upgrade', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new busiprof_Customize_service_upgrade(
$wp_customize,
'service_upgrade',
array(
'label' => __('Busiprof Upgrade','busi_prof'),
'section' => 'service_template',
'settings' => 'service_upgrade',
)
)
);
// Enable Testimonial Section
$wp_customize->add_setting( 'busiprof_pro_theme_options[enable_testimonial_section_portfolio]' , array( 'default' => 'on' , 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[enable_testimonial_section_portfolio]' , array(
'label' => __( 'Enable Testimonial Section', 'busi_prof' ),
'section' => 'service_template',
'type' => 'radio',
'choices' => array(
'on'=>'ON',
'off'=>'OFF'
)
));
// Enable Client Section
$wp_customize->add_setting( 'busiprof_pro_theme_options[enable_client_section_portfolio]' , array( 'default' => 'on' , 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[enable_client_section_portfolio]' , array(
'label' => __( 'Enable Client Section', 'busi_prof' ),
'section' => 'service_template',
'type' => 'radio',
'choices' => array(
'on'=>'ON',
'off'=>'OFF'
)
));
/* Portfolio settings */
$wp_customize->add_section( 'portfolio_section' , array(
'title' => __('Portfolio Template', 'busi_prof'),
'panel' => 'template_settings',
'priority' => 2,
) );
//Slug Pro
class busiprof_Customize_portfolio_upgrade extends WP_Customize_Control {
public function render_content() { ?>
add_setting( 'project_upgrade', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new busiprof_Customize_portfolio_upgrade(
$wp_customize,
'project_upgrade',
array(
'label' => __('Busiprof Upgrade','busi_prof'),
'section' => 'portfolio_section',
'settings' => 'project_upgrade',
)
)
);
// Portfolio template title
$wp_customize->add_setting( 'busiprof_pro_theme_options[protfolio_tag_line]', array( 'default' => 'Recent Portfolio' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[protfolio_tag_line]',
array(
'label' => __( 'Portfolio Template Title', 'busi_prof' ),
'section' => 'portfolio_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
// Portfolio template desc
$wp_customize->add_setting( 'busiprof_pro_theme_options[protfolio_description_tag]', array( 'default' => 'Portfolio for select your column webdesign' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[protfolio_description_tag]',
array(
'label' => __( 'Portfolio Template Description', 'busi_prof' ),
'section' => 'portfolio_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
/* Contact settings */
$wp_customize->add_section( 'contact_template_section' , array(
'title' => __('Contact Template', 'busi_prof'),
'panel' => 'template_settings',
'priority' => 4,
) );
//Contact Pro
class busiprof_Customize_contact_upgrade extends WP_Customize_Control {
public function render_content() { ?>
add_setting( 'contact_upgrade', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new busiprof_Customize_contact_upgrade(
$wp_customize,
'contact_upgrade',
array(
'label' => __('Busiprof Upgrade','busi_prof'),
'section' => 'contact_template_section',
'settings' => 'contact_upgrade',
)
)
);
// Contact Address 1
$wp_customize->add_setting( 'busiprof_pro_theme_options[contact_address_1]', array( 'default' => '378 Kingston Court' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[contact_address_1]',
array(
'label' => __( 'Contact Address 1', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
// Contact Address 2
$wp_customize->add_setting( 'busiprof_pro_theme_options[contact_address_2]', array( 'default' => 'West New York, NJ 07093' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[contact_address_2]',
array(
'label' => __( ' ', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
// phone number
$wp_customize->add_setting( 'busiprof_pro_theme_options[contact_number]', array( 'default' => '973-960-4715' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[contact_number]',
array(
'label' => __( 'Phone :', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
// fax number
$wp_customize->add_setting( 'busiprof_pro_theme_options[contact_fax_number]', array( 'default' => '0276-758645' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[contact_fax_number]',
array(
'label' => __( 'Fax :', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
// email
$wp_customize->add_setting( 'busiprof_pro_theme_options[contact_email]', array( 'default' => 'info@busiprof.com' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[contact_email]',
array(
'label' => __( 'Email :', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
// website
$wp_customize->add_setting( 'busiprof_pro_theme_options[contact_website]', array( 'default' => 'https://www.busiprof.com' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[contact_website]',
array(
'label' => __( 'Website :', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
// Enable google map
$wp_customize->add_setting( 'busiprof_pro_theme_options[contact_google_map_enabled]' , array( 'default' => '' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[contact_google_map_enabled]' , array(
'label' => __( 'Enable Google map', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'radio',
'choices' => array(
'on'=>'ON',
'off'=>'OFF'
)
));
// google map url
$wp_customize->add_setting( 'busiprof_pro_theme_options[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' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[google_map_url]',
array(
'label' => __( 'Google map url', 'busi_prof' ),
'section' => 'contact_template_section',
'type' => 'text',
'input_attrs' => array('disabled' => 'disabled'),
));
/* Taxonomy Archive Protfolio */
$wp_customize->add_section( 'texonomy_template_section' , array(
'title' => __('Taxonomy Archive Protfolio Template', 'busi_prof'),
'panel' => 'template_settings',
'priority' => 5,
) );
//Texonomy Archive Pro
class busiprof_Customize_portfolio_texonomy_upgrade extends WP_Customize_Control {
public function render_content() { ?>
add_setting( 'texonomy_portfolio_upgrade', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new busiprof_Customize_portfolio_texonomy_upgrade(
$wp_customize,
'texonomy_portfolio_upgrade',
array(
'label' => __('Busiprof Upgrade','busi_prof'),
'section' => 'texonomy_template_section',
'settings' => 'texonomy_portfolio_upgrade',
)
)
);
// Taxonomy Archive
$wp_customize->add_setting( 'busiprof_pro_theme_options[taxonomy_portfolio_list]', array( 'default' => 2 , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[taxonomy_portfolio_list]',
array(
'label' => __( 'Taxonomy Archive :', 'busi_prof' ),
'section' => 'texonomy_template_section',
'type' => 'select',
'choices' => array(
'2'=>'2',
'3'=>'3',
'4'=>'4',
)
));
}
add_action( 'customize_register', 'busiprof_template_settings' );