'slider',
'settings' => 'call_center_bpo_logo_resizer',
'label' => esc_html__( 'Adjust Your Logo Size ', 'call-center-bpo' ),
'section' => 'title_tagline',
'default' => 70,
'choices' => [
'min' => 10,
'max' => 300,
'step' => 10,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_enable_logo_text',
'section' => 'title_tagline',
'default' => '
' . __( 'Enable / Disable Site Title and Tagline', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_display_header_title',
'label' => esc_html__( 'Site Title Enable / Disable Button', 'call-center-bpo' ),
'section' => 'title_tagline',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_display_header_text',
'label' => esc_html__( 'Tagline Enable / Disable Button', 'call-center-bpo' ),
'section' => 'title_tagline',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
// FONT STYLE TYPOGRAPHY
Kirki::add_panel( 'call_center_bpo_panel_id', array(
'priority' => 10,
'title' => esc_html__( 'Typography', 'call-center-bpo' ),
) );
Kirki::add_section( 'call_center_bpo_font_style_section', array(
'title' => esc_attr__( 'Typography Option', 'call-center-bpo' ),
'priority' => 2,
'capability' => 'edit_theme_options',
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_all_headings_typography',
'section' => 'call_center_bpo_font_style_section',
'default' => '' . __( 'Heading Of All Sections', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'global', array(
'type' => 'typography',
'settings' => 'call_center_bpo_all_headings_typography',
'label' => esc_attr__( 'Heading Typography', 'call-center-bpo' ),
'description' => esc_attr__( 'Select the typography options for your heading.', 'call-center-bpo' ),
'section' => 'call_center_bpo_font_style_section',
'priority' => 10,
'default' => array(
'font-family' => '',
'variant' => '',
),
'output' => array(
array(
'element' => array( 'h1','h2','h3','h4','h5','h6', ),
),
),
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_body_content_typography',
'section' => 'call_center_bpo_font_style_section',
'default' => '' . __( 'Body Content', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'global', array(
'type' => 'typography',
'settings' => 'call_center_bpo_body_content_typography',
'label' => esc_attr__( 'Content Typography', 'call-center-bpo' ),
'description' => esc_attr__( 'Select the typography options for your content.', 'call-center-bpo' ),
'section' => 'call_center_bpo_font_style_section',
'priority' => 10,
'default' => array(
'font-family' => '',
'variant' => '',
),
'output' => array(
array(
'element' => array( 'body', ),
),
),
) );
// PANEL
Kirki::add_panel( 'call_center_bpo_panel_id', array(
'priority' => 10,
'title' => esc_html__( 'Theme Options', 'call-center-bpo' ),
) );
// Additional Settings
Kirki::add_section( 'call_center_bpo_additional_settings', array(
'title' => esc_html__( 'Additional Settings', 'call-center-bpo' ),
'description' => esc_html__( 'Scroll To Top', 'call-center-bpo' ),
'panel' => 'call_center_bpo_panel_id',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'call_center_bpo_scroll_enable_setting',
'label' => esc_html__( 'Here you can enable or disable your scroller.', 'call-center-bpo' ),
'section' => 'call_center_bpo_additional_settings',
'default' => '1',
'priority' => 10,
] );
new \Kirki\Field\Radio_Buttonset([
'settings' => 'call_center_bpo_scroll_top_position',
'label' => esc_html__( 'Alignment for Scroll To Top', 'call-center-bpo' ),
'section' => 'call_center_bpo_additional_settings',
'default' => 'Right',
'priority' => 10,
'choices' => [
'Left' => esc_html__( 'Left', 'call-center-bpo' ),
'Center' => esc_html__( 'Center', 'call-center-bpo' ),
'Right' => esc_html__( 'Right', 'call-center-bpo' ),
],
]
);
new \Kirki\Field\Select(
[
'settings' => 'menu_text_transform_call_center_bpo',
'label' => esc_html__( 'Menus Text Transform', 'call-center-bpo' ),
'section' => 'call_center_bpo_additional_settings',
'default' => 'CAPITALISE',
'placeholder' => esc_html__( 'Choose an option', 'call-center-bpo' ),
'choices' => [
'CAPITALISE' => esc_html__( 'CAPITALISE', 'call-center-bpo' ),
'UPPERCASE' => esc_html__( 'UPPERCASE', 'call-center-bpo' ),
'LOWERCASE' => esc_html__( 'LOWERCASE', 'call-center-bpo' ),
],
]
);
Kirki::add_field( 'theme_config_id', [
'type' => 'slider',
'settings' => 'call_center_bpo_container_width',
'label' => esc_html__( 'Theme Container Width', 'call-center-bpo' ),
'section' => 'call_center_bpo_additional_settings',
'default' => 100,
'choices' => [
'min' => 50,
'max' => 100,
'step' => 1,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'call_center_bpo_site_loader',
'label' => esc_html__( 'Here you can enable or disable your Site Loader.', 'call-center-bpo' ),
'section' => 'call_center_bpo_additional_settings',
'default' => false,
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'call_center_bpo_sticky_header',
'label' => esc_html__( 'Here you can enable or disable your Sticky Header.', 'call-center-bpo' ),
'section' => 'call_center_bpo_additional_settings',
'default' => false,
'priority' => 10,
] );
// POST SECTION
Kirki::add_section( 'call_center_bpo_section_post', array(
'title' => esc_html__( 'Post Settings', 'call-center-bpo' ),
'description' => esc_html__( 'Here you can get different post settings', 'call-center-bpo' ),
'panel' => 'call_center_bpo_panel_id',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_enable_post_heading',
'section' => 'call_center_bpo_section_post',
'default' => '' . __( 'Enable / Disable Post Settings.', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_blog_admin_enable',
'label' => esc_html__( 'Post Author Enable / Disable Button', 'call-center-bpo' ),
'section' => 'call_center_bpo_section_post',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_blog_comment_enable',
'label' => esc_html__( 'Post Comment Enable / Disable Button', 'call-center-bpo' ),
'section' => 'call_center_bpo_section_post',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'slider',
'settings' => 'call_center_bpo_post_excerpt_number',
'label' => esc_html__( 'Post Content Range', 'call-center-bpo' ),
'section' => 'call_center_bpo_section_post',
'default' => 15,
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'call_center_bpo_pagination_setting',
'label' => esc_html__( 'Here you can enable or disable your Pagination.', 'call-center-bpo' ),
'section' => 'call_center_bpo_section_post',
'default' => true,
'priority' => 10,
] );
if ( class_exists("woocommerce")){
Kirki::add_section( 'call_center_bpo_woocommerce_settings', array(
'title' => esc_html__( 'Woocommerce Settings', 'call-center-bpo' ),
'description' => esc_html__( 'Shop Page', 'call-center-bpo' ),
'panel' => 'call_center_bpo_panel_id',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'call_center_bpo_shop_sidebar',
'label' => esc_html__( 'Here you can enable or disable shop page sidebar.', 'call-center-bpo' ),
'section' => 'call_center_bpo_woocommerce_settings',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'call_center_bpo_product_sidebar',
'label' => esc_html__( 'Here you can enable or disable product page sidebar.', 'call-center-bpo' ),
'section' => 'call_center_bpo_woocommerce_settings',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'call_center_bpo_related_product_setting',
'label' => esc_html__( 'Here you can enable or disable your related products.', 'call-center-bpo' ),
'section' => 'call_center_bpo_woocommerce_settings',
'default' => true,
'priority' => 10,
] );
new \Kirki\Field\Number(
[
'settings' => 'call_center_bpo_per_columns',
'label' => esc_html__( 'Product Per Row', 'call-center-bpo' ),
'section' => 'call_center_bpo_woocommerce_settings',
'default' => 3,
'choices' => [
'min' => 1,
'max' => 4,
'step' => 1,
],
]
);
new \Kirki\Field\Number(
[
'settings' => 'call_center_bpo_product_per_page',
'label' => esc_html__( 'Product Per Page', 'call-center-bpo' ),
'section' => 'call_center_bpo_woocommerce_settings',
'default' => 9,
'choices' => [
'min' => 1,
'max' => 15,
'step' => 1,
],
]
);
}
// HEADER SECTION
Kirki::add_section( 'call_center_bpo_header_section', array(
'title' => esc_html__( ' Header Settings', 'call-center-bpo' ),
'panel' => 'call_center_bpo_panel_id',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_header_button_heading',
'section' => 'call_center_bpo_header_section',
'default' => '' . __( 'Add Button', 'call-center-bpo' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'label' => esc_html__( 'Text', 'call-center-bpo' ),
'settings' => 'call_center_bpo_header_button_text',
'section' => 'call_center_bpo_header_section',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'url',
'label' => esc_html__( 'Link', 'call-center-bpo' ),
'settings' => 'call_center_bpo_header_button_url',
'section' => 'call_center_bpo_header_section',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_enable_socail_link',
'section' => 'call_center_bpo_header_section',
'default' => '' . __( 'Social Media Link', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'repeater',
'section' => 'call_center_bpo_header_section',
'priority' => 11,
'row_label' => [
'type' => 'field',
'value' => esc_html__( 'Social Icon', 'call-center-bpo' ),
'field' => 'link_text',
],
'button_label' => esc_html__('Add New Social Icon', 'call-center-bpo' ),
'settings' => 'call_center_bpo_social_links_settings',
'default' => '',
'fields' => [
'link_text' => [
'type' => 'text',
'label' => esc_html__( 'Icon', 'call-center-bpo' ),
'description' => esc_html__( 'Add the fontawesome class ex: "fab fa-facebook-f".', 'call-center-bpo' ),
'default' => '',
],
'link_url' => [
'type' => 'url',
'label' => esc_html__( 'Social Link', 'call-center-bpo' ),
'description' => esc_html__( 'Add the social icon url here.', 'call-center-bpo' ),
'default' => '',
],
],
'choices' => [
'limit' => 5
],
] );
// SLIDER SECTION
Kirki::add_section( 'call_center_bpo_blog_slide_section', array(
'title' => esc_html__( ' Slider Settings', 'call-center-bpo' ),
'description' => esc_html__( 'You have to select post category to show slider.', 'call-center-bpo' ),
'panel' => 'call_center_bpo_panel_id',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_enable_heading',
'section' => 'call_center_bpo_blog_slide_section',
'default' => '' . __( 'Enable / Disable Slider', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_blog_box_enable',
'label' => esc_html__( 'Section Enable / Disable', 'call-center-bpo' ),
'section' => 'call_center_bpo_blog_slide_section',
'default' => false,
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_title_unable_disable',
'label' => esc_html__( 'Slide Title Enable / Disable', 'call-center-bpo' ),
'section' => 'call_center_bpo_blog_slide_section',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_button_unable_disable',
'label' => esc_html__( 'Slide Button Enable / Disable', 'call-center-bpo' ),
'section' => 'call_center_bpo_blog_slide_section',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_slider_heading',
'section' => 'call_center_bpo_blog_slide_section',
'default' => '' . __( 'Slider', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'number',
'settings' => 'call_center_bpo_blog_slide_number',
'label' => esc_html__( 'Number of slides to show', 'call-center-bpo' ),
'section' => 'call_center_bpo_blog_slide_section',
'default' => 3,
'choices' => [
'min' => 0,
'max' => 80,
'step' => 1,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'select',
'settings' => 'call_center_bpo_blog_slide_category',
'label' => esc_html__( 'Select the category to show slider ( Image Dimension 1600 x 600 )', 'call-center-bpo' ),
'section' => 'call_center_bpo_blog_slide_section',
'default' => '',
'placeholder' => esc_html__( 'Select an category...', 'call-center-bpo' ),
'priority' => 10,
'choices' => call_center_bpo_get_categories_select(),
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_header_phone_number_heading',
'section' => 'call_center_bpo_blog_slide_section',
'default' => '' . __( 'Add Phone Number', 'call-center-bpo' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'label' => esc_html__( 'Text', 'call-center-bpo' ),
'settings' => 'call_center_bpo_header_phone_text',
'section' => 'call_center_bpo_blog_slide_section',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'label' => esc_html__( 'Phone Number', 'call-center-bpo' ),
'settings' => 'call_center_bpo_header_phone_number',
'section' => 'call_center_bpo_blog_slide_section',
'default' => '',
'sanitize_callback' => 'call_center_bpo_sanitize_phone_number',
] );
new \Kirki\Field\Select([
'settings' => 'call_center_bpo_slider_content_alignment',
'label' => esc_html__( 'Slider Content Alignment', 'call-center-bpo' ),
'section' => 'call_center_bpo_blog_slide_section',
'default' => 'LEFT-ALIGN',
'placeholder' => esc_html__( 'Choose an option', 'call-center-bpo' ),
'choices' => [
'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'call-center-bpo' ),
'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'call-center-bpo' ),
'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'call-center-bpo' ),
],
] );
// SERVICES SECTION
Kirki::add_section( 'call_center_bpo_services_section', array(
'title' => esc_html__( 'Services Settings', 'call-center-bpo' ),
'description' => esc_html__( 'You have to select post category to show services.', 'call-center-bpo' ),
'panel' => 'call_center_bpo_panel_id',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_enable_heading',
'section' => 'call_center_bpo_services_section',
'default' => '' . __( 'Enable / Disable Services', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_services_enable',
'label' => esc_html__( 'Section Enable / Disable', 'call-center-bpo' ),
'section' => 'call_center_bpo_services_section',
'default' => false,
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_services_shot_title_heading',
'section' => 'call_center_bpo_services_section',
'default' => '' . __( 'Add Short Heading', 'call-center-bpo' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'call_center_bpo_services_short_heading',
'section' => 'call_center_bpo_services_section',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_services_title_heading',
'section' => 'call_center_bpo_services_section',
'default' => '' . __( 'Add Heading', 'call-center-bpo' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'call_center_bpo_services_heading',
'section' => 'call_center_bpo_services_section',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_slider_heading',
'section' => 'call_center_bpo_services_section',
'default' => '' . __( 'Services', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'number',
'settings' => 'call_center_bpo_services_number',
'label' => esc_html__( 'Number of services to show', 'call-center-bpo' ),
'section' => 'call_center_bpo_services_section',
'default' => 3,
'choices' => [
'min' => 0,
'max' => 80,
'step' => 1,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'select',
'settings' => 'call_center_bpo_services_category',
'section' => 'call_center_bpo_services_section',
'default' => '',
'placeholder' => esc_html__( 'Select an category...', 'call-center-bpo' ),
'priority' => 10,
'choices' => call_center_bpo_get_categories_select(),
] );
// FOOTER SECTION
Kirki::add_section( 'call_center_bpo_footer_section', array(
'title' => esc_html__( 'Footer Settings', 'call-center-bpo' ),
'description' => esc_html__( 'Here you can change copyright text', 'call-center-bpo' ),
'panel' => 'call_center_bpo_panel_id',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_footer_enable_heading',
'section' => 'call_center_bpo_footer_section',
'default' => '' . __( 'Enable / Disable Footer Link', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'call_center_bpo_copyright_enable',
'label' => esc_html__( 'Section Enable / Disable', 'call-center-bpo' ),
'section' => 'call_center_bpo_footer_section',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'call-center-bpo' ),
'off' => esc_html__( 'Disable', 'call-center-bpo' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_footer_text_heading',
'section' => 'call_center_bpo_footer_section',
'default' => '' . __( 'Footer Copyright Text', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'call_center_bpo_footer_text',
'section' => 'call_center_bpo_footer_section',
'default' => '',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'call_center_bpo_footer_text_heading_2',
'section' => 'call_center_bpo_footer_section',
'default' => '' . __( 'Footer Copyright Alignment', 'call-center-bpo' ) . '
',
'priority' => 10,
] );
new \Kirki\Field\Select(
[
'settings' => 'call_center_bpo_copyright_text_alignment',
'label' => esc_html__( 'Copyright text Alignment', 'call-center-bpo' ),
'section' => 'call_center_bpo_footer_section',
'default' => 'LEFT-ALIGN',
'placeholder' => esc_html__( 'Choose an option', 'call-center-bpo' ),
'choices' => [
'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'call-center-bpo' ),
'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'call-center-bpo' ),
'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'call-center-bpo' ),
],
] );
}