/home/awneajlw/work.codestechvista.com/wp-content/plugins/ignavo-core/inc/customizer.php
<?php
/*======
*
* Kirki Settings
*
======*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Kirki' ) ) {
return;
}
Kirki::add_config(
'ignavo_customizer', array(
'capability' => 'edit_theme_options',
'option_type' => 'theme_mod',
)
);
/*======
*
* Sections
*
======*/
$sections = array(
'shop_settings' => array (
esc_attr__( 'Shop Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the shop settings.', 'ignavo-core' ),
),
'blog_settings' => array (
esc_attr__( 'Blog Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the blog settings.', 'ignavo-core' ),
),
'header_settings' => array (
esc_attr__( 'Header Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the header settings.', 'ignavo-core' ),
),
'main_color' => array (
esc_attr__( 'Main Color', 'ignavo-core' ),
esc_attr__( 'You can customize the main color.', 'ignavo-core' ),
),
'elementor_templates' => array (
esc_attr__( 'Elementor Templates', 'ignavo-core' ),
esc_attr__( 'You can customize the elementor templates.', 'ignavo-core' ),
),
'map_settings' => array (
esc_attr__( 'Map Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the map settings.', 'ignavo-core' ),
),
'footer_settings' => array (
esc_attr__( 'Footer Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the footer settings.', 'ignavo-core' ),
),
'ignavo_widgets' => array (
esc_attr__( 'Ignavo Widgets', 'ignavo-core' ),
esc_attr__( 'You can customize the ignavo widgets.', 'ignavo-core' ),
),
'gdpr_settings' => array (
esc_attr__( 'GDPR Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the GDPR settings.', 'ignavo-core' ),
),
'newsletter_settings' => array (
esc_attr__( 'Newsletter Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the Newsletter Popup settings.', 'ignavo-core' ),
),
'maintenance_settings' => array (
esc_attr__( 'Maintenance Settings', 'ignavo-core' ),
esc_attr__( 'You can customize the Maintenance settings.', 'ignavo-core' ),
),
'typography_settings' => array (
esc_attr__( 'Ignavo Typography', 'ignavo-core' ),
esc_attr__( 'You can customize the Typography settings.', 'ignavo-core' ),
),
'other_settings' => array (
esc_attr__( 'Other', 'ignavo-core' ),
esc_attr__( 'You can customize the other settings.', 'ignavo-core' ),
),
);
foreach ( $sections as $section_id => $section ) {
$section_args = array(
'title' => $section[0],
'description' => $section[1],
);
if ( isset( $section[2] ) ) {
$section_args['type'] = $section[2];
}
if( $section_id == "colors" ) {
Kirki::add_section( str_replace( '-', '_', $section_id ), $section_args );
} else {
Kirki::add_section( 'ignavo_' . str_replace( '-', '_', $section_id ) . '_section', $section_args );
}
}
/*======
*
* Fields
*
======*/
function ignavo_customizer_add_field ( $args ) {
Kirki::add_field(
'ignavo_customizer',
$args
);
}
/*====== Header ==================================================================================*/
/*====== Header Panels ======*/
Kirki::add_panel (
'ignavo_header_panel',
array(
'title' => esc_html__( 'Header Settings', 'ignavo-core' ),
'description' => esc_html__( 'You can customize the header from this panel.', 'ignavo-core' ),
)
);
$sections = array (
'header_logo' => array(
esc_attr__( 'Logo', 'ignavo-core' ),
esc_attr__( 'You can customize the logo which is on header..', 'ignavo-core' )
),
'header_general' => array(
esc_attr__( 'Header General', 'ignavo-core' ),
esc_attr__( 'You can customize the header.', 'ignavo-core' )
),
'header_search' => array(
esc_attr__( 'Header Search', 'ignavo-core' ),
esc_attr__( 'You can customize the loader.', 'ignavo-core' )
),
'header_product_tab' => array(
esc_attr__( 'Header Products Tab', 'ignavo-core' ),
esc_attr__( 'You can customize the header products tab.', 'ignavo-core' )
),
'header_attribute_search' => array(
esc_attr__( 'Attribute Search', 'ignavo-core' ),
esc_attr__( 'You can customize the header attribute search filter.', 'ignavo-core' )
),
'canvas_menu' => array(
esc_attr__( 'Canvas Menu Contact Box', 'ignavo-core' ),
esc_attr__( 'You can customize the canvas menu contact box.', 'ignavo-core' )
),
'header_preloader' => array(
esc_attr__( 'Preloader', 'ignavo-core' ),
esc_attr__( 'You can customize the loader.', 'ignavo-core' )
),
'header1_style' => array(
esc_attr__( 'Header 1 Style', 'ignavo-core' ),
esc_attr__( 'You can customize the style.', 'ignavo-core' )
),
'header2_style' => array(
esc_attr__( 'Header 2 Style', 'ignavo-core' ),
esc_attr__( 'You can customize the style.', 'ignavo-core' )
),
'header3_style' => array(
esc_attr__( 'Header 3 Style', 'ignavo-core' ),
esc_attr__( 'You can customize the style.', 'ignavo-core' )
),
'header4_style' => array(
esc_attr__( 'Header 4 Style', 'ignavo-core' ),
esc_attr__( 'You can customize the style.', 'ignavo-core' )
),
'header5_style' => array(
esc_attr__( 'Header 5 Style', 'ignavo-core' ),
esc_attr__( 'You can customize the style.', 'ignavo-core' )
),
'mobile_bottom_menu_style' => array(
esc_attr__( 'Mobile Bottom Menu Style', 'ignavo-core' ),
esc_attr__( 'You can customize the style.', 'ignavo-core' )
),
'mini_cart_style' => array(
esc_attr__( 'Mini Cart Style', 'ignavo-core' ),
esc_attr__( 'You can customize the mini cart style settings.', 'ignavo-core' )
),
);
foreach ( $sections as $section_id => $section ) {
$section_args = array(
'title' => $section[0],
'description' => $section[1],
'panel' => 'ignavo_header_panel',
);
if ( isset( $section[2] ) ) {
$section_args['type'] = $section[2];
}
Kirki::add_section( 'ignavo_' . str_replace( '-', '_', $section_id ) . '_section', $section_args );
}
/*====== Logo ======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_logo',
'label' => esc_attr__( 'Logo', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload a logo.', 'ignavo-core' ),
'section' => 'ignavo_header_logo_section',
'choices' => array(
'save_as' => 'id',
),
)
);
/*====== Logo White======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_logo_white',
'label' => esc_attr__( 'Logo White', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload a logo white.', 'ignavo-core' ),
'section' => 'ignavo_header_logo_section',
'choices' => array(
'save_as' => 'id',
),
)
);
/*====== Logo Text ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_logo_text',
'label' => esc_attr__( 'Set Logo Text', 'ignavo-core' ),
'description' => esc_attr__( 'You can set logo as text.', 'ignavo-core' ),
'section' => 'ignavo_header_logo_section',
'default' => 'Ignavo',
)
);
/*====== Logo Size ======*/
ignavo_customizer_add_field (
array(
'type' => 'slider',
'settings' => 'ignavo_logo_size',
'label' => esc_html__( 'Logo Size', 'ignavo-core' ),
'description' => esc_attr__( 'You can set size of the logo.', 'ignavo-core' ),
'section' => 'ignavo_header_logo_section',
'default' => 156,
'transport' => 'auto',
'choices' => [
'min' => 20,
'max' => 400,
'step' => 1,
],
)
);
/*====== Mobil Logo Size ======*/
ignavo_customizer_add_field (
array(
'type' => 'slider',
'settings' => 'ignavo_mobil_logo_size',
'label' => esc_html__( 'Mobile Logo Size', 'ignavo-core' ),
'description' => esc_attr__( 'You can set size of the mobil logo.', 'ignavo-core' ),
'section' => 'ignavo_header_logo_section',
'default' => 130,
'transport' => 'auto',
'choices' => [
'min' => 20,
'max' => 300,
'step' => 1,
],
)
);
/*====== Header Type ======*/
ignavo_customizer_add_field(
array (
'type' => 'select',
'settings' => 'ignavo_header_type',
'label' => esc_html__( 'Header Type', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => 'type1',
'priority' => 10,
'choices' => array(
'type1' => esc_attr__( 'Type 1', 'ignavo-core' ),
'type2' => esc_attr__( 'Type 2', 'ignavo-core' ),
'type3' => esc_attr__( 'Type 3', 'ignavo-core' ),
'type4' => esc_attr__( 'Type 4', 'ignavo-core' ),
'type5' => esc_attr__( 'Type 5', 'ignavo-core' ),
)
)
);
/*====== Middle Sticky Header Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_sticky_header',
'label' => esc_attr__( 'Sticky Header', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the header.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Mobile Sticky Header Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_mobile_sticky_header',
'label' => esc_attr__( 'Mobile Sticky Header', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the header on the mobile.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Header Account Icon ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_account',
'label' => esc_attr__( 'Account Icon / Login', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable User Login/Signup on the header.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Account Icon Box ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_account_icon_box',
'label' => esc_attr__( 'Account Icon Box', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_header_account',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Account Icon Box ======*/
new \Kirki\Field\Repeater(
array(
'settings' => 'ignavo_account_icon_box_repeater',
'label' => esc_attr__( 'Account Icon Box', 'ignavo-core' ),
'description' => esc_attr__( 'You can set the icon box repeater.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'fields' => array(
'account_iconbox_image' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
'account_iconbox_title' => array(
'type' => 'text',
'label' => esc_attr__( 'Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a title.', 'ignavo-core' ),
),
'account_iconbox_desc' => array(
'type' => 'text',
'label' => esc_attr__( 'Description', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a description.', 'ignavo-core' ),
),
),
'active_callback' => [
[
'setting' => 'ignavo_account_icon_box',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Header Popup Login ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_popup_login',
'label' => esc_attr__( 'Popup Login?', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the popup login on the header.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_header_account',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Popup Login Image======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_header_popup_login_image',
'label' => esc_attr__( 'Popup Login Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'choices' => array(
'save_as' => 'id',
),
'required' => array(
array(
'setting' => 'ignavo_header_popup_login',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Cart Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_cart',
'label' => esc_attr__( 'Header Cart', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the mini cart on the header.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Header Mobile Cart Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_mobile_header_cart',
'label' => esc_attr__( 'Header Mobile Cart', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Header Sidebar ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_sidebar',
'label' => esc_attr__( 'Sidebar Menu', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable Sidebar Menu', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Top Left Menu Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_top_left_menu',
'label' => esc_attr__( 'Top Left Menu', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the top left menu.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Top Right Menu Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_top_right_menu',
'label' => esc_attr__( 'Top Right Menu', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the top right menu.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Header Rating Toggle======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_rating_toggle',
'label' => esc_attr__( 'Header Rating', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the rating on the header.', 'ignavo-core' ),
'section' => 'ignavo_header_general_section',
'default' => '0',
)
);
/*====== Header Search Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_search',
'label' => esc_attr__( 'Header Search', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the search on the header.', 'ignavo-core' ),
'section' => 'ignavo_header_search_section',
'default' => '0',
)
);
/*====== Ajax Search Form ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_ajax_search_form',
'label' => esc_attr__( 'Ajax Search Form', 'ignavo-core' ),
'description' => esc_attr__( 'Enable ajax search form for the header search.', 'ignavo-core' ),
'section' => 'ignavo_header_search_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_header_search',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Mobile Search Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_mobile_header_search',
'label' => esc_attr__( 'Mobile Search', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the mobile search on the header.', 'ignavo-core' ),
'section' => 'ignavo_header_search_section',
'default' => '0',
)
);
/*====== Header Products Tab Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_products_tab',
'label' => esc_attr__( 'Products Tab', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable Products Tab', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => '0',
)
);
/*====== Header Products Tab Button Image======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_header_products_button_image',
'label' => esc_attr__( 'Header Products Tab Button Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'choices' => array(
'save_as' => 'id',
),
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Button Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_products_button_title',
'label' => esc_attr__( 'Button Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a text for the button.', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => 'Best Seller',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Button Badge Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_products_button_badge_title',
'label' => esc_attr__( 'Button Badge Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a text for the badge.', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => 'Sale',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_products_tab_title',
'label' => esc_attr__( 'Tab Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a title for the tab.', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => 'To see and take advantage of all discounted products.',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Url Title======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_products_tab_button_url_title',
'label' => esc_attr__( 'Tab Button Url Title', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => 'Click Here',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Url ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_products_tab_button_url',
'label' => esc_attr__( 'Tab Button Url', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => '#',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab On Sale ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_products_tab_on_sale',
'label' => esc_attr__( 'On Sale Products?', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Featured ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_products_tab_featured',
'label' => esc_attr__( 'Featured Products?', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Best Selling ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_products_tab_best_selling',
'label' => esc_attr__( 'Best Selling Products?', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Products Tab Post count ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_products_tab_post_count',
'label' => esc_attr__( 'Posts Count', 'ignavo-core' ),
'section' => 'ignavo_header_product_tab_section',
'default' => '5',
'required' => array(
array(
'setting' => 'ignavo_header_products_tab',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Attribute Search Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_attribute_search_toggle',
'label' => esc_attr__( 'Attribute Search', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the attribute search on the header.', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => '0',
)
);
/*====== Vehicle Page ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_garage_page',
'label' => esc_attr__( 'Select a Vehicle Page', 'ignavo-core' ),
'description' => esc_attr__( 'You can select a vehicle page. [klbgr_list]', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => '',
'choices' => Kirki\Util\Helper::get_posts(
array(
'posts_per_page' => 30,
'post_type' => 'page'
) ,
),
'required' => array(
array(
'setting' => 'ignavo_header_attribute_search_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Attribute Search Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_attribute_search_title',
'label' => esc_attr__( 'Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a title for the modal.', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => 'Add Vehicle',
'required' => array(
array(
'setting' => 'ignavo_header_attribute_search_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Attribute Search Subtitle ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'ignavo_header_attribute_search_subtitle',
'label' => esc_attr__( 'Subtitle', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a subtitle for the modal.', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => 'My Garage',
'required' => array(
array(
'setting' => 'ignavo_header_attribute_search_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Attribute Search Popup Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_attribute_search_popup_title',
'label' => esc_attr__( 'Popup title', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a title.', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => 'Find the Right Parts Faster',
'required' => array(
array(
'setting' => 'ignavo_header_attribute_search_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Attribute Search Popup Subtitle ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_attribute_search_popup_subtitle',
'label' => esc_attr__( 'Popup Subtitle', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a subtitle.', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => 'Having the right automotive parts and car accessories will help you to boost your travel comfort and go on the long-distance journey comfortably that you have been planning.',
'required' => array(
array(
'setting' => 'ignavo_header_attribute_search_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Attribute Search Popup Second Subtitle ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_attribute_search_popup_second_subtitle',
'label' => esc_attr__( 'Popup Second Subtitle', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a second subtitle.', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => 'Please fill in the criteria you are looking for',
'required' => array(
array(
'setting' => 'ignavo_header_attribute_search_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Attribute Search attribute name ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_header_attribute_search_attribute_name',
'label' => esc_attr__( 'Attribute Name', 'ignavo-core' ),
'description' => esc_attr__( 'You can separate the attributes with comma.', 'ignavo-core' ),
'section' => 'ignavo_header_attribute_search_section',
'default' => '',
'required' => array(
array(
'setting' => 'ignavo_header_attribute_search_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Canvas Menu Contact Box ======*/
new \Kirki\Field\Repeater(
array(
'settings' => 'ignavo_canvas_menu_contact_box',
'label' => esc_attr__( 'Contact Box', 'ignavo-core' ),
'description' => esc_attr__( 'You can set the contact box.', 'ignavo-core' ),
'section' => 'ignavo_canvas_menu_section',
'fields' => array(
'menu_contact_box_image' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
'menu_contact_box_title' => array(
'type' => 'text',
'label' => esc_attr__( ' Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a text.', 'ignavo-core' ),
),
'menu_contact_box_subtitle' => array(
'type' => 'textarea',
'label' => esc_attr__( 'Subtitle', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a text.', 'ignavo-core' ),
),
),
)
);
/*====== PreLoader Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_preloader',
'label' => esc_attr__( 'Enable Loader', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the loader.', 'ignavo-core' ),
'section' => 'ignavo_header_preloader_section',
'default' => '0',
)
);
/*====== Header 1 Style ================*/
/*====== Header 1 Top Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#eff4f7',
'settings' => 'ignavo_header1_top_bg_color',
'label' => esc_attr__( 'Header Top Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Top Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#515d64',
'settings' => 'ignavo_header1_top_font_color',
'label' => esc_attr__( 'Header Top Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Top Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header1_top_font_hvrcolor',
'label' => esc_attr__( 'Header Top Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for hover color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Top Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header1_top_sub_font_color',
'label' => esc_attr__( 'Header Top Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Top Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header1_top_sub_font_hvrcolor',
'label' => esc_attr__( 'Header Top Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Top Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#dee6eb',
'settings' => 'ignavo_header1_top_border_color',
'label' => esc_attr__( 'Header Top Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#eff4f7',
'settings' => 'ignavo_header1_main_bg_color',
'label' => esc_attr__( 'Header Main Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header1_main_border_color',
'label' => esc_attr__( 'Header Main Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Icon Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#314350',
'settings' => 'ignavo_header1_main_icon_color',
'label' => esc_attr__( 'Header Main Icon Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Icon Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e2eaed',
'settings' => 'ignavo_header1_main_icon_bg_color',
'label' => esc_attr__( 'Header Main Icon Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Icon Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#d4dee2',
'settings' => 'ignavo_header1_main_icon_border_color',
'label' => esc_attr__( 'Header Main Icon Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Icon Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#314350',
'settings' => 'ignavo_header1_main_icon_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Icon Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header1_main_icon_bg_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Main Icon Border Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#cad0d2',
'settings' => 'ignavo_header1_main_icon_border_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Border Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Bottom Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header1_bottom_bg_color',
'label' => esc_attr__( 'Header Bottom Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Bottom Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header1_bottom_border_color',
'label' => esc_attr__( 'Header Bottom Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header1 Bottom Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header1_bottom_font_color',
'label' => esc_attr__( 'Header Bottom Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header1 Bottom Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header1_bottom_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 1 Bottom Submenu Header Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(100, 116, 139, 1)',
'settings' => 'ignavo_header1_bottom_submenu_header_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Header Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header1 Bottom Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header1_bottom_submenu_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header1 Bottom Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header1_bottom_submenu_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header1_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Style ================*/
/*====== Header 2 Top Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header2_top_bg_color',
'label' => esc_attr__( 'Header Top Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Top Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header2_top_font_color',
'label' => esc_attr__( 'Header Top Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Top Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header2_top_font_hvrcolor',
'label' => esc_attr__( 'Header Top Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for hover color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Top Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header2_top_sub_font_color',
'label' => esc_attr__( 'Header Top Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Top Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header2_top_sub_font_hvrcolor',
'label' => esc_attr__( 'Header Top Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Top Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#127cca',
'settings' => 'ignavo_header2_top_border_color',
'label' => esc_attr__( 'Header Top Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header2_main_bg_color',
'label' => esc_attr__( 'Header Main Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header2_main_border_color',
'label' => esc_attr__( 'Header Main Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Icon Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header2_main_icon_color',
'label' => esc_attr__( 'Header Main Icon Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Icon Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#1977bb',
'settings' => 'ignavo_header2_main_icon_bg_color',
'label' => esc_attr__( 'Header Main Icon Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Icon Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#288ed8',
'settings' => 'ignavo_header2_main_icon_border_color',
'label' => esc_attr__( 'Header Main Icon Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Icon Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header2_main_icon_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Icon Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#2382c7',
'settings' => 'ignavo_header2_main_icon_bg_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Main Icon Border Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#288ed8',
'settings' => 'ignavo_header2_main_icon_border_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Border Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Bottom Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header2_bottom_bg_color',
'label' => esc_attr__( 'Header Bottom Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Bottom Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header2_bottom_border_color',
'label' => esc_attr__( 'Header Bottom Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Bottom Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header2_bottom_font_color',
'label' => esc_attr__( 'Header Bottom Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Bottom Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header2_bottom_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Bottom Submenu Header Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(100, 116, 139, 1)',
'settings' => 'ignavo_header2_bottom_submenu_header_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Header Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Bottom Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header2_bottom_submenu_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 2 Bottom Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header2_bottom_submenu_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header2_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Style ================*/
/*====== Header 3 Top Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(223, 0, 36, 1)',
'settings' => 'ignavo_header3_top_bg_color',
'label' => esc_attr__( 'Header Top Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Top Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(255, 255, 255, 1)',
'settings' => 'ignavo_header3_top_font_color',
'label' => esc_attr__( 'Header Top Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Top Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(255, 255, 255, 1)',
'settings' => 'ignavo_header3_top_font_hvrcolor',
'label' => esc_attr__( 'Header Top Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for hover color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Top Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header3_top_sub_font_color',
'label' => esc_attr__( 'Header Top Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Top Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header3_top_sub_font_hvrcolor',
'label' => esc_attr__( 'Header Top Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Top Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e35c71',
'settings' => 'ignavo_header3_top_border_color',
'label' => esc_attr__( 'Header Top Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(223, 0, 36, 1)',
'settings' => 'ignavo_header3_main_bg_color',
'label' => esc_attr__( 'Header Main Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header3_main_border_color',
'label' => esc_attr__( 'Header Main Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Icon Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header3_main_icon_color',
'label' => esc_attr__( 'Header Main Icon Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Icon Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#c80525',
'settings' => 'ignavo_header3_main_icon_bg_color',
'label' => esc_attr__( 'Header Main Icon Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Icon Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#b90522',
'settings' => 'ignavo_header3_main_icon_border_color',
'label' => esc_attr__( 'Header Main Icon Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Icon Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header3_main_icon_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Icon Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#bf0423',
'settings' => 'ignavo_header3_main_icon_bg_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Main Icon Border Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#b90522',
'settings' => 'ignavo_header3_main_icon_border_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Border Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Bottom Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header3_bottom_bg_color',
'label' => esc_attr__( 'Header Bottom Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Bottom Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header3_bottom_border_color',
'label' => esc_attr__( 'Header Bottom Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Bottom Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header3_bottom_font_color',
'label' => esc_attr__( 'Header Bottom Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Bottom Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header3_bottom_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Bottom Submenu Header Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(100, 116, 139, 1)',
'settings' => 'ignavo_header3_bottom_submenu_header_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Header Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Bottom Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header3_bottom_submenu_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 3 Bottom Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header3_bottom_submenu_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header3_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Style ================*/
/*====== Header 4 Top Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(2, 6, 23, 1)',
'settings' => 'ignavo_header4_top_bg_color',
'label' => esc_attr__( 'Header Top Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Top Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(203, 213, 225, 1)',
'settings' => 'ignavo_header4_top_font_color',
'label' => esc_attr__( 'Header Top Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Top Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(255, 255, 255, 1)',
'settings' => 'ignavo_header4_top_font_hvrcolor',
'label' => esc_attr__( 'Header Top Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for hover color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Top Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header4_top_sub_font_color',
'label' => esc_attr__( 'Header Top Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Top Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header4_top_sub_font_hvrcolor',
'label' => esc_attr__( 'Header Top Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Top Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(30, 41, 59, 1)',
'settings' => 'ignavo_header4_top_border_color',
'label' => esc_attr__( 'Header Top Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(2, 6, 23, 1)',
'settings' => 'ignavo_header4_main_bg_color',
'label' => esc_attr__( 'Header Main Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(30, 41, 59, 1)',
'settings' => 'ignavo_header4_main_border_color',
'label' => esc_attr__( 'Header Main Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Icon Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header4_main_icon_color',
'label' => esc_attr__( 'Header Main Icon Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Icon Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(30, 41, 59, 1)',
'settings' => 'ignavo_header4_main_icon_bg_color',
'label' => esc_attr__( 'Header Main Icon Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Icon Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(51, 65, 85, 1)',
'settings' => 'ignavo_header4_main_icon_border_color',
'label' => esc_attr__( 'Header Main Icon Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Icon Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header4_main_icon_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Icon Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(51, 65, 85, 1)',
'settings' => 'ignavo_header4_main_icon_bg_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Main Icon Border Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(51, 65, 85, 1)',
'settings' => 'ignavo_header4_main_icon_border_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Border Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Bottom Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header4_bottom_bg_color',
'label' => esc_attr__( 'Header Bottom Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Bottom Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header4_bottom_border_color',
'label' => esc_attr__( 'Header Bottom Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Bottom Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header4_bottom_font_color',
'label' => esc_attr__( 'Header Bottom Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Bottom Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header4_bottom_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Bottom Submenu Header Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(100, 116, 139, 1)',
'settings' => 'ignavo_header4_bottom_submenu_header_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Header Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Bottom Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header4_bottom_submenu_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 4 Bottom Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header4_bottom_submenu_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header4_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Style ================*/
/*====== Header 5 Top Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#eff4f7',
'settings' => 'ignavo_header5_top_bg_color',
'label' => esc_attr__( 'Header Top Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Top Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#515d64',
'settings' => 'ignavo_header5_top_font_color',
'label' => esc_attr__( 'Header Top Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Top Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header5_top_font_hvrcolor',
'label' => esc_attr__( 'Header Top Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for hover color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Top Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header5_top_sub_font_color',
'label' => esc_attr__( 'Header Top Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Top Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header5_top_sub_font_hvrcolor',
'label' => esc_attr__( 'Header Top Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Top Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#dee6eb',
'settings' => 'ignavo_header5_top_border_color',
'label' => esc_attr__( 'Header Top Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(255, 255, 255, 1)',
'settings' => 'ignavo_header5_main_bg_color',
'label' => esc_attr__( 'Header Main Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(226, 232, 240, 1)',
'settings' => 'ignavo_header5_main_border_color',
'label' => esc_attr__( 'Header Main Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Icon Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#314350',
'settings' => 'ignavo_header5_main_icon_color',
'label' => esc_attr__( 'Header Main Icon Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Icon Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(248, 250, 252, 1)',
'settings' => 'ignavo_header5_main_icon_bg_color',
'label' => esc_attr__( 'Header Main Icon Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Icon Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(226, 232, 240, 1)',
'settings' => 'ignavo_header5_main_icon_border_color',
'label' => esc_attr__( 'Header Main Icon Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Icon Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#314350',
'settings' => 'ignavo_header5_main_icon_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Icon Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(241, 245, 249, 1)',
'settings' => 'ignavo_header5_main_icon_bg_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Main Icon Border Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(226, 232, 240, 1)',
'settings' => 'ignavo_header5_main_icon_border_hvrcolor',
'label' => esc_attr__( 'Header Main Icon Border Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Bottom Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_header5_bottom_bg_color',
'label' => esc_attr__( 'Header Bottom Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Bottom Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_header5_bottom_border_color',
'label' => esc_attr__( 'Header Bottom Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Bottom Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header5_bottom_font_color',
'label' => esc_attr__( 'Header Bottom Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Bottom Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header5_bottom_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Bottom Submenu Header Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(100, 116, 139, 1)',
'settings' => 'ignavo_header5_bottom_submenu_header_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Header Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Bottom Submenu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000',
'settings' => 'ignavo_header5_bottom_submenu_font_color',
'label' => esc_attr__( 'Header Bottom Submenu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Header 5 Bottom Submenu Font Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(0, 103, 178, 1)',
'settings' => 'ignavo_header5_bottom_submenu_font_hvrcolor',
'label' => esc_attr__( 'Header Bottom Submenu Font Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_header5_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Mobile Bottom Menu Style ========*/
/*====== Mobile Bottom Menu Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_mobile_bottom_menu_bg_color',
'label' => esc_attr__( 'Mobile Bottom Menu Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mobile_bottom_menu_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Mobile Bottom Menu Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(226, 232, 240, 1)',
'settings' => 'ignavo_mobile_bottom_menu_border_color',
'label' => esc_attr__( 'Mobile Bottom Menu Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mobile_bottom_menu_style_section',
)
);
/*====== Mobile Bottom Menu Icon Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000000',
'settings' => 'ignavo_mobile_bottom_menu_icon_color',
'label' => esc_attr__( 'Mobile Bottom Menu Icon Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mobile_bottom_menu_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Mobile Bottom Menu Font Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgb(148, 163, 184, 1)',
'settings' => 'ignavo_mobile_bottom_menu_font_color',
'label' => esc_attr__( 'Mobile Bottom Menu Font Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mobile_bottom_menu_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Mini Cart Style Settings =======================================================*/
/*====== View cart Button Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 103, 178, 1)',
'settings' => 'ignavo_mini_cart_view_cart_button_bg_color',
'label' => esc_attr__( 'View cart Button Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== View cart Button Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 103, 178, 0.87)',
'settings' => 'ignavo_mini_cart_view_cart_button_bg_hvrcolor',
'label' => esc_attr__( 'View cart Button Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== View cart Button Text Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#FFFFFF',
'settings' => 'ignavo_mini_cart_view_cart_button_text_color',
'label' => esc_attr__( 'View cart Button Text Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== View cart Button Text Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#FFFFFF',
'settings' => 'ignavo_mini_cart_view_cart_button_text_hvrcolor',
'label' => esc_attr__( 'View cart Button Text Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Checkout Button Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(226, 232, 240, 1)',
'settings' => 'ignavo_mini_cart_checkout_button_bg_color',
'label' => esc_attr__( 'Checkout Button Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Checkout Button Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(226, 232, 240, 0.87)',
'settings' => 'ignavo_mini_cart_checkout_button_bg_hvrcolor',
'label' => esc_attr__( 'Checkout Button Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Checkout Button Text Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(30, 41, 59, 1)',
'settings' => 'ignavo_mini_cart_checkout_button_text_color',
'label' => esc_attr__( 'Checkout Button Text Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Checkout Button Text Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(30, 41, 59, 1)',
'settings' => 'ignavo_mini_cart_checkout_button_text_hvrcolor',
'label' => esc_attr__( 'Checkout Button Text Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_mini_cart_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== SHOP ====================================================================================*/
/*====== Shop Panels ======*/
Kirki::add_panel (
'ignavo_shop_panel',
array(
'title' => esc_html__( 'Shop Settings', 'ignavo-core' ),
'description' => esc_html__( 'You can customize the shop from this panel.', 'ignavo-core' ),
)
);
$sections = array (
'shop_general' => array(
esc_attr__( 'General', 'ignavo-core' ),
esc_attr__( 'You can customize shop settings.', 'ignavo-core' )
),
'shop_product_box' => array(
esc_attr__( 'Product Box', 'ignavo-core' ),
esc_attr__( 'You can customize the product box settings.', 'ignavo-core' )
),
'shop_single' => array(
esc_attr__( 'Product Detail', 'ignavo-core' ),
esc_attr__( 'You can customize the product single settings.', 'ignavo-core' )
),
'shop_single_imagebox' => array(
esc_attr__( 'Product Detail Image Box', 'ignavo-core' ),
esc_attr__( 'You can customize the product single image box settings.', 'ignavo-core' )
),
'my_account' => array(
esc_attr__( 'My Account', 'ignavo-core' ),
esc_attr__( 'You can customize the my account page.', 'ignavo-core' )
),
'free_shipping_bar' => array(
esc_attr__( 'Free Shipping Bar ', 'ignavo-core' ),
esc_attr__( 'You can customize the free shipping bar settings.', 'ignavo-core' )
),
'wishlist' => array(
esc_attr__( 'Wishlist', 'ignavo-core' ),
esc_attr__( 'You can customize the wishlist settings.', 'ignavo-core' )
),
'compare' => array(
esc_attr__( 'Compare', 'ignavo-core' ),
esc_attr__( 'You can customize the compare settings.', 'ignavo-core' )
),
'shop_single_style' => array(
esc_attr__( 'Product Detail Style', 'ignavo-core' ),
esc_attr__( 'You can customize the product single style settings.', 'ignavo-core' )
),
);
foreach ( $sections as $section_id => $section ) {
$section_args = array(
'title' => $section[0],
'description' => $section[1],
'panel' => 'ignavo_shop_panel',
);
if ( isset( $section[2] ) ) {
$section_args['type'] = $section[2];
}
Kirki::add_section( 'ignavo_' . str_replace( '-', '_', $section_id ) . '_section', $section_args );
}
/*====== Shop Layouts ======*/
ignavo_customizer_add_field (
array(
'type' => 'radio-buttonset',
'settings' => 'ignavo_shop_layout',
'label' => esc_attr__( 'Layout', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose a layout for the shop.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => 'left-sidebar',
'choices' => array(
'left-sidebar' => esc_attr__( 'Left Sidebar', 'ignavo-core' ),
'full-width' => esc_attr__( 'Full Width', 'ignavo-core' ),
'right-sidebar' => esc_attr__( 'Right Sidebar', 'ignavo-core' ),
),
)
);
/*====== Shop Width ======*/
ignavo_customizer_add_field (
array(
'type' => 'radio-buttonset',
'settings' => 'ignavo_shop_width',
'label' => esc_attr__( 'Shop Page Width', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose a layout for the shop page.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => 'boxed',
'choices' => array(
'boxed' => esc_attr__( 'Boxed', 'ignavo-core' ),
'wide' => esc_attr__( 'Wide', 'ignavo-core' ),
),
)
);
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_paginate_type',
'label' => esc_html__( 'Pagination Type', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => 'default',
'priority' => 10,
'choices' => array(
'default' => esc_attr__( 'Default', 'ignavo-core' ),
'loadmore' => esc_attr__( 'Load More', 'ignavo-core' ),
'infinite' => esc_attr__( 'Infinite', 'ignavo-core' ),
),
)
);
/*====== Ajax on Shop Page ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_ajax_on_shop',
'label' => esc_attr__( 'Ajax on Shop Page', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable Ajax for the shop page.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Grid-List Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_grid_list_view',
'label' => esc_attr__( 'Grid List View', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable grid list view on shop page.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Atrribute Swatches ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_attribute_swatches',
'label' => esc_attr__( 'Attribute Swatches', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the attribute types (Color - Button - Images).', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Perpage Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_perpage_view',
'label' => esc_attr__( 'Perpage View', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable perpage view on shop page.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Atrribute Swatches ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_attribute_swatches',
'label' => esc_attr__( 'Attribute Swatches', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the attribute types (Color - Button - Images).', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Ajax Notice Shop ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_shop_notice_ajax_addtocart',
'label' => esc_attr__( 'Added to Cart Ajax Notice', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the ajax notice feature.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Product Badge Tab ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_badge_tab',
'label' => esc_attr__( 'Product Badge Tab', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the product badge tab.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Remove All Button ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_remove_all_button',
'label' => esc_attr__( 'Remove All Button in cart page', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the remove all button.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Mobile Bottom Menu======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_mobile_bottom_menu',
'label' => esc_attr__( 'Mobile Bottom Menu', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the bottom menu on mobile.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Mobile Bottom Menu Edit Toggle======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_mobile_bottom_menu_edit_toggle',
'label' => esc_attr__( 'Mobile Bottom Menu Edit', 'ignavo-core' ),
'description' => esc_attr__( 'Edit the mobile bottom menu.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_mobile_bottom_menu',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Mobile Menu Repeater ======*/
new \Kirki\Field\Repeater (
array(
'settings' => 'ignavo_mobile_bottom_menu_edit',
'label' => esc_attr__( 'Mobile Bottom Menu Edit', 'ignavo-core' ),
'description' => esc_attr__( 'Edit the mobile bottom menu.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'required' => array(
array(
'setting' => 'ignavo_mobile_bottom_menu_edit_toggle',
'operator' => '==',
'value' => '1',
),
),
'fields' => array(
'mobile_menu_type' => array(
'type' => 'select',
'label' => esc_attr__( 'Select Type', 'ignavo-core' ),
'description' => esc_attr__( 'You can select a type', 'ignavo-core' ),
'default' => 'default',
'choices' => array(
'default' => esc_attr__( 'Default', 'ignavo-core' ),
'search' => esc_attr__( 'Search', 'ignavo-core' ),
'filter' => esc_attr__( 'Filter', 'ignavo-core' ),
'category' => esc_attr__( 'category', 'ignavo-core' ),
),
),
'mobile_menu_img' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
'mobile_menu_text' => array(
'type' => 'text',
'label' => esc_attr__( ' Text', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a text.', 'ignavo-core' ),
),
'mobile_menu_url' => array(
'type' => 'text',
'label' => esc_attr__( 'URL', 'ignavo-core' ),
'description' => esc_attr__( 'You can set url for the item.', 'ignavo-core' ),
),
),
)
);
/*====== Product Stock Quantity ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_stock_quantity',
'label' => esc_attr__( 'Show Stock Quantity', 'ignavo-core' ),
'description' => esc_attr__( 'Show stock quantity on the label.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Product Min/Max Quantity ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_min_max_quantity',
'label' => esc_attr__( 'Min/Max Quantity', 'ignavo-core' ),
'description' => esc_attr__( 'Enable the additional quantity setting fields in product detail page.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Category Description ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_category_description_after_content',
'label' => esc_attr__( 'Category Desc After Content', 'ignavo-core' ),
'description' => esc_attr__( 'Add the category description after the products.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Catalog Mode - Disable Add to Cart ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_catalog_mode',
'label' => esc_attr__( 'Catalog Mode', 'ignavo-core' ),
'description' => esc_attr__( 'Disable Add to Cart button on the shop page.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Recently Viewed Products ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_recently_viewed_products',
'label' => esc_attr__( 'Recently Viewed Products', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable Recently Viewed Products.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Recently Viewed Products Coulmn ======*/
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_recently_viewed_products_column',
'label' => esc_html__( 'Recently Viewed Products Column', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '4',
'priority' => 10,
'choices' => array(
'6' => esc_attr__( '6', 'ignavo-core' ),
'5' => esc_attr__( '5', 'ignavo-core' ),
'4' => esc_attr__( '4', 'ignavo-core' ),
'3' => esc_attr__( '3', 'ignavo-core' ),
'2' => esc_attr__( '2', 'ignavo-core' ),
),
'required' => array(
array(
'setting' => 'ignavo_recently_viewed_products',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Min Order Amount ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_min_order_amount_toggle',
'label' => esc_attr__( 'Min Order Amount', 'ignavo-core' ),
'description' => esc_attr__( 'Enable Min Order Amount.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '0',
)
);
/*====== Min Order Amount Value ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_min_order_amount_value',
'label' => esc_attr__( 'Min Order Value', 'ignavo-core' ),
'description' => esc_attr__( 'Set amount to specify a minimum order value.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => '',
'required' => array(
array(
'setting' => 'ignavo_min_order_amount_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Product Image Size ======*/
ignavo_customizer_add_field (
array(
'type' => 'dimensions',
'settings' => 'ignavo_product_image_size',
'label' => esc_attr__( 'Product Image Size', 'ignavo-core' ),
'description' => esc_attr__( 'You can set size of the product image for the shop page.', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => array(
'width' => '',
'height' => '',
),
)
);
/*====== Shop Categories Widget Type ======*/
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_shop_categories_widget_type',
'label' => esc_html__( 'Shop Categories Widget Type', 'ignavo-core' ),
'section' => 'ignavo_shop_general_section',
'default' => 'type1',
'priority' => 10,
'choices' => array(
'type1' => esc_attr__( 'Type 1', 'ignavo-core' ),
'type2' => esc_attr__( 'Type 2', 'ignavo-core' ),
),
)
);
/*====== Product Box Type ======*/
ignavo_customizer_add_field(
array (
'type' => 'select',
'settings' => 'ignavo_product_box_type',
'label' => esc_html__( 'Shop Product Box Type', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => 'type1',
'priority' => 10,
'choices' => array(
'type1' => esc_attr__( 'Type 1', 'ignavo-core' ),
'type2' => esc_attr__( 'Type 2', 'ignavo-core' ),
'type3' => esc_attr__( 'Type 3', 'ignavo-core' ),
'type4' => esc_attr__( 'Type 4', 'ignavo-core' ),
),
)
);
/*====== Product Box Gallery Type ======*/
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_product_box_gallery',
'label' => esc_html__( 'Product Gallery Type', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => 'type1',
'priority' => 10,
'choices' => array(
'default' => esc_attr__( 'Default', 'ignavo-core' ),
'flip' => esc_attr__( 'Flip', 'ignavo-core' ),
'slider' => esc_attr__( 'Slider', 'ignavo-core' ),
'zoom' => esc_attr__( 'Zoom', 'ignavo-core' ),
),
)
);
/*====== Quick View Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_quick_view_button',
'label' => esc_attr__( 'Quick View Button', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the quick view button.', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Shipping Class ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_shipping_class',
'label' => esc_attr__( 'Shipping Classes', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the shipping class on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Product Box Type ======*/
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_product_box_shipping_class_type',
'label' => esc_html__( 'Shipping Class Type', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => 'default',
'priority' => 10,
'choices' => array(
'default' => esc_attr__( 'Default', 'ignavo-core' ),
'bordered' => esc_attr__( 'Bordered', 'ignavo-core' ),
),
'required' => array(
array(
'setting' => 'ignavo_product_box_shipping_class',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Stock Status ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_stock_status',
'label' => esc_attr__( 'Stock Status', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the stock statu on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Poor Stock Status ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_poor_stock',
'label' => esc_attr__( 'Poor Stock', 'ignavo-core' ),
'description' => esc_attr__( 'Show quantity remaining in stock when low e.g. "Only 9 left in stock"', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_product_box_stock_status',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Stock Progress Bar ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_stock_progress_bar',
'label' => esc_attr__( 'Stock Progress Bar', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the stock progress bar on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Countdown ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_countdown',
'label' => esc_attr__( 'Countdown', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the countdown on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Product SKU ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_sku',
'label' => esc_attr__( 'Product SKU', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the sku on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Product Attributes ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_attributes',
'label' => esc_attr__( 'Product Attributes', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the attributes on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Product Variable ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_variable',
'label' => esc_attr__( 'Product Variable', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the variable on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Product Brands ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_product_box_brands',
'label' => esc_attr__( 'Product Brands', 'ignavo-core' ),
'description' => esc_attr__( 'Enable or Disable the brands on the product box', 'ignavo-core' ),
'section' => 'ignavo_shop_product_box_section',
'default' => '0',
)
);
/*====== Shop Single Gallery Type ======*/
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_single_gallery_type',
'label' => esc_html__( 'Gallery Type (Product Detail)', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => 'horizontal',
'priority' => 10,
'choices' => array(
'horizontal' => esc_attr__( 'Horizontal', 'ignavo-core' ),
'vertical' => esc_attr__( 'Vertical', 'ignavo-core' ),
'1column' => esc_attr__( '1column', 'ignavo-core' ),
'2columns' => esc_attr__( '2columns', 'ignavo-core' ),
'carousel2columns' => esc_attr__( 'Carousel 2columns', 'ignavo-core' ),
),
)
);
/*====== Shop Single Product Tab Type ======*/
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_single_product_tab_type',
'label' => esc_html__( 'Product Tab Type', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => 'horizontal_tab',
'priority' => 10,
'choices' => array(
'horizontal_tab' => esc_attr__( 'Horizontal Tab', 'ignavo-core' ),
'vertical_tab' => esc_attr__( 'Vertical Tab', 'ignavo-core' ),
'accordion_tab' => esc_attr__( 'Accordion Tab', 'ignavo-core' ),
'accordion_tab_content' => esc_attr__( 'Accordion Tab Content', 'ignavo-core' ),
),
)
);
/*====== Shop Single Full width ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_single_full_width',
'label' => esc_attr__( 'Full Width', 'ignavo-core' ),
'description' => esc_attr__( 'Stretch the single product page content.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Shop Single Image Zoom ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_single_image_zoom',
'label' => esc_attr__( 'Image Zoom', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the zoom feature.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Comment by Rating ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_comment_rating',
'label' => esc_attr__( 'Comment Rating', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the review slot.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Product360 View ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_shop_single_product360',
'label' => esc_attr__( 'Product360 View', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable Product 360 View.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Shop Single Ajax Add To Cart ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_shop_single_ajax_addtocart',
'label' => esc_attr__( 'Ajax Add to Cart', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable ajax add to cart button.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Sticky Single Cart ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_single_sticky_cart',
'label' => esc_attr__( 'Sticky Add to Cart', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable sticky cart button.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Single Sticky Titles ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_single_sticky_titles',
'label' => esc_attr__( 'Sticky Titles', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the sticky titles for desktop.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Mobile Sticky Single Cart ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_mobile_single_sticky_cart',
'label' => esc_attr__( 'Mobile Sticky Add to Cart', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable sticky cart button on mobile.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Buy Now Single ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_shop_single_buy_now',
'label' => esc_attr__( 'Buy Now Button', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable Buy Now button.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Related By Tags ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_related_by_tags',
'label' => esc_attr__( 'Related Products with Tags', 'ignavo-core' ),
'description' => esc_attr__( 'Display the related products by tags.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Order on WhatsApp ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_shop_single_orderonwhatsapp',
'label' => esc_attr__( 'Order on WhatsApp', 'ignavo-core' ),
'description' => esc_attr__( 'Enable the button on the product detail page.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Order on WhatsApp Number======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_shop_single_whatsapp_number',
'label' => esc_attr__( 'WhatsApp Number', 'ignavo-core' ),
'description' => esc_attr__( 'You can add a phone number for order on WhatsApp.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '',
'required' => array(
array(
'setting' => 'ignavo_shop_single_orderonwhatsapp',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Move Review Tab ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_shop_single_review_tab_move',
'label' => esc_attr__( 'Move Review Tab', 'ignavo-core' ),
'description' => esc_attr__( 'Move the review tab out of tabs', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Request Quote Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_request_quote_button',
'label' => esc_attr__( 'Request Quote Button', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the request quote button.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Request Quote Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_request_quote_title',
'label' => esc_attr__( 'Request Quote Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a title.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => 'Ask a question',
'required' => array(
array(
'setting' => 'ignavo_request_quote_button',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Request Quote Form ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_request_quote_form',
'label' => esc_attr__( 'Select a Request Quote Form', 'ignavo-core' ),
'description' => esc_attr__( 'Select Form to Embed.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '',
'choices' => Kirki\Util\Helper::get_posts(
array(
'post_type' => 'wpcf7_contact_form',
),
),
'required' => array(
array(
'setting' => 'ignavo_request_quote_button',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Product Related Post Column ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_shop_related_post_column',
'label' => esc_attr__( 'Related Post Column', 'ignavo-core' ),
'description' => esc_attr__( 'You can control related post column with this option.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '4',
'choices' => array(
'6' => esc_attr__( '6 Columns', 'ignavo-core' ),
'5' => esc_attr__( '5 Columns', 'ignavo-core' ),
'4' => esc_attr__( '4 Columns', 'ignavo-core' ),
'3' => esc_attr__( '3 Columns', 'ignavo-core' ),
'2' => esc_attr__( '2 Columns', 'ignavo-core' ),
),
)
);
/*====== Re-Order Product Detail ======*/
ignavo_customizer_add_field (
array(
'type' => 'sortable',
'settings' => 'ignavo_shop_single_reorder',
'label' => esc_attr__( 'Re-order Product Summary', 'ignavo-core' ),
'description' => esc_attr__( 'Please save the changes and refresh the page once. Live preview is not available for the option.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => [
'woocommerce_template_single_excerpt',
'woocommerce_template_single_price',
'ignavo_people_added_in_cart',
'woocommerce_template_single_add_to_cart',
'ignavo_single_product_extra',
'ignavo_single_product_assistant',
'ignavo_social_share',
'woocommerce_template_single_meta',
'ignavo_single_shipping_class',
],
'choices' => [
'woocommerce_template_single_excerpt' => esc_html__( 'Excerpt', 'ignavo-core' ),
'woocommerce_template_single_price' => esc_html__( 'Price', 'ignavo-core' ),
'ignavo_people_added_in_cart' => esc_html__( 'People Have this in their carts', 'ignavo-core' ),
'woocommerce_template_single_add_to_cart' => esc_html__( 'Add to Cart', 'ignavo-core' ),
'ignavo_single_product_extra' => esc_html__( 'Extra', 'ignavo-core' ),
'ignavo_single_product_assistant' => esc_html__( 'Product Assistant', 'ignavo-core' ),
'ignavo_social_share' => esc_html__( 'Social Share', 'ignavo-core' ),
'woocommerce_template_single_meta' => esc_html__( 'Meta', 'ignavo-core' ),
'ignavo_product_stock_progress_bar' => esc_html__( 'Progress Bar', 'ignavo-core' ),
'ignavo_product_time_countdown' => esc_html__( 'Time Countdown', 'ignavo-core' ),
'ignavo_single_shipping_class' => esc_html__( 'Shipping Class Name', 'ignavo-core' ),
],
)
);
/*====== Shop Single Extra ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_single_extra',
'label' => esc_attr__( 'Extra', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the extra list.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
'priority' => 12,
)
);
/*====== Shop Single Extra ======*/
new \Kirki\Field\Repeater(
array(
'settings' => 'ignavo_single_products_extra',
'label' => esc_attr__( 'Product Extra', 'ignavo-core' ),
'description' => esc_attr__( 'You can create the extra list.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'priority' => 13,
'row_label' => array (
'type' => 'field',
'field' => 'link_text',
),
'required' => array(
array(
'setting' => 'ignavo_single_extra',
'operator' => '==',
'value' => '1',
),
),
'fields' => array(
'extra_image' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
'extra_title' => array(
'type' => 'textarea',
'label' => esc_attr__( 'Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a title.', 'ignavo-core' ),
),
),
)
);
/*====== Shop Single Product Assistant ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_single_assistant',
'label' => esc_attr__( 'Product Assistant', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable product assistant buttons.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
'priority' => 14,
)
);
/*====== Shop Single Product Assistant Image ======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_single_assistant_image',
'label' => esc_attr__( 'Product Assistant Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'priority' => 14,
'choices' => array(
'save_as' => 'id',
),
'required' => array(
array(
'setting' => 'ignavo_single_assistant',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Shop Single Product Assistant Url ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_single_assistant_url',
'label' => esc_attr__( 'Product Assistant Url', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '#',
'priority' => 14,
'required' => array(
array(
'setting' => 'ignavo_single_assistant',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Shop Single Product Assistant Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_single_assistant_title',
'label' => esc_attr__( 'Product Assistant Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a title.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'priority' => 14,
'default' => '',
'required' => array(
array(
'setting' => 'ignavo_single_assistant',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Product Single Assistant Subtitle ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'ignavo_single_assistant_subtitle',
'label' => esc_attr__( 'Product Assistant Subtitle', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a subtitle.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'priority' => 14,
'default' => '',
'required' => array(
array(
'setting' => 'ignavo_single_assistant',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Shop Single Social Share ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_shop_social_share',
'priority' => 15,
'label' => esc_attr__( 'Social Share (Product Detail)', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable social share buttons.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '0',
)
);
/*====== Shop Single Social Share ======*/
ignavo_customizer_add_field (
array(
'type' => 'multicheck',
'settings' => 'ignavo_shop_single_share',
'section' => 'ignavo_shop_single_section',
'priority' => 16,
'default' => array('facebook','twitter', 'pinterest', 'linkedin', 'whatsapp'),
'choices' => [
'facebook' => esc_html__( 'Facebook', 'ignavo-core' ),
'twitter' => esc_html__( 'Twitter', 'ignavo-core' ),
'pinterest' => esc_html__( 'Pinterest', 'ignavo-core' ),
'whatsapp' => esc_html__( 'whatsapp', 'ignavo-core' ),
],
'required' => array(
array(
'setting' => 'ignavo_shop_social_share',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Product Cross Sells Column ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_cross_sells_column',
'label' => esc_attr__( 'Cross Sells Column', 'ignavo-core' ),
'description' => esc_attr__( 'You can control cross sells post column with this option.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '4',
'choices' => array(
'6' => esc_attr__( '6 Columns', 'ignavo-core' ),
'5' => esc_attr__( '5 Columns', 'ignavo-core' ),
'4' => esc_attr__( '4 Columns', 'ignavo-core' ),
'3' => esc_attr__( '3 Columns', 'ignavo-core' ),
'2' => esc_attr__( '2 Columns', 'ignavo-core' ),
),
)
);
/*====== Product Upsell Column ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_upsell_column',
'label' => esc_attr__( 'Upsell Column', 'ignavo-core' ),
'description' => esc_attr__( 'You can control upsell post column with this option.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_section',
'default' => '4',
'choices' => array(
'6' => esc_attr__( '6 Columns', 'ignavo-core' ),
'5' => esc_attr__( '5 Columns', 'ignavo-core' ),
'4' => esc_attr__( '4 Columns', 'ignavo-core' ),
'3' => esc_attr__( '3 Columns', 'ignavo-core' ),
'2' => esc_attr__( '2 Columns', 'ignavo-core' ),
),
)
);
/*====== Shop Single Image box ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_single_imagebox',
'label' => esc_attr__( 'Image Box', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable the image box.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_imagebox_section',
'default' => '0',
)
);
/*====== Shop Single Image box ======*/
new \Kirki\Field\Repeater(
array(
'settings' => 'ignavo_shop_single_imagebox_repeater',
'label' => esc_attr__( 'Image box', 'ignavo-core' ),
'section' => 'ignavo_shop_single_imagebox_section',
'row_label' => array (
'type' => 'field',
'field' => 'link_text',
),
'required' => array(
array(
'setting' => 'ignavo_single_imagebox',
'operator' => '==',
'value' => '1',
),
),
'fields' => array(
'imagebox_image' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
'imagebox_title' => array(
'type' => 'text',
'label' => esc_attr__( 'Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a title.', 'ignavo-core' ),
),
'imagebox_subtitle' => array(
'type' => 'textarea',
'label' => esc_attr__( 'Description', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a description.', 'ignavo-core' ),
),
),
)
);
/*====== My Account Layouts ======*/
ignavo_customizer_add_field (
array(
'type' => 'radio-buttonset',
'settings' => 'ignavo_my_account_layout',
'label' => esc_attr__( 'Layout', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose a layout for the login form.', 'ignavo-core' ),
'section' => 'ignavo_my_account_section',
'default' => 'default',
'choices' => array(
'default' => esc_attr__( 'Default', 'ignavo-core' ),
'logintab' => esc_attr__( 'Login Tab', 'ignavo-core' ),
),
)
);
/*====== Registration Form First Name ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_registration_first_name',
'label' => esc_attr__( 'Register - First Name', 'ignavo-core' ),
'section' => 'ignavo_my_account_section',
'default' => 'hidden',
'choices' => array(
'hidden' => esc_attr__( 'Hidden', 'ignavo-core' ),
'visible' => esc_attr__( 'Visible', 'ignavo-core' ),
),
)
);
/*====== Registration Form Last Name ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_registration_last_name',
'label' => esc_attr__( 'Register - Last Name', 'ignavo-core' ),
'section' => 'ignavo_my_account_section',
'default' => 'hidden',
'choices' => array(
'hidden' => esc_attr__( 'Hidden', 'ignavo-core' ),
'visible' => esc_attr__( 'Visible', 'ignavo-core' ),
),
)
);
/*====== Registration Form Billing Company ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_registration_billing_company',
'label' => esc_attr__( 'Register - Billing Company', 'ignavo-core' ),
'section' => 'ignavo_my_account_section',
'default' => 'hidden',
'choices' => array(
'hidden' => esc_attr__( 'Hidden', 'ignavo-core' ),
'visible' => esc_attr__( 'Visible', 'ignavo-core' ),
),
)
);
/*====== Registration Form Billing Phone ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_registration_billing_phone',
'label' => esc_attr__( 'Register - Billing Phone', 'ignavo-core' ),
'section' => 'ignavo_my_account_section',
'default' => 'hidden',
'choices' => array(
'hidden' => esc_attr__( 'Hidden', 'ignavo-core' ),
'visible' => esc_attr__( 'Visible', 'ignavo-core' ),
),
)
);
/*====== Ajax Login-Register ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_ajax_login_form',
'label' => esc_attr__( 'Activate Ajax for Login Form', 'ignavo-core' ),
'section' => 'ignavo_my_account_section',
'default' => '0',
)
);
/*====== Redirect URL After Login ======*/
ignavo_customizer_add_field (
array(
'type' => 'url',
'settings' => 'ignavo_redirect_url_after_login',
'label' => esc_attr__( 'Redirect URL After Login', 'ignavo-core' ),
'section' => 'ignavo_my_account_section',
'default' => '',
)
);
/*====== Free Shipping Settings =======================================================*/
/*====== Free Shipping ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_free_shipping',
'label' => esc_attr__( 'Free shipping bar', 'ignavo-core' ),
'section' => 'ignavo_free_shipping_bar_section',
'default' => '0',
)
);
/*====== Free Shipping Goal Amount ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'shipping_progress_bar_amount',
'label' => esc_attr__( 'Goal Amount', 'ignavo-core' ),
'description' => esc_attr__( 'Amount to reach 100% defined in your currency absolute value. For example: 300', 'ignavo-core' ),
'section' => 'ignavo_free_shipping_bar_section',
'default' => '100',
'required' => array(
array(
'setting' => 'ignavo_free_shipping',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Free Shipping Location Cart Page ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'shipping_progress_bar_location_card_page',
'label' => esc_attr__( 'Cart page', 'ignavo-core' ),
'section' => 'ignavo_free_shipping_bar_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_free_shipping',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Free Shipping Location Mini cart ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'shipping_progress_bar_location_mini_cart',
'label' => esc_attr__( 'Mini cart', 'ignavo-core' ),
'section' => 'ignavo_free_shipping_bar_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_free_shipping',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Free Shipping Location Checkout page ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'shipping_progress_bar_location_checkout',
'label' => esc_attr__( 'Checkout page', 'ignavo-core' ),
'section' => 'ignavo_free_shipping_bar_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_free_shipping',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Free Shipping Message Initial ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'shipping_progress_bar_message_initial',
'label' => esc_attr__( 'Initial Message', 'ignavo-core' ),
'description' => esc_attr__( 'Message to show before reaching the goal. Use shortcode [remainder] to display the amount left to reach the minimum.', 'ignavo-core' ),
'section' => 'ignavo_free_shipping_bar_section',
'default' => 'Add [remainder] to cart and get free shipping!',
'required' => array(
array(
'setting' => 'ignavo_free_shipping',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Free Shipping Message Success ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'shipping_progress_bar_message_success',
'label' => esc_attr__( 'Success message', 'ignavo-core' ),
'description' => esc_attr__( 'Message to show after reaching 100%.', 'ignavo-core' ),
'section' => 'ignavo_free_shipping_bar_section',
'default' => 'Your order qualifies for free shipping!',
'required' => array(
array(
'setting' => 'ignavo_free_shipping',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Wishlist Settings =======================================================*/
/*====== Wishlist Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_wishlist_button',
'label' => esc_attr__( 'Custom Wishlist Button', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of the wishlist button.', 'ignavo-core' ),
'section' => 'ignavo_wishlist_section',
'default' => '0',
)
);
/*====== Wishlist Page ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_wishlist_page',
'label' => esc_attr__( 'Select a Wishlist Page', 'ignavo-core' ),
'description' => esc_attr__( 'You can select a wishlist page. [klbwl_list]', 'ignavo-core' ),
'section' => 'ignavo_wishlist_section',
'default' => '',
'choices' => Kirki\Util\Helper::get_posts(
array(
'posts_per_page' => 30,
'post_type' => 'page'
) ,
),
'required' => array(
array(
'setting' => 'ignavo_wishlist_button',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Wishlist ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_wishlist',
'label' => esc_attr__( 'Wishlist', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable wishlist on the header.', 'ignavo-core' ),
'section' => 'ignavo_wishlist_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_wishlist_button',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Compare Settings =======================================================*/
/*====== Shop Compare Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_compare_button',
'label' => esc_attr__( 'Compare on Shop', 'ignavo-core' ),
'description' => esc_attr__( 'Activate the compare button on the shop page.', 'ignavo-core' ),
'section' => 'ignavo_compare_section',
'default' => '0',
)
);
/*====== Compare Page ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_compare_page',
'label' => esc_attr__( 'Select a Compare Page', 'ignavo-core' ),
'description' => esc_attr__( 'You can select a compare page. [klbcp_list]', 'ignavo-core' ),
'section' => 'ignavo_compare_section',
'default' => '',
'choices' => Kirki\Util\Helper::get_posts(
array(
'posts_per_page' => 30,
'post_type' => 'page'
) ,
),
'required' => array(
array(
'setting' => 'ignavo_compare_button',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Header Compare ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_header_compare',
'label' => esc_attr__( 'Compare on Header', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable compare on the header.', 'ignavo-core' ),
'section' => 'ignavo_compare_section',
'default' => '0',
'required' => array(
array(
'setting' => 'ignavo_compare_button',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Shop Single Style Settings =======================================================*/
/*====== Shop Single Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_shop_single_bg_color',
'label' => esc_attr__( 'Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Image Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000000',
'settings' => 'ignavo_shop_single_image_border_color',
'label' => esc_attr__( 'Image Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Title Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000000',
'settings' => 'ignavo_shop_single_title_color',
'label' => esc_attr__( 'Title Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Stock Text Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(5, 150, 105, 1)',
'settings' => 'ignavo_shop_single_stock_text_color',
'label' => esc_attr__( 'Stock Text Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Out Of Stock Text Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(244, 63, 94, 1)',
'settings' => 'ignavo_shop_single_out_of_stock_text_color',
'label' => esc_attr__( 'Out Of Stock Text Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Regular Price Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(148, 163, 184, 1)',
'settings' => 'ignavo_shop_single_regular_price_color',
'label' => esc_attr__( 'Regular Price Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Sale Price Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(5, 150, 105, 1)',
'settings' => 'ignavo_shop_single_sale_price_color',
'label' => esc_attr__( 'Sale Price Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single orderon-whatsapp Button Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 103, 178, 1)',
'settings' => 'ignavo_shop_single_whatsapp_button_bg_color',
'label' => esc_attr__( 'Whatsapp Button Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single orderon-whatsapp Button Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 103, 178, 0.87)',
'settings' => 'ignavo_shop_single_whatsapp_button_bg_hvrcolor',
'label' => esc_attr__( 'Whatsapp Button Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single orderon-whatsapp Button Text Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#ffffff',
'settings' => 'ignavo_shop_single_whatsapp_button_text_color',
'label' => esc_attr__( 'Whatsapp Button Text Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single orderon-whatsapp Button Text Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#ffffff',
'settings' => 'ignavo_shop_single_whatsapp_button_text_hvrcolor',
'label' => esc_attr__( 'Whatsapp Button Text Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Description Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#212529',
'settings' => 'ignavo_shop_single_desc_color',
'label' => esc_attr__( 'Description Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Button Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 103, 178, 1)',
'settings' => 'ignavo_shop_single_button_bg_color',
'label' => esc_attr__( 'Button Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Button Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 103, 178, 0.87)',
'settings' => 'ignavo_shop_single_button_bg_hvrcolor',
'label' => esc_attr__( 'Button Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Button Text Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#ffffff',
'settings' => 'ignavo_shop_single_button_text_color',
'label' => esc_attr__( 'Button Text Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Button Text Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#ffffff',
'settings' => 'ignavo_shop_single_button_text_hvrcolor',
'label' => esc_attr__( 'Button Text Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Buy Now Button Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#00000000',
'settings' => 'ignavo_shop_single_buynow_button_bg_color',
'label' => esc_attr__( 'Buy Now Button Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Buy Now Button Background Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 0, 0, 0.87)',
'settings' => 'ignavo_shop_single_buynow_button_bg_hvrcolor',
'label' => esc_attr__( 'Buy Now Button Background Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Buy Now Button Text Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_shop_single_buynow_button_text_color',
'label' => esc_attr__( 'Buy Now Button Text Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Buy Now Button Text Hover Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#ffffff',
'settings' => 'ignavo_shop_single_buynow_button_text_hvrcolor',
'label' => esc_attr__( 'Buy Now Button Text Hover Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Wishlist Title Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000000',
'settings' => 'ignavo_shop_single_wishlist_title_color',
'label' => esc_attr__( 'Wishlist Title Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Shop Single Compare Title Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#000000',
'settings' => 'ignavo_shop_single_compare_title_color',
'label' => esc_attr__( 'Compare Title Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_shop_single_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Blog Settings =======================================================*/
/*====== Layouts ======*/
ignavo_customizer_add_field (
array(
'type' => 'radio-buttonset',
'settings' => 'ignavo_blog_layout',
'label' => esc_attr__( 'Layout', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose a layout.', 'ignavo-core' ),
'section' => 'ignavo_blog_settings_section',
'default' => 'right-sidebar',
'choices' => array(
'left-sidebar' => esc_attr__( 'Left Sidebar', 'ignavo-core' ),
'full-width' => esc_attr__( 'Full Width', 'ignavo-core' ),
'right-sidebar' => esc_attr__( 'Right Sidebar', 'ignavo-core' ),
'grid' => esc_attr__( 'Grid', 'ignavo-core' ),
),
)
);
/*====== Blog Column ======*/
ignavo_customizer_add_field(
array (
'type' => 'radio-buttonset',
'settings' => 'ignavo_blog_grid_layout_column',
'label' => esc_html__( 'Blog Column', 'ignavo-core' ),
'section' => 'ignavo_blog_settings_section',
'default' => '2',
'choices' => array(
'4' => esc_attr__( '4', 'ignavo-core' ),
'3' => esc_attr__( '3', 'ignavo-core' ),
'2' => esc_attr__( '2', 'ignavo-core' ),
),
'required' => array(
array(
'setting' => 'ignavo_blog_layout',
'operator' => '==',
'value' => 'grid',
),
),
)
);
/*====== Breadcrumb Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_blog_breadcrumb',
'label' => esc_attr__( 'Breadcrumb', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable breadcrumb on blog pages.', 'ignavo-core' ),
'section' => 'ignavo_blog_settings_section',
'default' => '0',
)
);
/*====== Breadcrumb Text ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_blog_breadcrumb_title',
'label' => esc_attr__( 'Breadcrumb Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a title for the breadcrumb..', 'ignavo-core' ),
'section' => 'ignavo_blog_settings_section',
'default' => 'Blog',
'required' => array(
array(
'setting' => 'ignavo_blog_breadcrumb',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Main color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(0, 103, 178, 0.1)',
'settings' => 'ignavo_main_color',
'label' => esc_attr__( 'Main Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can customize the main color.', 'ignavo-core' ),
'section' => 'ignavo_main_color_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Secondary Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(223, 0, 36, 0.1)',
'settings' => 'ignavo_secondary_color',
'label' => esc_attr__( 'Secondary Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can customize the secondary color.', 'ignavo-core' ),
'section' => 'ignavo_main_color_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Elementor Templates =======================================================*/
/*====== Before Shop Elementor Templates ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_before_main_shop_elementor_template',
'label' => esc_html__( 'Before Shop Elementor Template', 'ignavo-core' ),
'section' => 'ignavo_elementor_templates_section',
'default' => '',
'placeholder' => esc_html__( 'Select a template from elementor templates ', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
)
);
/*====== After Shop Elementor Templates ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_after_main_shop_elementor_template',
'label' => esc_html__( 'After Shop Elementor Template', 'ignavo-core' ),
'section' => 'ignavo_elementor_templates_section',
'default' => '',
'placeholder' => esc_html__( 'Select a template from elementor templates ', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
)
);
/*====== Before Header Elementor Templates ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_before_main_header_elementor_template',
'label' => esc_html__( 'Before Header Elementor Template', 'ignavo-core' ),
'section' => 'ignavo_elementor_templates_section',
'default' => '',
'placeholder' => esc_html__( 'Select a template from elementor templates, If you want to show any content before products ', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
)
);
/*====== After Header Elementor Templates ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_after_main_header_elementor_template',
'label' => esc_html__( 'After Header Elementor Template', 'ignavo-core' ),
'section' => 'ignavo_elementor_templates_section',
'default' => '',
'placeholder' => esc_html__( 'Select a template from elementor templates ', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
)
);
/*====== Before Footer Elementor Template ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_before_main_footer_elementor_template',
'label' => esc_html__( 'Before Footer Elementor Template', 'ignavo-core' ),
'section' => 'ignavo_elementor_templates_section',
'default' => '',
'placeholder' => esc_html__( 'Select a template from elementor templates, If you want to show any content before products ', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
)
);
/*====== After Footer Elementor Template ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_after_main_footer_elementor_template',
'label' => esc_html__( 'After Footer Elementor Templates', 'ignavo-core' ),
'section' => 'ignavo_elementor_templates_section',
'default' => '',
'placeholder' => esc_html__( 'Select a template from elementor templates, If you want to show any content before products ', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
)
);
/*====== Templates Repeater For each category ======*/
new \Kirki\Field\Repeater (
array(
'settings' => 'ignavo_elementor_template_each_shop_category',
'label' => esc_attr__( 'Template For Categories', 'ignavo-core' ),
'description' => esc_attr__( 'You can set template for each category.', 'ignavo-core' ),
'section' => 'ignavo_elementor_templates_section',
'fields' => array(
'category_id' => array(
'type' => 'select',
'label' => esc_html__( 'Select Category', 'ignavo-core' ),
'description' => esc_html__( 'Set a category', 'ignavo-core' ),
'priority' => 10,
'default' => '',
'choices' => Kirki_Helper::get_terms( array('taxonomy' => 'product_cat') )
),
'ignavo_before_main_shop_elementor_template_category' => array(
'type' => 'select',
'label' => esc_html__( 'Before Shop Elementor Template', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
'default' => '',
'placeholder' => esc_html__( 'Select a template from elementor templates, If you want to show any content before products ', 'ignavo-core' ),
),
'ignavo_after_main_shop_elementor_template_category' => array(
'type' => 'select',
'label' => esc_html__( 'After Shop Elementor Template', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
),
'ignavo_before_main_header_elementor_template_category' => array(
'type' => 'select',
'label' => esc_html__( 'Before Header Elementor Template', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
),
'ignavo_after_main_header_elementor_template_category' => array(
'type' => 'select',
'label' => esc_html__( 'After Header Elementor Template', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
),
'ignavo_before_main_footer_elementor_template_category' => array(
'type' => 'select',
'label' => esc_html__( 'Before Footer Elementor Template', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
),
'ignavo_after_main_footer_elementor_template_category' => array(
'type' => 'select',
'label' => esc_html__( 'After Footer Elementor Template', 'ignavo-core' ),
'choices' => ignavo_get_elementorTemplates('section'),
),
),
)
);
/*====== Map Settings ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_mapapi',
'label' => esc_attr__( 'Google Map Api key', 'ignavo-core' ),
'description' => esc_attr__( 'Add your google map api key', 'ignavo-core' ),
'section' => 'ignavo_map_settings_section',
'default' => '',
)
);
/*====== Ignavo Widgets ======*/
/*====== Widgets Panels ======*/
Kirki::add_panel (
'ignavo_widgets_panel',
array(
'title' => esc_html__( 'Ignavo Widgets', 'ignavo-core' ),
'description' => esc_html__( 'You can customize the ignavo widgets.', 'ignavo-core' ),
)
);
$sections = array (
'social_media' => array(
esc_attr__( 'Social Media', 'ignavo-core' ),
esc_attr__( 'You can customize the social media widget.', 'ignavo-core' )
),
);
foreach ( $sections as $section_id => $section ) {
$section_args = array(
'title' => $section[0],
'description' => $section[1],
'panel' => 'ignavo_widgets_panel',
);
if ( isset( $section[2] ) ) {
$section_args['type'] = $section[2];
}
Kirki::add_section( 'ignavo_' . str_replace( '-', '_', $section_id ) . '_section', $section_args );
}
/*====== Social Media Widget ======*/
new \Kirki\Field\Repeater (
array(
'settings' => 'ignavo_social_media_widget',
'label' => esc_attr__( 'Social Media Widget', 'ignavo-core' ),
'description' => esc_attr__( 'You can set social icons.', 'ignavo-core' ),
'section' => 'ignavo_social_media_section',
'fields' => array(
'social_icon' => array(
'type' => 'text',
'label' => esc_attr__( 'Icon', 'ignavo-core' ),
'description' => esc_attr__( 'You can set an icon. for example; "facebook"', 'ignavo-core' ),
),
'social_url' => array(
'type' => 'text',
'label' => esc_attr__( 'URL', 'ignavo-core' ),
'description' => esc_attr__( 'You can set url for the item.', 'ignavo-core' ),
),
),
)
);
/*====== Footer ======*/
/*====== Footer Panels ======*/
Kirki::add_panel (
'ignavo_footer_panel',
array(
'title' => esc_html__( 'Footer Settings', 'ignavo-core' ),
'description' => esc_html__( 'You can customize the footer from this panel.', 'ignavo-core' ),
)
);
$sections = array (
'footer_subscribe' => array(
esc_attr__( 'Subscribe', 'ignavo-core' ),
esc_attr__( 'You can customize the subscribe area.', 'ignavo-core' )
),
'footer_contact_box' => array(
esc_attr__( 'Footer Contact Box', 'ignavo-core' ),
esc_attr__( 'You can customize the contact box section.', 'ignavo-core' )
),
'footer_general' => array(
esc_attr__( 'Footer General', 'ignavo-core' ),
esc_attr__( 'You can customize the footer settings.', 'ignavo-core' )
),
'footer_style' => array(
esc_attr__( 'Footer Style', 'ignavo-core' ),
esc_attr__( 'You can customize the footer settings.', 'ignavo-core' )
),
);
foreach ( $sections as $section_id => $section ) {
$section_args = array(
'title' => $section[0],
'description' => $section[1],
'panel' => 'ignavo_footer_panel',
);
if ( isset( $section[2] ) ) {
$section_args['type'] = $section[2];
}
Kirki::add_section( 'ignavo_' . str_replace( '-', '_', $section_id ) . '_section', $section_args );
}
/*====== Subcribe Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_footer_subscribe_area',
'label' => esc_attr__( 'Subcribe', 'ignavo-core' ),
'description' => esc_attr__( 'Disable or Enable subscribe section.', 'ignavo-core' ),
'section' => 'ignavo_footer_subscribe_section',
'default' => '0',
)
);
/*====== Subscribe Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'ignavo_footer_subscribe_title',
'label' => esc_attr__( 'Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can set text for subscribe section.', 'ignavo-core' ),
'section' => 'ignavo_footer_subscribe_section',
'default' => 'Join the Ignavo VIP Club!',
'active_callback' => [
[
'setting' => 'ignavo_footer_subscribe_area',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Subscribe Subtitle ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'ignavo_footer_subscribe_subtitle',
'label' => esc_attr__( 'Subtitle', 'ignavo-core' ),
'description' => esc_attr__( 'You can set text for subscribe section.', 'ignavo-core' ),
'section' => 'ignavo_footer_subscribe_section',
'default' => 'Sign Whether you�re welcoming new contacts or sharing the latest news, you can make your business look good in just a few clicks.',
'active_callback' => [
[
'setting' => 'ignavo_footer_subscribe_area',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Subcribe FORM ID======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_footer_subscribe_formid',
'label' => esc_attr__( 'Subscribe Form Id.', 'ignavo-core' ),
'description' => esc_attr__( 'You can find the form id in Dashboard > Mailchimp For Wp > Form.', 'ignavo-core' ),
'section' => 'ignavo_footer_subscribe_section',
'default' => '',
'active_callback' => [
[
'setting' => 'ignavo_footer_subscribe_area',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Footer Contact Box ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_footer_contact_box',
'label' => esc_attr__( 'Contact Box', 'ignavo-core' ),
'section' => 'ignavo_footer_contact_box_section',
'default' => '0',
)
);
/*====== Footer Contact Box Title======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_footer_contact_box_title',
'label' => esc_attr__( 'Contact Box Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a title.', 'ignavo-core' ),
'section' => 'ignavo_footer_contact_box_section',
'default' => 'Contact Us',
'active_callback' => [
[
'setting' => 'ignavo_footer_contact_box',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Contact Box ======*/
new \Kirki\Field\Repeater (
array(
'settings' => 'ignavo_footer_contact_box_repeater',
'label' => esc_attr__( 'Contact Box', 'ignavo-core' ),
'description' => esc_attr__( 'You can create contact box.', 'ignavo-core' ),
'section' => 'ignavo_footer_contact_box_section',
'fields' => array(
'contact_url' => array(
'type' => 'text',
'label' => esc_attr__( 'URL', 'ignavo-core' ),
'description' => esc_attr__( 'set an url for the item.', 'ignavo-core' ),
),
'contact_image' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
'contact_title' => array(
'type' => 'text',
'label' => esc_attr__( 'Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a text.', 'ignavo-core' ),
),
'contact_subtitle' => array(
'type' => 'textarea',
'label' => esc_attr__( 'Subtitle', 'ignavo-core' ),
'description' => esc_attr__( 'You can enter a text.', 'ignavo-core' ),
),
),
'active_callback' => [
[
'setting' => 'ignavo_footer_contact_box',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Logo ======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_footer_logo',
'label' => esc_attr__( 'Footer Logo', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload a logo.', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'choices' => array(
'save_as' => 'id',
),
)
);
/*====== Footer Column ======*/
ignavo_customizer_add_field (
array(
'type' => 'select',
'settings' => 'ignavo_footer_column',
'label' => esc_attr__( 'Footer Column', 'ignavo-core' ),
'description' => esc_attr__( 'You can set footer column.', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'default' => '3columns',
'choices' => array(
'5columns' => esc_attr__( '5 Columns', 'ignavo-core' ),
'4columns' => esc_attr__( '4 Columns', 'ignavo-core' ),
'3columns' => esc_attr__( '3 Columns', 'ignavo-core' ),
),
)
);
/*====== Copyright ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_copyright',
'label' => esc_attr__( 'Copyright', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a copyright text for the footer.', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'default' => '',
)
);
/*====== Back to top ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_scroll_to_top',
'label' => esc_attr__( 'Back To Top Button', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'default' => '0',
)
);
/*====== Payment Image ======*/
new \Kirki\Field\Repeater(
array(
'type' => 'repeater',
'settings' => 'ignavo_footer_payment_repeater',
'label' => esc_attr__( 'Payment Images', 'ignavo-core' ),
'description' => esc_attr__( 'You can set the payment images.', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'fields' => array(
'payment_image' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
),
'required' => array(
array(
'setting' => 'ignavo_footer_payment_image',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== APP Title======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_footer_app_title',
'label' => esc_attr__( 'APP Title', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a title.', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'default' => '',
'priority' => 13,
)
);
/*====== APP Image ======*/
new \Kirki\Field\Repeater(
array(
'settings' => 'ignavo_footer_app_image',
'label' => esc_attr__( 'APP IMAGE', 'ignavo-core' ),
'description' => esc_attr__( 'You can set the app images.', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'priority' => 14,
'fields' => array(
'app_image' => array(
'type' => 'image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
),
'app_url' => array(
'type' => 'text',
'label' => esc_attr__( 'URL', 'ignavo-core' ),
'description' => esc_attr__( 'set an url for the image.', 'ignavo-core' ),
),
),
)
);
/*====== Footer Social List Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_footer_social_list_title',
'label' => esc_attr__( 'Footer Social List Title', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'default' => 'Follow Us:',
'priority' => 15,
)
);
/*====== Footer Social List ======*/
new \Kirki\Field\Repeater(
array(
'settings' => 'ignavo_footer_social_list',
'label' => esc_attr__( 'Social List', 'ignavo-core' ),
'description' => esc_attr__( 'You can set social icons.', 'ignavo-core' ),
'section' => 'ignavo_footer_general_section',
'priority' => 16,
'fields' => array(
'social_icon' => array(
'type' => 'text',
'label' => esc_attr__( 'Icon', 'ignavo-core' ),
'description' => esc_attr__( 'You can set an icon. for example; "klb-social-facebook-f"', 'ignavo-core' ),
),
'social_url' => array(
'type' => 'text',
'label' => esc_attr__( 'URL', 'ignavo-core' ),
'description' => esc_attr__( 'You can set url for the item.', 'ignavo-core' ),
),
),
)
);
/*====== Footer Style =============================*/
/*====== Footer Top Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#eff4f7',
'settings' => 'ignavo_footer_top_bg_color',
'label' => esc_attr__( 'Footer Top Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Footer Top Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#e7ecee',
'settings' => 'ignavo_footer_top_border_color',
'label' => esc_attr__( 'Footer Top Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for Border.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Footer Top Title Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(30, 41, 59, 1)',
'settings' => 'ignavo_footer_top_title_color',
'label' => esc_attr__( 'Footer Top Title Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Footer Top Subtitle Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(100, 116, 139, 1)',
'settings' => 'ignavo_footer_top_subtitle_color',
'label' => esc_attr__( 'Footer Top Subtitle Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Footer Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(15, 23, 42, 1)',
'settings' => 'ignavo_footer_bg_color',
'label' => esc_attr__( 'Footer Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Footer Border Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(30, 41, 59, 1)',
'settings' => 'ignavo_footer_border_color',
'label' => esc_attr__( 'Footer Border Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for border.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Footer Title Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_footer_title_color',
'label' => esc_attr__( 'Footer Title Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
)
);
/*====== Footer Subtitle Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(148, 163, 184, 1)',
'settings' => 'ignavo_footer_subtitle_color',
'label' => esc_attr__( 'Footer Subtitle Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
)
);
/*====== Footer Bottom Icon Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(255, 255, 255, 0.1)',
'settings' => 'ignavo_footer_bottom_icon_bg_color',
'label' => esc_attr__( 'Footer Bottom Icon Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
)
);
/*====== Footer Bottom Icon Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_footer_bottom_icon_color',
'label' => esc_attr__( 'Footer Bottom Icon Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
)
);
/*====== Footer Bottom Title Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(148, 163, 184, 1)',
'settings' => 'ignavo_footer_bottom_title_color',
'label' => esc_attr__( 'Footer Bottom Title Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
)
);
/*====== Footer Copyright Background Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => 'rgba(15, 23, 42, 1)',
'settings' => 'ignavo_footer_copyright_bg_color',
'label' => esc_attr__( 'Footer Copyright Background Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for background.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
'choices' => [
'alpha' => true,
],
)
);
/*====== Footer Copyright Color ======*/
ignavo_customizer_add_field (
array(
'type' => 'color',
'default' => '#fff',
'settings' => 'ignavo_footer_copyright_color',
'label' => esc_attr__( 'Footer Copyright Color', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a color for color.', 'ignavo-core' ),
'section' => 'ignavo_footer_style_section',
)
);
/*====== GDPR Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_gdpr_toggle',
'label' => esc_attr__( 'Enable GDPR', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of GDPR.', 'ignavo-core' ),
'section' => 'ignavo_gdpr_settings_section',
'default' => '0',
)
);
/*====== GDPR Type ======*/
ignavo_customizer_add_field (
array(
'type' => 'radio-buttonset',
'settings' => 'ignavo_gdpr_type',
'label' => esc_attr__( 'GDPR Type', 'ignavo-core' ),
'section' => 'ignavo_gdpr_settings_section',
'default' => 'type1',
'choices' => array(
'type1' => esc_attr__( 'Type 1', 'ignavo-core' ),
'type2' => esc_attr__( 'Type 2', 'ignavo-core' ),
),
'required' => array(
array(
'setting' => 'ignavo_gdpr_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== GDPR Image======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_gdpr_image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
'section' => 'ignavo_gdpr_settings_section',
'choices' => array(
'save_as' => 'id',
),
'active_callback' => [
[
'setting' => 'ignavo_gdpr_toggle',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'ignavo_gdpr_type',
'operator' => '!=',
'value' => 'type2',
]
],
)
);
/*====== GDPR Text ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'ignavo_gdpr_text',
'label' => esc_attr__( 'GDPR Text', 'ignavo-core' ),
'section' => 'ignavo_gdpr_settings_section',
'default' => 'In order to provide you a personalized shopping experience, our site uses cookies. <br><a href="#">cookie policy</a>.',
'required' => array(
array(
'setting' => 'ignavo_gdpr_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== GDPR Expire Date ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_gdpr_expire_date',
'label' => esc_attr__( 'GDPR Expire Date', 'ignavo-core' ),
'section' => 'ignavo_gdpr_settings_section',
'default' => '15',
'required' => array(
array(
'setting' => 'ignavo_gdpr_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== GDPR Button Text ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_gdpr_button_text',
'label' => esc_attr__( 'GDPR Button Text', 'ignavo-core' ),
'section' => 'ignavo_gdpr_settings_section',
'default' => 'Accept Cookies',
'required' => array(
array(
'setting' => 'ignavo_gdpr_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Newsletter Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_newsletter_popup_toggle',
'label' => esc_attr__( 'Enable Newsletter', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of Newsletter Popup.', 'ignavo-core' ),
'section' => 'ignavo_newsletter_settings_section',
'default' => '0',
)
);
/*====== Newsletter Type ======*/
ignavo_customizer_add_field (
array(
'type' => 'radio-buttonset',
'settings' => 'ignavo_newsletter_type',
'label' => esc_attr__( 'Newsletter Type', 'ignavo-core' ),
'section' => 'ignavo_newsletter_settings_section',
'default' => 'type1',
'choices' => array(
'type1' => esc_attr__( 'Type 1', 'ignavo-core' ),
'type2' => esc_attr__( 'Type 2', 'ignavo-core' ),
'type3' => esc_attr__( 'Type 3', 'ignavo-core' ),
),
'required' => array(
array(
'setting' => 'ignavo_newsletter_popup_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Newsletter Image ======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_newsletter_image',
'label' => esc_attr__( 'Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
'section' => 'ignavo_newsletter_settings_section',
'choices' => array(
'save_as' => 'id',
),
'input_attrs' => array( 'class' => 'my_custom_class' ),
'active_callback' => [
[
'setting' => 'ignavo_newsletter_popup_toggle',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'ignavo_newsletter_type',
'operator' => '!=',
'value' => 'type1',
]
],
)
);
/*====== Newsletter Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_newsletter_popup_title',
'label' => esc_attr__( 'Newsletter Title', 'ignavo-core' ),
'section' => 'ignavo_newsletter_settings_section',
'default' => 'Subscribe To Newsletter',
'required' => array(
array(
'setting' => 'ignavo_newsletter_popup_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Newsletter Subtitle ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'ignavo_newsletter_popup_subtitle',
'label' => esc_attr__( 'Newsletter Subtitle', 'ignavo-core' ),
'section' => 'ignavo_newsletter_settings_section',
'default' => 'Subscribe to the Ignavo mailing list to receive updates on new arrivals, special offers and our promotions.',
'required' => array(
array(
'setting' => 'ignavo_newsletter_popup_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Subcribe Popup FORM ID======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_newsletter_popup_formid',
'label' => esc_attr__( 'Newsletter Form Id.', 'ignavo-core' ),
'description' => esc_attr__( 'You can find the form id in Dashboard > Mailchimp For Wp > Form.', 'ignavo-core' ),
'section' => 'ignavo_newsletter_settings_section',
'default' => '',
'required' => array(
array(
'setting' => 'ignavo_newsletter_popup_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Subcribe Popup Expire Date ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_newsletter_popup_expire_date',
'label' => esc_attr__( 'Newsletter Expire Date', 'ignavo-core' ),
'section' => 'ignavo_newsletter_settings_section',
'default' => '15',
'required' => array(
array(
'setting' => 'ignavo_newsletter_popup_toggle',
'operator' => '==',
'value' => '1',
),
),
)
);
/*====== Maintenance Toggle ======*/
ignavo_customizer_add_field (
array(
'type' => 'toggle',
'settings' => 'ignavo_maintenance_toggle',
'label' => esc_attr__( 'Enable Maintenance Mode', 'ignavo-core' ),
'description' => esc_attr__( 'You can choose status of Maintenance.', 'ignavo-core' ),
'section' => 'ignavo_maintenance_settings_section',
'default' => '0',
)
);
/*====== Maintenance Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_maintenance_title',
'label' => esc_attr__( 'Title', 'ignavo-core' ),
'section' => 'ignavo_maintenance_settings_section',
'default' => 'Coming',
'active_callback' => [
[
'setting' => 'ignavo_maintenance_toggle',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Maintenance Second Title ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_maintenance_second_title',
'label' => esc_attr__( 'Second Title', 'ignavo-core' ),
'section' => 'ignavo_maintenance_settings_section',
'default' => 'Soon',
'active_callback' => [
[
'setting' => 'ignavo_maintenance_toggle',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Maintenance Subtitle ======*/
ignavo_customizer_add_field (
array(
'type' => 'textarea',
'settings' => 'ignavo_maintenance_subtitle',
'label' => esc_attr__( 'Subtitle', 'ignavo-core' ),
'section' => 'ignavo_maintenance_settings_section',
'default' => 'Get ready! Something really cool is coming!',
'active_callback' => [
[
'setting' => 'ignavo_maintenance_toggle',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Maintenance Mailchimp FORM ID======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_maintenance_mailchimp_formid',
'label' => esc_attr__( 'Mailchimp Form Id.', 'ignavo-core' ),
'description' => esc_attr__( 'You can find the form id in Dashboard > Mailchimp For Wp > Form.', 'ignavo-core' ),
'section' => 'ignavo_maintenance_settings_section',
'default' => '',
'active_callback' => [
[
'setting' => 'ignavo_maintenance_toggle',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Maintenance Image ======*/
ignavo_customizer_add_field (
array(
'type' => 'image',
'settings' => 'ignavo_maintenance_image',
'label' => esc_attr__( 'Background Image', 'ignavo-core' ),
'description' => esc_attr__( 'You can upload an image.', 'ignavo-core' ),
'section' => 'ignavo_maintenance_settings_section',
'choices' => array(
'save_as' => 'id',
),
'input_attrs' => array( 'class' => 'my_custom_class' ),
'active_callback' => [
[
'setting' => 'ignavo_maintenance_toggle',
'operator' => '==',
'value' => '1',
]
],
)
);
/*====== Body Typography ======*/
ignavo_customizer_add_field (
array(
'type' => 'typography',
'settings' => 'ignavo_body_typography',
'label' => esc_attr__( 'Body Typography', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => [
'font-family' => '"Inter", sans-serif',
'variant' => 'regular',
'font-size' => '16px',
'letter-spacing' => '-0.025em',
'line-height' => '1.6',
],
'priority' => 10,
'transport' => 'auto',
'choices' => [
'fonts' => [
'google' => [],
'families' => [
'custom' => [
'text' => 'Inter Fonts',
'children' => [
[ 'id' => '"Inter", sans-serif', 'text' => 'inter' ],
],
],
],
'variants' => [
'"Inter", sans-serif' => array( '100', '200', '300', 'regular', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', 'italic', '500italic', '600italic', '700italic', '800italic', '900italic' ),
],
],
],
)
);
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator1',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
/*====== Heading Typography h1,h2,h3,h4,h5,h6======*/
ignavo_customizer_add_field (
array(
'type' => 'typography',
'settings' => 'ignavo_heading_typography',
'label' => esc_attr__( 'Heading Typography', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => [
'font-family' => '"Inter", sans-serif',
'variant' => '500',
'letter-spacing' => '-0.02em',
'line-height' => '1.5',
],
'priority' => 10,
'transport' => 'auto',
'choices' => [
'fonts' => [
'google' => [],
'families' => [
'custom' => [
'text' => 'Inter Fonts',
'children' => [
[ 'id' => '"Inter", sans-serif', 'text' => 'inter' ],
],
],
],
'variants' => [
'"Inter", sans-serif' => array( '100', '200', '300', 'regular', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', 'italic', '500italic', '600italic', '700italic', '800italic', '900italic' ),
],
],
],
)
);
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator2',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
/*====== Main Menu Typography======*/
ignavo_customizer_add_field (
array(
'type' => 'typography',
'settings' => 'ignavo_menu_typography',
'label' => esc_attr__( 'Menu Typography', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => [
'font-family' => '"Inter", sans-serif',
'variant' => '600',
'font-size' => '15px',
'letter-spacing' => '-0.025em',
],
'priority' => 10,
'transport' => 'auto',
'choices' => [
'fonts' => [
'google' => [],
'families' => [
'custom' => [
'text' => 'Inter Fonts',
'children' => [
[ 'id' => '"Inter", sans-serif', 'text' => 'inter' ],
],
],
],
'variants' => [
'"Inter", sans-serif' => array( '100', '200', '300', 'regular', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', 'italic', '500italic', '600italic', '700italic', '800italic', '900italic' ),
],
],
],
)
);
// Separator
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator3',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
/*====== Form Typography======*/
ignavo_customizer_add_field (
array(
'type' => 'typography',
'settings' => 'ignavo_form_typography',
'label' => esc_attr__( 'Form Typography', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => [
'font-family' => '"Inter", sans-serif',
'variant' => '500',
'font-size' => '15px',
'letter-spacing' => '-0.02em',
],
'priority' => 10,
'transport' => 'auto',
'choices' => [
'fonts' => [
'google' => [],
'families' => [
'custom' => [
'text' => 'Inter Fonts',
'children' => [
[ 'id' => '"Inter", sans-serif', 'text' => 'inter' ],
],
],
],
'variants' => [
'"Inter", sans-serif' => array( '100', '200', '300', 'regular', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', 'italic', '500italic', '600italic', '700italic', '800italic', '900italic' ),
],
],
],
)
);
// Separator
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator4',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
/*====== Button Typography======*/
ignavo_customizer_add_field (
array(
'type' => 'typography',
'settings' => 'ignavo_button_typography',
'label' => esc_attr__( 'Button Typography', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => [
'font-family' => '"Inter", sans-serif',
'variant' => '600',
'font-size' => '14px',
'letter-spacing' => '-0.02em',
],
'priority' => 10,
'transport' => 'auto',
'choices' => [
'fonts' => [
'google' => [],
'families' => [
'custom' => [
'text' => 'Inter Fonts',
'children' => [
[ 'id' => '"Inter", sans-serif', 'text' => 'inter' ],
],
],
],
'variants' => [
'"Inter", sans-serif' => array( '100', '200', '300', 'regular', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', 'italic', '500italic', '600italic', '700italic', '800italic', '900italic' ),
],
],
],
)
);
// Separator
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator5',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
/*====== Price Typography======*/
ignavo_customizer_add_field (
array(
'type' => 'typography',
'settings' => 'ignavo_price_typography',
'label' => esc_attr__( 'Price Typography', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => [
'font-family' => '"Oswald", sans-serif',
'variant' => '600',
'font-size' => '22px',
'letter-spacing' => '-0.02em',
],
'priority' => 10,
'transport' => 'auto',
'choices' => [
'fonts' => [
'google' => [],
'families' => [
'custom' => [
'text' => 'Oswald Fonts',
'children' => [
[ 'id' => '"Oswald", sans-serif', 'text' => 'oswald' ],
],
],
],
'variants' => [
'"Oswald", sans-serif' => array( '100', '200', '300', 'regular', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', 'italic', '500italic', '600italic', '700italic', '800italic', '900italic' ),
],
],
],
)
);
// Separator
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator6',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
/*====== Product Name Typography======*/
ignavo_customizer_add_field (
array(
'type' => 'typography',
'settings' => 'ignavo_product_name_typography',
'label' => esc_attr__( 'Product Name Typography', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => [
'font-family' => '"Inter", sans-serif',
'variant' => '500',
'font-size' => '14px',
'letter-spacing' => '-0.02em',
],
'priority' => 10,
'transport' => 'auto',
'choices' => [
'fonts' => [
'google' => [],
'families' => [
'custom' => [
'text' => 'Inter Fonts',
'children' => [
[ 'id' => '"Inter", sans-serif', 'text' => 'inter' ],
],
],
],
'variants' => [
'"Inter", sans-serif' => array( '100', '200', '300', 'regular', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', 'italic', '500italic', '600italic', '700italic', '800italic', '900italic' ),
],
],
],
)
);
// Separator
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator7',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_border_radius',
'label' => esc_attr__( 'Border Radius', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => '8px',
)
);
// Separator
ignavo_customizer_add_field ( array(
'type' => 'custom',
'settings' => 'klb_separator8',
'section' => 'ignavo_typography_settings_section',
'default' => '<hr>',
) );
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_site_width',
'label' => esc_attr__( 'Site Width', 'ignavo-core' ),
'section' => 'ignavo_typography_settings_section',
'default' => '1360px',
)
);
/*====== Other Settings =============================*/
/*====== 404 Page ======*/
ignavo_customizer_add_field (
array(
'type' => 'Dropdown_Pages',
'settings' => 'ignavo_404_page',
'label' => esc_attr__( 'Select a 404 Page', 'ignavo-core' ),
'description' => esc_attr__( 'Select a page that will be shown as your default 404 error page.', 'ignavo-core' ),
'section' => 'ignavo_other_settings_section',
'default' => '',
'placeholder' => __( 'Select a page', 'ignavo-core' ),
'choices' => array(
'default' => esc_attr__( 'Select a Page', 'ignavo-core' ),
),
)
);
/*====== Product Search Limit on Elementor ======*/
ignavo_customizer_add_field (
array(
'type' => 'text',
'settings' => 'ignavo_elementor_product_search_limit',
'label' => esc_attr__( 'Elementor Product Search Limit', 'ignavo-core' ),
'description' => esc_attr__( 'You can set a product search limit for Elementor.', 'ignavo-core' ),
'section' => 'ignavo_other_settings_section',
'default' => '100',
)
);