register_section_type( 'Bosa_Customize_Section_Upsell' ); // Register sections. $wp_customize->add_section( new Bosa_Customize_Section_Upsell( $wp_customize, 'theme_upsell', array( 'title' => esc_html__( 'Bosa Pro', 'bosa' ), 'pro_text' => esc_html__( 'Upgrade To Pro', 'bosa' ), 'pro_url' => 'https://bosathemes.com/bosa-pro', 'priority' => 1, ) ) ); } add_action( 'customize_register', 'bosa_customize_register' ); /** * Restructures WooCommerce product catalog customizer options. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function bosa_woocommerce_customizer_structure( $wp_customize ) { if ( class_exists( 'WooCommerce') ) { $wp_customize->get_control( 'woocommerce_shop_page_display' )->priority = '20'; $wp_customize->get_control( 'woocommerce_category_archive_display' )->priority = '30'; $wp_customize->get_control( 'woocommerce_default_catalog_orderby' )->priority = '40'; } } add_action( 'customize_register', 'bosa_woocommerce_customizer_structure', 15 ); /** * Add getting started section for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function bosa_customize_getting_started_register( $wp_customize ) { include_once ABSPATH . 'wp-admin/includes/plugin.php'; // Load custom control functions. require get_template_directory() . '/inc/customizer/getting-started-section.php'; // Register custom section types. if ( !bosa_are_plugin_active() ){ $wp_customize->register_section_type( 'Bosa_Customize_Getting_Started' ); $theme_name = wp_get_theme()->get( 'Name' ); $wp_customize->add_section( new Bosa_Customize_Getting_Started( $wp_customize, 'theme_getting_started', array( 'title' => esc_html__( 'Getting started will install and activate the recommended plugins.', 'bosa' ), 'gs_text' => sprintf( esc_html__( 'Get Started with %s','bosa' ), $theme_name ), 'gs_url' => '#', 'priority' => 2, ) ) ); } } add_action( 'customize_register', 'bosa_customize_getting_started_register' ); /** * Enqueue style for custom customize control. */ add_action( 'customize_controls_enqueue_scripts', 'bosa_custom_customize_enqueue' ); function bosa_custom_customize_enqueue() { wp_enqueue_style( 'bosa-customize-controls', get_template_directory_uri() . '/inc/customizer/customizer.css' ); } /** * Render the site title for the selective refresh partial. * * @return void */ function bosa_customize_partial_blogname() { bloginfo( 'name' ); } /** * Render the site tagline for the selective refresh partial. * * @return void */ function bosa_customize_partial_blogdescription() { bloginfo( 'description' ); } /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function bosa_customize_preview_js() { wp_enqueue_script( 'bosa-customizer', get_template_directory_uri() . '/inc/customizer/customizer.js', array( 'customize-preview' ), '20151215', true ); } add_action( 'customize_preview_init', 'bosa_customize_preview_js' ); function bosa_customize_getting_js() { wp_enqueue_script( 'bosa-customizer-getting-started', get_template_directory_uri() . '/inc/getting-started/getting-started.js', array( 'customize-controls', 'jquery' ), true ); } add_action( 'customize_controls_enqueue_scripts', 'bosa_customize_getting_js' ); /** * Kirki Customizer * * @return void */ add_action( 'init' , 'bosa_kirki_fields' ); function bosa_kirki_fields(){ /** * If kirki is not installed do not run the kirki fields */ if ( !class_exists( 'Kirki' ) ) { return; } Kirki::add_config( 'bosa', array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', ) ); // Site Identity - Title & Tagline Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Logo Image Width', 'bosa' ), 'type' => 'slider', 'settings' => 'logo_width', 'section' => 'title_tagline', 'transport' => 'postMessage', 'priority' => '8', 'default' => 270, 'choices' => array( 'min' => 50, 'max' => 270, 'step' => 5, ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Site Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_site_title', 'section' => 'title_tagline', 'priority' => '10', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Site Tagline', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_site_tagline', 'section' => 'title_tagline', 'priority' => '20', 'default' => false, ) ); // Colors Options Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Body Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_body_text_color', 'section' => 'colors', 'default' => '#333333', 'priority' => '20', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'General Heading Text Color (H1 - H6)', 'bosa' ), 'type' => 'color', 'settings' => 'site_heading_text_color', 'section' => 'colors', 'default' => '#030303', 'priority' => '30', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'General Link Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_general_link_color', 'section' => 'colors', 'default' => '#a6a6a6', 'priority' => '35', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Page and Single Post Title', 'bosa' ), 'type' => 'color', 'settings' => 'header_textcolor', 'section' => 'colors', 'default' => '#101010', 'priority' => '40', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Primary Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_primary_color', 'section' => 'colors', 'default' => '#EB5A3E', 'priority' => '50', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_hover_color', 'section' => 'colors', 'default' => '#086abd', 'priority' => '60', ) ); // Header Options Kirki::add_panel( 'header_options', array( 'title' => esc_html__( 'Header', 'bosa' ), 'priority' => '10', ) ); // Header Style Options Kirki::add_section( 'header_style_options', array( 'title' => esc_html__( 'Style', 'bosa' ), 'panel' => 'header_options', 'capability' => 'edit_theme_options', 'priority' => '30', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Header Layouts', 'bosa' ), 'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa' ), 'type' => 'radio-image', 'settings' => 'header_layout', 'section' => 'header_style_options', 'default' => 'header_one', 'priority' => '40', 'choices' => array( 'header_one' => get_template_directory_uri() . '/assets/images/header-layout-1.png', 'header_two' => get_template_directory_uri() . '/assets/images/header-layout-2.png', 'header_three' => get_template_directory_uri() . '/assets/images/header-layout-3.png', ) ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Top Header Section', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_top_header_section', 'section' => 'header_style_options', 'default' => false, 'priority' => '50', ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'header_two_home_separator', 'section' => 'header_style_options', 'default' => esc_html__( 'Transparent Header Options', 'bosa' ), 'priority' => '60', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), ), ) ); // Header two Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Site Logo', 'bosa' ), 'description' => esc_html__( 'Fully white or light color with image dimensions 320 by 120 pixels is recommended.', 'bosa' ), 'type' => 'image', 'settings' => 'header_separate_logo', 'section' => 'header_style_options', 'default' => '', 'priority' => '70', 'choices' => array( 'save_as' => 'id', ), 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Site Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_title_color_transparent_header', 'section' => 'header_style_options', 'default' => '#ffffff', 'priority' => '80', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'disable_site_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Site Tagline Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_tagline_color_transparent_header', 'section' => 'header_style_options', 'default' => '#e6e6e6', 'priority' => '90', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'disable_site_tagline', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Top Header Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'transparent_header_top_background_color', 'section' => 'header_style_options', 'default' => '', 'priority' => '100', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Top Header Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'transparent_header_top_header_color', 'section' => 'header_style_options', 'default' => '#ffffff', 'priority' => '110', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Top Header Text Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_hover_color_transparent_header', 'section' => 'header_style_options', 'default' => '#086abd', 'priority' => '120', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Bottom Header Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'transparent_header_bottom_background_color', 'section' => 'header_style_options', 'default' => '', 'priority' => '130', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Menu Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'content_color_transparent_header', 'section' => 'header_style_options', 'default' => '#ffffff', 'priority' => '140', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Bottom Header Text Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'content_hover_color_transparent_header', 'section' => 'header_style_options', 'default' => '#086abd', 'priority' => '150', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'header_two_general_separator', 'section' => 'header_style_options', 'default' => esc_html__( 'Non Transparent Header Options', 'bosa' ), 'priority' => '160', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Header Site Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_title_color', 'section' => 'header_style_options', 'default' => '#030303', 'priority' => '170', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'disable_site_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Header Site Tagline Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_tagline_color', 'section' => 'header_style_options', 'default' => '#767676', 'priority' => '180', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'disable_site_tagline', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Top Header Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_header_background_color', 'section' => 'header_style_options', 'default' => '', 'priority' => '190', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Top Header Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_header_text_color', 'section' => 'header_style_options', 'default' => '#333333', 'priority' => '200', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Top Header Text Link Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_header_text_link_hover_color', 'section' => 'header_style_options', 'default' => '#086abd', 'priority' => '210', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Top Header Section Border', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_top_header_border', 'section' => 'header_style_options', 'default' => false, 'priority' => '220', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Mid Header Background Color', 'bosa' ), 'description' => esc_html__( 'It can be used as a transparent background color over image.', 'bosa' ), 'type' => 'color', 'settings' => 'mid_header_background_color', 'section' => 'header_style_options', 'default' => '', 'priority' => '230', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_three' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Mid Header Text Link Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'mid_header_text_link_hover_color', 'section' => 'header_style_options', 'default' => '#086abd', 'priority' => '240', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_three' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Mid Header Section Border', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mid_header_border', 'section' => 'header_style_options', 'default' => false, 'priority' => '250', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_three' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Bottom Header Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'bottom_header_background_color', 'section' => 'header_style_options', 'default' => '', 'priority' => '260', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Bottom Header Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'bottom_header_text_color', 'section' => 'header_style_options', 'default' => '#333333', 'priority' => '270', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Non Transparent Bottom Header Text Link Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'bottom_header_text_link_hover_color', 'section' => 'header_style_options', 'default' => '#086abd', 'priority' => '280', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sub Menu Link Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'sub_menu_link_hover_color', 'section' => 'header_style_options', 'default' => '#086abd', 'priority' => '290', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Header Height (in px)', 'bosa' ), 'description' => esc_html__( 'This option will only apply to Desktop. Please click on below Desktop Icon to see changes. Automatically adjust by theme default in the responsive devices. ', 'bosa' ), 'type' => 'slider', 'settings' => 'header_image_height', 'section' => 'header_style_options', 'transport' => 'postMessage', 'default' => 80, 'priority' => '300', 'choices' => array( 'min' => 50, 'max' => 1200, 'step' => 10, ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'contact_details_separator', 'section' => 'header_style_options', 'default' => esc_html__( 'Contact Details Options', 'bosa' ), 'priority' => '310', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); // Contact Detail Options Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Contact Details', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_contact_detail', 'section' => 'header_style_options', 'default' => false, 'priority' => '320', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Phone Number', 'bosa' ), 'type' => 'text', 'settings' => 'contact_phone', 'section' => 'header_style_options', 'default' => '', 'priority' => '330', 'active_callback' => array( array( 'setting' => 'disable_contact_detail', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Email', 'bosa' ), 'type' => 'text', 'settings' => 'contact_email', 'section' => 'header_style_options', 'default' => '', 'priority' => '340', 'active_callback' => array( array( 'setting' => 'disable_contact_detail', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Address', 'bosa' ), 'type' => 'text', 'settings' => 'contact_address', 'section' => 'header_style_options', 'default' => '', 'priority' => '350', 'active_callback' => array( array( 'setting' => 'disable_contact_detail', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'header_button_separator', 'section' => 'header_style_options', 'default' => esc_html__( 'Header Button Options', 'bosa' ), 'priority' => '360', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); // Header button Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Header Buttons', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_header_button', 'section' => 'header_style_options', 'default' => false, 'priority' => '370', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Header Buttons', 'bosa' ), 'type' => 'repeater', 'settings' => 'header_button_repeater', 'section' => 'header_style_options', 'priority' => '380', 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Button', 'bosa' ), ), 'default' => array( array( 'header_btn_type' => 'button-outline', 'header_btn_bg_color' => '#EB5A3E', 'header_btn_border_color' => '#1a1a1a', 'header_btn_text_color' => '#1a1a1a', 'header_btn_hover_color' => '#086abd', 'header_btn_text' => '', 'header_btn_link' => '', 'header_btn_target' => true, 'header_btn_radius' => 0, ), ), 'fields' => array( 'header_btn_type' => array( 'label' => esc_html__( 'Button Type', 'bosa' ), 'type' => 'select', 'default' => 'button-outline', 'choices' => array( 'button-primary' => esc_html__( 'Background Button', 'bosa' ), 'button-outline' => esc_html__( 'Border Button', 'bosa' ), 'button-text' => esc_html__( 'Text Only Button', 'bosa' ), ), ), 'header_btn_bg_color' => array( 'label' => esc_html__( 'Non Transparent Header Button Background Color', 'bosa' ), 'description' => esc_html__( 'For background button type only.', 'bosa' ), 'type' => 'color', 'default' => '#EB5A3E', ), 'header_btn_border_color' => array( 'label' => esc_html__( 'Non Transparent Header Button Border Color', 'bosa' ), 'description' => esc_html__( 'For border button type only.', 'bosa' ), 'type' => 'color', 'default' => '#1a1a1a', ), 'header_btn_text_color' => array( 'label' => esc_html__( 'Non Transparent Header Button Text Color', 'bosa' ), 'type' => 'color', 'default' => '#1a1a1a', ), 'header_btn_hover_color' => array( 'label' => esc_html__( 'Non Transparent Header Button Hover Color', 'bosa' ), 'type' => 'color', 'default' => '#086abd', ), 'header_btn_text' => array( 'label' => esc_html__( 'Button Text', 'bosa' ), 'type' => 'text', 'default' => '', ), 'header_btn_link' => array( 'label' => esc_html__( 'Button Link', 'bosa' ), 'type' => 'text', 'default' => '', ), 'header_btn_target' => array( 'label' => esc_html__( 'Open Link in New Window', 'bosa' ), 'type' => 'checkbox', 'default' => true, ), 'header_btn_radius' => array( 'label' => esc_html__( 'Button Radius (px)', 'bosa' ), 'type' => 'number', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ), ), 'choices' => array( 'limit' => 1, ), 'active_callback' => array( array( 'setting' => 'disable_header_button', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Buttons', 'bosa' ), 'type' => 'repeater', 'settings' => 'transparent_header_button_repeater', 'section' => 'header_style_options', 'priority' => '390', 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Button', 'bosa' ), ), 'default' => array( array( 'transparent_header_btn_type' => 'button-outline', 'transparent_header_home_btn_bg_color' => '#EB5A3E', 'transparent_header_home_btn_border_color' => '#ffffff', 'transparent_header_home_btn_text_color' => '#ffffff', 'transparent_header_btn_bg_color' => '#EB5A3E', 'transparent_header_btn_border_color' => '#1a1a1a', 'transparent_header_btn_text_color' => '#1a1a1a', 'transparent_header_btn_hover_color' => '#086abd', 'transparent_header_btn_text' => '', 'transparent_header_btn_link' => '', 'transparent_header_btn_target' => true, 'transparent_header_btn_radius' => 0, ), ), 'fields' => array( 'transparent_header_btn_type' => array( 'label' => esc_html__( 'Button Type', 'bosa' ), 'type' => 'select', 'default' => 'button-outline', 'choices' => array( 'button-primary' => esc_html__( 'Background Button', 'bosa' ), 'button-outline' => esc_html__( 'Border Button', 'bosa' ), 'button-text' => esc_html__( 'Text Only Button', 'bosa' ), ), ), 'transparent_header_home_btn_bg_color' => array( 'label' => esc_html__( 'Transparent Header Button Background Color', 'bosa' ), 'description' => esc_html__( 'For background button type only.', 'bosa' ), 'type' => 'color', 'default' => '#EB5A3E', ), 'transparent_header_home_btn_border_color' => array( 'label' => esc_html__( 'Transparent Header Button Border Color', 'bosa' ), 'description' => esc_html__( 'For border button type only.', 'bosa' ), 'type' => 'color', 'default' => '#ffffff', ), 'transparent_header_home_btn_text_color' => array( 'label' => esc_html__( 'Transparent Header Button Text Color', 'bosa' ), 'type' => 'color', 'default' => '#ffffff', ), 'transparent_header_btn_bg_color' => array( 'label' => esc_html__( 'Non Transparent Header Button Background Color', 'bosa' ), 'description' => esc_html__( 'For background button type only.', 'bosa' ), 'type' => 'color', 'default' => '#EB5A3E', ), 'transparent_header_btn_border_color' => array( 'label' => esc_html__( 'Non Transparent Header Button Border Color', 'bosa' ), 'description' => esc_html__( 'For border button type only.', 'bosa' ), 'type' => 'color', 'default' => '#1a1a1a', ), 'transparent_header_btn_text_color' => array( 'label' => esc_html__( 'Non Transparent Header Button Text Color', 'bosa' ), 'type' => 'color', 'default' => '#1a1a1a', ), 'transparent_header_btn_hover_color' => array( 'label' => esc_html__( 'Button Hover Color', 'bosa' ), 'type' => 'color', 'default' => '#086abd', ), 'transparent_header_btn_text' => array( 'label' => esc_html__( 'Button Text', 'bosa' ), 'type' => 'text', 'default' => '', ), 'transparent_header_btn_link' => array( 'label' => esc_html__( 'Button Link', 'bosa' ), 'type' => 'text', 'default' => '', ), 'transparent_header_btn_target' => array( 'label' => esc_html__( 'Open Link in New Window', 'bosa' ), 'type' => 'checkbox', 'default' => true, ), 'transparent_header_btn_radius' => array( 'label' => esc_html__( 'Button Radius (px)', 'bosa' ), 'type' => 'number', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ), ), 'choices' => array( 'limit' => 1, ), 'active_callback' => array( array( 'setting' => 'disable_header_button', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Header Buttons Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'header_buttons_font_control', 'section' => 'header_style_options', 'priority' => '400', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '600', 'font-size' => '14px', 'text-transform' => 'none', 'line-height' => '1', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.site-header .header-btn a', ), ), 'active_callback' => array( array( 'setting' => 'disable_header_button', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Search', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_search_icon', 'section' => 'header_style_options', 'default' => false, 'priority' => '410', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Hamburger Widget Menu Icon', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_hamburger_menu_icon', 'section' => 'header_style_options', 'default' => false, 'priority' => '420', ) ); // Header Media Options Kirki::add_section( 'header_wrap_media_options', array( 'title' => esc_html__( 'Media', 'bosa' ), 'panel' => 'header_options', 'capability' => 'edit_theme_options', 'priority' => '30', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Header Image Slider', 'bosa' ), 'description' => esc_html__( 'Recommended image size 1920x550 pixel. Add only one image to make header banner.', 'bosa' ), 'type' => 'repeater', 'section' => 'header_wrap_media_options', 'row_label' => array( 'type' => 'text', ), 'button_label' => esc_html__('Add New Image', 'bosa' ), 'settings' => 'header_image_slider', 'default' => array( array( 'slider_item' => '', ) ), 'fields' => array( 'slider_item' => array( 'label' => esc_html__( 'Image', 'bosa' ), 'type' => 'image', 'default' => '', ) ), 'choices' => array( 'limit' => 2, ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'header_image_size', 'section' => 'header_wrap_media_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slide Effect', 'bosa' ), 'type' => 'select', 'settings' => 'header_slider_effect', 'section' => 'header_wrap_media_options', 'default' => 'fade', 'choices' => array( 'fade' => esc_html__( 'Fade', 'bosa' ), 'horizontal-slide' => esc_html__( 'Slide', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Fade Control Time ( in sec )', 'bosa' ), 'type' => 'number', 'settings' => 'slider_header_fade_control', 'section' => 'header_wrap_media_options', 'default' => 5, 'choices' => array( 'min' => '3', 'max' => '60', 'step'=> '1', ), 'active_callback' => array( array( 'setting' => 'header_slider_effect', 'operator' => '==', 'value' => 'fade', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Arrows', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_header_slider_arrows', 'section' => 'header_wrap_media_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Dots', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_header_slider_dots', 'section' => 'header_wrap_media_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Auto Play', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_header_slider_autoplay', 'section' => 'header_wrap_media_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Auto Play Timeout ( in sec )', 'bosa' ), 'type' => 'number', 'settings' => 'slider_header_autoplay_speed', 'section' => 'header_wrap_media_options', 'default' => 4, 'choices' => array( 'min' => '1', 'max' => '60', 'step'=> '1', ), 'active_callback' => array( array( 'setting' => 'disable_header_slider_autoplay', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Parallax Scrolling', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_parallax_scrolling', 'section' => 'header_wrap_media_options', 'default' => true, ) ); // Header Elements Options Kirki::add_section( 'header_elements_options', array( 'title' => esc_html__( 'Elements', 'bosa' ), 'panel' => 'header_options', 'capability' => 'edit_theme_options', 'priority' => '30', ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'fixed_header_separator', 'section' => 'header_elements_options', 'default' => esc_html__( 'Fixed Header Options', 'bosa' ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Fixed Header', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_fixed_header', 'section' => 'header_elements_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Logo', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_fixed_header_logo', 'section' => 'header_elements_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Separate Logo for Fixed Header', 'bosa' ), 'description' => esc_html__( 'Image dimensions 320 by 120 pixels is recommended. It will change in fixed header only.', 'bosa' ), 'type' => 'image', 'settings' => 'fixed_header_separate_logo', 'section' => 'header_elements_options', 'default' => '', 'choices' => array( 'save_as' => 'id', ), 'active_callback' => array( array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_fixed_header_logo', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Logo Image Width', 'bosa' ), 'type' => 'slider', 'settings' => 'fixed_header_logo_width', 'section' => 'header_elements_options', 'transport' => 'postMessage', 'default' => 270, 'choices' => array( 'min' => 50, 'max' => 270, 'step' => 5, ), 'active_callback' => array( array( 'setting' => 'disable_fixed_header_logo', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Site Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_fixed_header_site_title', 'section' => 'header_elements_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), array( 'setting' => 'disable_site_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Site Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_title_color_fixed_header', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_fixed_header_site_title', 'operator' => '==', 'value' => false, ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'disable_site_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Site Tagline', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_fixed_header_site_tagline', 'section' => 'header_elements_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), array( 'setting' => 'disable_site_tagline', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Site Tagline Color', 'bosa' ), 'type' => 'color', 'settings' => 'site_tagline_color_fixed_header', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_fixed_header_site_tagline', 'operator' => '==', 'value' => false, ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'disable_site_tagline', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'bg_color_fixed_header', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'text_color_fixed_header', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Text Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'text_hover_color_fixed_header', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Button Background Color', 'bosa' ), 'description' => esc_html__( 'For background button type only.', 'bosa' ), 'type' => 'color', 'settings' => 'fixed_header_button_background_color', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_header_button', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Button Border Color', 'bosa' ), 'description' => esc_html__( 'For border button type only.', 'bosa' ), 'type' => 'color', 'settings' => 'fixed_header_button_border_color', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_header_button', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Fixed Header Button Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'fixed_header_button_text_color', 'section' => 'header_elements_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_header_button', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), ), ) ); // Responsive Kirki::add_section( 'header_responsive', array( 'title' => esc_html__( 'Responsive', 'bosa' ), 'description' => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please click on below Tablet or Mobile Icons to see changes.', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '80', 'panel' => 'header_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Top Header Menu Section', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_top_header', 'section' => 'header_responsive', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Top Header Bar Name', 'bosa' ), 'type' => 'text', 'settings' => 'top_bar_name', 'section' => 'header_responsive', 'default' => esc_html__( 'TOP MENU', 'bosa' ), 'active_callback' => array( array( 'setting' => 'disable_mobile_top_header', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Header Menu Text', 'bosa' ), 'type' => 'text', 'settings' => 'responsive_header_menu_text', 'section' => 'header_responsive', 'default' => esc_html__( 'MENU', 'bosa' ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Top Header Section Border', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_top_header_border', 'section' => 'header_responsive', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Mid Header Section Border', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_mid_header_border', 'section' => 'header_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_three' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Fixed Header', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_fixed_header', 'section' => 'header_responsive', 'default' => true, 'active_callback' => array( array( 'setting' => 'disable_fixed_header', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Header Secondary Menu', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_secondary_menu', 'section' => 'header_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_three' ), ), array( 'setting' => 'disable_mobile_top_header', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Header Contact Details', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_contact_details', 'section' => 'header_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_contact_detail', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), array( 'setting' => 'disable_mobile_top_header', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Header Search', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_search_icon', 'section' => 'header_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_search_icon', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_mobile_top_header', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Header Buttons', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_header_buttons', 'section' => 'header_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_header_button', 'operator' => '==', 'value' => false, ), array( 'setting' => 'header_layout', 'operator' => 'contains', 'value' => array( 'header_one', 'header_two' ), ), array( 'setting' => 'disable_mobile_top_header', 'operator' => '=', 'value' => false, ), ), ) ); // Theme Skin Options Kirki::add_section( 'skins_options', array( 'title' => esc_html__( 'Site Skins', 'bosa' ), 'description' => esc_html__( 'All color options except primary color will be overridden by the theme in dark and B&W skin.', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '80', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Select Theme Skin', 'bosa' ), 'type' => 'select', 'settings' => 'skin_select', 'section' => 'skins_options', 'default' => 'default', 'choices' => array( 'default' => esc_html__( 'Default', 'bosa' ), 'dark' => esc_html__( 'Dark', 'bosa' ), 'blackwhite' => esc_html__( 'Black & White', 'bosa' ), ) ) ); // Social Media Options Kirki::add_panel( 'social_media_options', array( 'title' => esc_html__( 'Social Media', 'bosa' ), 'priority' => '96', ) ); Kirki::add_section( 'social_media_elements_options', array( 'title' => esc_html__( 'Elements', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '10', 'panel' => 'social_media_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable from Header', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_header_social_links', 'section' => 'social_media_elements_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable from Footer', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_footer_social_links', 'section' => 'social_media_elements_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Footer Social Icons Size', 'bosa' ), 'description' => esc_html__( 'Only applicable to the footer social icons.', 'bosa' ), 'type' => 'number', 'settings' => 'social_icons_size', 'section' => 'social_media_elements_options', 'transport' => 'postMessage', 'default' => 15, 'choices' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), 'active_callback' => array( array( 'setting' => 'disable_footer_social_links', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Social Links', 'bosa' ), 'type' => 'repeater', 'description' => esc_html__( 'By default, Social Icons will appear in both header and footer section.', 'bosa' ), 'section' => 'social_media_elements_options', 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Social Link', 'bosa' ), ), 'settings' => 'social_media_links', 'default' => array( array( 'icon' => '', 'link' => '', 'target' => true, ), ), 'fields' => array( 'icon' => array( 'label' => esc_html__( 'Fontawesome Icon', 'bosa' ), 'type' => 'text', 'description' => esc_html__( 'Input Icon name. For Example:- fab fa-facebook For more icons https://fontawesome.com/icons?d=gallery&m=free', 'bosa' ), ), 'link' => array( 'label' => esc_html__( 'Link', 'bosa' ), 'type' => 'text', ), 'target' => array( 'label' => esc_html__( 'Open Link in New Window', 'bosa' ), 'type' => 'checkbox', 'default' => true, ), ), 'choices' => array( 'limit' => 20, ), ) ); // Responsive Kirki::add_section( 'social_responsive', array( 'title' => esc_html__( 'Responsive', 'bosa' ), 'description' => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please click on below Tablet or Mobile Icons to see changes.', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '20', 'panel' => 'social_media_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Social Icons from Header', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_social_icons_header', 'section' => 'social_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_header_social_links', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Social Icons from Footer', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_social_icons_footer', 'section' => 'social_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_footer_social_links', 'operator' => '==', 'value' => false, ), ), ) ); //Typography Options Kirki::add_section( 'typography', array( 'title' => esc_html__( 'Typography', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '95', 'reset' => 'typography', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Site Title', 'bosa' ), 'type' => 'typography', 'settings' => 'site_title_font_control', 'section' => 'typography', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-size' => '22px', 'text-transform' => 'none', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.site-header .site-branding .site-title', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Site Description', 'bosa' ), 'type' => 'typography', 'settings' => 'site_description_font_control', 'section' => 'typography', 'default' => array( 'font-family' => 'Open Sans', 'variant' => 'normal', 'font-size' => '14px', 'text-transform' => 'none', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.site-header .site-branding .site-description', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Main Menu', 'bosa' ), 'type' => 'typography', 'settings' => 'main_menu_font_control', 'section' => 'typography', 'default' => array( 'font-family' => 'Open Sans', 'font-size' => '15px', 'text-transform' => 'uppercase', 'variant' => '600', 'line-height' => '1.5', ), 'transport' => 'auto', 'output' => array( array( 'element' => array( '.main-navigation ul.menu li a', '.slicknav_menu .slicknav_nav li a' ) ), ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'main_menu_description_info', 'section' => 'typography', 'default' => esc_html__( 'Below Main Menu Description setting will work after enabling description section in the menu. Please check https://bosathemes.com/docs/bosa/how-to-setup/how-to-setup-menu-description Documentation for more information.', 'bosa' ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Main Menu Description', 'bosa' ), 'type' => 'typography', 'settings' => 'main_menu_description_font_control', 'section' => 'typography', 'default' => array( 'font-family' => 'Open Sans', 'font-size' => '11px', 'text-transform' => 'none', 'variant' => 'normal', 'line-height' => '1.3', ), 'transport' => 'auto', 'output' => array( array( 'element' => array( '.main-navigation .menu-description, .slicknav_menu .menu-description' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Body', 'bosa' ), 'type' => 'typography', 'settings' => 'body_font_control', 'section' => 'typography', 'default' => array( 'font-family' => 'Open Sans', 'variant' => 'normal', 'font-size' => '15px', ), 'transport' => 'auto', 'output' => array( array( 'element' => 'body', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'General Title (H1 - H6)', 'bosa' ), 'type' => 'typography', 'settings' => 'general_title_font_control', 'section' => 'typography', 'default' => array( 'font-family' => 'Poppins', 'text-transform' => 'none', ), 'transport' => 'auto', 'output' => array( array( 'element' => array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Page & Single Post Title', 'bosa' ), 'type' => 'typography', 'settings' => 'page_title_font_control', 'section' => 'typography', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-size' => '48px', 'text-transform' => 'none', ), 'transport' => 'auto', 'output' => array( array( 'element' => array( '.page-title' ), ), ), ) ); // Site Layouts Options Kirki::add_panel( 'site_layout_options', array( 'title' => esc_html__( 'Site Layouts', 'bosa' ), 'priority' => '90', ) ); Kirki::add_section( 'site_layout_style_options', array( 'title' => esc_html__( 'Style', 'bosa' ), 'panel' => 'site_layout_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Site Layouts', 'bosa' ), 'description' => esc_html__( 'Default / Box / Frame / Full / Extend', 'bosa' ), 'type' => 'radio-image', 'settings' => 'site_layout', 'section' => 'site_layout_style_options', 'default' => 'default', 'choices' => array( 'default' => get_template_directory_uri() . '/assets/images/default-layout.png', 'box' => get_template_directory_uri() . '/assets/images/box-layout.png', 'frame' => get_template_directory_uri() . '/assets/images/frame-layout.png', 'full' => get_template_directory_uri() . '/assets/images/full-layout.png', 'extend' => get_template_directory_uri() . '/assets/images/extend-layout.png', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'box_frame_background_color', 'section' => 'site_layout_style_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'site_layout', 'operator' => 'contains', 'value' => array( 'box', 'frame' ), ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Image', 'bosa' ), 'type' => 'image', 'settings' => 'box_frame_background_image', 'section' => 'site_layout_style_options', 'default' => '', 'choices' => array( 'save_as' => 'id', ), 'active_callback' => array( array( 'setting' => 'site_layout', 'operator' => 'contains', 'value' => array( 'box', 'frame' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'box_frame_image_size', 'section' => 'site_layout_style_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'site_layout', 'operator' => 'contains', 'value' => array( 'box', 'frame' ), ), ), ) ); Kirki::add_section( 'site_layout_elements_options', array( 'title' => esc_html__( 'Elements', 'bosa' ), 'panel' => 'site_layout_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Site Layouts (Box & Frame) Shadow', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_site_layout_shadow', 'section' => 'site_layout_elements_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'site_layout', 'operator' => 'contains', 'value' => array( 'box', 'frame' ), ), ), ) ); // Sidebar Options Kirki::add_section( 'sidebar_options', array( 'title' => esc_html__( 'Sidebar', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '98', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sidebar Layouts', 'bosa' ), 'description' => esc_html__( 'Right / Left / Both / None', 'bosa' ), 'type' => 'radio-image', 'settings' => 'sidebar_settings', 'section' => 'sidebar_options', 'default' => 'right', 'choices' => array( 'right' => get_template_directory_uri() . '/assets/images/right-sidebar.png', 'left' => get_template_directory_uri() . '/assets/images/left-sidebar.png', 'right-left' => get_template_directory_uri() . '/assets/images/right-left-sidebar.png', 'no-sidebar' => get_template_directory_uri() . '/assets/images/no-sidebar.png', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Widget Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'sidebar_widget_title_font_control', 'section' => 'sidebar_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '500', 'font-size' => '16px', 'text-transform' => 'uppercase', 'line-height' => '1.4', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.sidebar .widget .widget-title', ), ), 'active_callback' => array( array( 'setting' => 'sidebar_settings', 'operator' => 'contains', 'value' => array( 'right', 'left', 'right-left' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Sidebar Widget Title Border', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_sidebar_widget_title_border', 'section' => 'sidebar_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'sidebar_settings', 'operator' => 'contains', 'value' => array( 'right', 'left', 'right-left' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Sticky Position', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_sticky_sidebar', 'section' => 'sidebar_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'sidebar_settings', 'operator' => 'contains', 'value' => array( 'right', 'left', 'right-left' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Sidebar in Blog Page', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_sidebar_blog_page', 'section' => 'sidebar_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'sidebar_settings', 'operator' => 'contains', 'value' => array( 'right', 'left', 'right-left' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Sidebar in Single Post', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_sidebar_single_post', 'section' => 'sidebar_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'sidebar_settings', 'operator' => 'contains', 'value' => array( 'right', 'left', 'right-left' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Sidebar in Page', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_sidebar_page', 'section' => 'sidebar_options', 'default' => true, 'active_callback' => array( array( 'setting' => 'sidebar_settings', 'operator' => 'contains', 'value' => array( 'right', 'left', 'right-left' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Sidebar in WooCommerce Page', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_sidebar_woocommerce_page', 'section' => 'sidebar_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'sidebar_settings', 'operator' => 'contains', 'value' => array( 'right', 'left', 'right-left' ), ), ), ) ); // Footer Options Kirki::add_panel( 'footer_options', array( 'title' => esc_html__( 'Footer', 'bosa' ), 'priority' => '110', ) ); // Footer Widgets Options Kirki::add_section( 'footer_widgets_options', array( 'title' => esc_html__( 'Footer Widgets', 'bosa' ), 'panel' => 'footer_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Footer Widget Area', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_footer_widget', 'section' => 'footer_widgets_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Footer Widget Title Border', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_footer_widget_title_border', 'section' => 'footer_widgets_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Footer Widget Item List Border ', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_footer_widget_list_item_border', 'section' => 'footer_widgets_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Widget Columns Layouts', 'bosa' ), 'type' => 'radio-image', 'settings' => 'footer_widget_layout', 'section' => 'footer_widgets_options', 'default' => 'footer_widget_layout_one', 'choices' => array( 'footer_widget_layout_one' => get_template_directory_uri() . '/assets/images/widget-layout-1.png', 'footer_widget_layout_two' => get_template_directory_uri() . '/assets/images/widget-layout-2.png', 'footer_widget_layout_three' => get_template_directory_uri() . '/assets/images/widget-layout-3.png', 'footer_widget_layout_four' => get_template_directory_uri() . '/assets/images/widget-layout-4.png', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Footer Widget Area Top Padding(in px)', 'bosa' ), 'type' => 'number', 'settings' => 'footer_widget_area_top_padding', 'section' => 'footer_widgets_options', 'default' => 0, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Footer Widget Area Bottom Padding(in px)', 'bosa' ), 'type' => 'number', 'settings' => 'footer_widget_area_bottom_padding', 'section' => 'footer_widgets_options', 'default' => 50, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Background Color', 'bosa' ), 'description' => esc_html__( 'It can be used as a transparent background color over image.', 'bosa' ), 'type' => 'color', 'settings' => 'top_footer_background_color', 'section' => 'footer_widgets_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Widget Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_footer_widget_title_color', 'section' => 'footer_widgets_options', 'default' => '#030303', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Widgets Link Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_footer_widget_link_color', 'section' => 'footer_widgets_options', 'default' => '#656565', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Widgets Content Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_footer_widget_content_color', 'section' => 'footer_widgets_options', 'default' => '#656565', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Widgets Link Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'top_footer_widget_link_hover_color', 'section' => 'footer_widgets_options', 'default' => '#086abd', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Widget Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'footer_widget_title_font_control', 'section' => 'footer_widgets_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '500', 'font-size' => '18px', 'text-transform' => 'none', 'line-height' => '1.4', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.site-footer .widget .widget-title', ), ), ) ); // Footer Style Options Kirki::add_section( 'footer_style_options', array( 'title' => esc_html__( 'Style', 'bosa' ), 'panel' => 'footer_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Bottom Footer Area', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_bottom_footer', 'section' => 'footer_style_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Footer Layouts', 'bosa' ), 'type' => 'radio-image', 'settings' => 'footer_layout', 'section' => 'footer_style_options', 'default' => 'footer_one', 'choices' => array( 'footer_one' => get_template_directory_uri() . '/assets/images/footer-layout-1.png', 'footer_two' => get_template_directory_uri() . '/assets/images/footer-layout-2.png', 'footer_three' => get_template_directory_uri() . '/assets/images/footer-layout-3.png', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Bottom Footer Area Top Padding(in px)', 'bosa' ), 'type' => 'number', 'settings' => 'bottom_footer_area_top_padding', 'section' => 'footer_style_options', 'default' => 30, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Bottom Footer Area Bottom Padding(in px)', 'bosa' ), 'type' => 'number', 'settings' => 'bottom_footer_area_bottom_padding', 'section' => 'footer_style_options', 'default' => 30, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Color', 'bosa' ), 'description' => esc_html__( 'It can be used as a transparent background color over image.', 'bosa' ), 'type' => 'color', 'settings' => 'bottom_footer_background_color', 'section' => 'footer_style_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'bottom_footer_text_color', 'section' => 'footer_style_options', 'default' => '#656565', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Text Link Color', 'bosa' ), 'type' => 'color', 'settings' => 'bottom_footer_text_link_color', 'section' => 'footer_style_options', 'default' => '#383838', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Text Link Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'bottom_footer_text_link_hover_color', 'section' => 'footer_style_options', 'default' => '#086abd', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Bottom Footer Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'footer_style_font_control', 'section' => 'footer_style_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '14px', 'text-transform' => 'none', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => array( '.site-footer .site-info', '.site-footer .footer-menu ul li a' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Select Image', 'bosa' ), 'type' => 'image', 'settings' => 'bottom_footer_image', 'section' => 'footer_style_options', 'default' => '', 'choices' => array( 'save_as' => 'id', ), 'active_callback' => array( array( 'setting' => 'footer_layout', 'operator' => 'contains', 'value' => array( 'footer_one', 'footer_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Image Link', 'bosa' ), 'type' => 'link', 'settings' => 'bottom_footer_image_link', 'section' => 'footer_style_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'footer_layout', 'operator' => 'contains', 'value' => array( 'footer_one', 'footer_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Image Target', 'bosa' ), 'description' => esc_html__( 'If enabled, the page will be open in an another browser tab.', 'bosa' ), 'type' => 'checkbox', 'settings' => 'bottom_footer_image_target', 'section' => 'footer_style_options', 'default' => true, 'active_callback' => array( array( 'setting' => 'footer_layout', 'operator' => 'contains', 'value' => array( 'footer_one', 'footer_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Image Width', 'bosa' ), 'type' => 'slider', 'settings' => 'bottom_footer_image_width', 'section' => 'footer_style_options', 'transport' => 'postMessage', 'default' => 270, 'choices' => array( 'min' => 10, 'max' => 1140, 'step' => 5, ), 'active_callback' => array( array( 'setting' => 'footer_layout', 'operator' => 'contains', 'value' => array( 'footer_one', 'footer_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Footer Menu', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_footer_menu', 'section' => 'footer_style_options', 'default' => false, ) ); // Media Footer Options Kirki::add_section( 'media_footer_options', array( 'title' => esc_html__( 'Media', 'bosa' ), 'panel' => 'footer_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Select Background Image', 'bosa' ), 'description' => esc_html__( 'Recommended image size 1920x550 pixel.', 'bosa' ), 'type' => 'image', 'settings' => 'footer_image', 'section' => 'media_footer_options', 'default' => '', 'choices' => array( 'save_as' => 'id', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'footer_image_size', 'section' => 'media_footer_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Parallax Scrolling', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_footer_parallax_scrolling', 'section' => 'media_footer_options', 'default' => true, ) ); // Footer Elements Options Kirki::add_section( 'elements_footer_options', array( 'title' => esc_html__( 'Elements', 'bosa' ), 'panel' => 'footer_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Scroll to Top', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_scroll_top', 'section' => 'elements_footer_options', 'default' => false, ) ); // Responsive Kirki::add_section( 'footer_responsive', array( 'title' => esc_html__( 'Responsive', 'bosa' ), 'description' => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please click on below Tablet or Mobile Icons to see changes.', 'bosa' ), 'capability' => 'edit_theme_options', 'panel' => 'footer_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Footer Widget Area', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_responsive_footer_widget', 'section' => 'footer_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_footer_widget', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Scroll Top', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_scroll_top', 'section' => 'footer_responsive', 'default' => true, 'active_callback' => array( array( 'setting' => 'disable_scroll_top', 'operator' => '=', 'value' => false, ), ), ) ); // Blog Homepage Options Kirki::add_panel( 'blog_homepage_options', array( 'title' => esc_html__( 'Blog Homepage', 'bosa' ), 'priority' => '120', ) ); // Main Banner / Post Slider Kirki::add_section( 'main_slider_options', array( 'title' => esc_html__( 'Banner / Post Slider', 'bosa' ), 'panel' => 'blog_homepage_options', 'capability' => 'edit_theme_options', 'priority' => '10', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Section', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_main_slider', 'section' => 'main_slider_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slider / Banner', 'bosa' ), 'type' => 'radio-buttonset', 'settings' => 'main_slider_controls', 'section' => 'main_slider_options', 'default' => 'slider', 'choices' => array( 'slider' => esc_html__( 'Slider', 'bosa' ), 'banner' => esc_html__( 'Banner', 'bosa' ), ) ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Height (in px)', 'bosa' ), 'description' => esc_html__( 'This option will only apply to Desktop. Please click on below Desktop Icon to see changes. Automatically adjust by theme default in the responsive devices. ', 'bosa' ), 'type' => 'slider', 'settings' => 'main_slider_height', 'section' => 'main_slider_options', 'transport' => 'postMessage', 'default' => 550, 'choices' => array( 'min' => 50, 'max' => 1500, 'step' => 10, ), ) ); // Slider settings Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Choose Category', 'bosa' ), 'description' => esc_html__( 'Recent posts will show if any category is not chosen. Recommended posts containing feature images size with 1920x940 pixel.', 'bosa' ), 'type' => 'select', 'settings' => 'slider_category', 'section' => 'main_slider_options', 'default' => '', 'placeholder' => esc_html__( 'Select category', 'bosa' ), 'choices' => bosa_get_post_categories(), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slider Layout', 'bosa' ), 'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa' ), 'type' => 'radio-image', 'settings' => 'main_slider_layout', 'section' => 'main_slider_options', 'default' => 'main_slider_one', 'choices' => array( 'main_slider_one' => get_template_directory_uri() . '/assets/images/slider-layout-1.png', ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'color', 'label' => esc_html__( 'Slider Background Color', 'bosa' ), 'settings' => 'background_color_main_slider', 'section' => 'main_slider_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'slider_post_title_color', 'section' => 'main_slider_options', 'default' => '#ffffff', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_slider_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Color', 'bosa' ), 'type' => 'color', 'settings' => 'slider_post_category_color', 'section' => 'main_slider_options', 'default' => '#ebebeb', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_slider_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Color', 'bosa' ), 'type' => 'color', 'settings' => 'slider_post_meta_color', 'section' => 'main_slider_options', 'default' => '#ebebeb', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( array( 'setting' => 'hide_slider_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_slider_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_slider_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Icon Color', 'bosa' ), 'type' => 'color', 'settings' => 'slider_post_meta_icon_color', 'section' => 'main_slider_options', 'default' => '#FFFFFF', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( array( 'setting' => 'hide_slider_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_slider_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_slider_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'slider_post_text_color', 'section' => 'main_slider_options', 'default' => '#ffffff', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_slider_excerpt', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'color', 'label' => esc_html__( 'Hover Color', 'bosa' ), 'settings' => 'separate_hover_color_for_main_slider', 'section' => 'main_slider_options', 'default' => '#a8d8ff', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'main_slider_image_size', 'section' => 'main_slider_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Width Controls', 'bosa' ), 'type' => 'select', 'settings' => 'slider_width_controls', 'section' => 'main_slider_options', 'default' => 'full', 'choices' => array( 'full' => esc_html__( 'Full', 'bosa' ), 'boxed' => esc_html__( 'Boxed', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slide Effect', 'bosa' ), 'type' => 'select', 'settings' => 'main_slider_effect', 'section' => 'main_slider_options', 'default' => 'fade', 'choices' => array( 'fade' => esc_html__( 'Fade', 'bosa' ), 'horizontal-slide' => esc_html__( 'Slide', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Fade Control Time ( in sec )', 'bosa' ), 'type' => 'number', 'settings' => 'slider_fade_control', 'section' => 'main_slider_options', 'default' => 5, 'choices' => array( 'min' => '3', 'max' => '60', 'step'=> '1', ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'main_slider_effect', 'operator' => '==', 'value' => 'fade', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Content Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'main_slider_content_alignment', 'section' => 'main_slider_options', 'default' => 'center', 'choices' => array( 'center' => esc_html__( 'Center', 'bosa' ), 'left' => esc_html__( 'Left', 'bosa' ), 'right' => esc_html__( 'Right', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Display Slider on', 'bosa' ), 'type' => 'select', 'settings' => 'display_main_slider_on', 'section' => 'main_slider_options', 'default' => 'below_header', 'choices' => array( 'below_header' => esc_html__( 'Below Header', 'bosa' ), 'below_featured_posts' => esc_html__( 'Below Featured Posts', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Arrows', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_slider_arrows', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Dots', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_slider_dots', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Auto Play', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_slider_autoplay', 'section' => 'main_slider_options', 'default' => true, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Auto Play Timeout ( in sec )', 'bosa' ), 'type' => 'number', 'settings' => 'slider_autoplay_speed', 'section' => 'main_slider_options', 'default' => 4, 'choices' => array( 'min' => '1', 'max' => '60', 'step'=> '1', ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'disable_slider_autoplay', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post View Number', 'bosa' ), 'description' => esc_html__( 'Number of posts to show.', 'bosa' ), 'type' => 'number', 'settings' => 'slider_posts_number', 'section' => 'main_slider_options', 'default' => 6, 'choices' => array( 'min' => '1', 'max' => '20', 'step' => '1', ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_slider_title', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'main_slider_title_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-size' => '50px', 'text-transform' => 'uppercase', 'line-height' => '1.4', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .banner-content .entry-title', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'hide_slider_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable category', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_slider_category', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Category Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'main_slider_cat_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '400', 'font-size' => '15px', 'text-transform' => 'uppercase', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .banner-content .entry-header .cat-links a', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'hide_slider_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Date', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_slider_date', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Author', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_slider_author', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Comments Link', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_slider_comment', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Meta Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'main_slider_meta_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '13px', 'text-transform' => 'capitalize', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .banner-content .entry-meta a', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( array( 'setting' => 'hide_slider_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_slider_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_slider_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Excerpt', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_slider_excerpt', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Excerpt Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'main_slider_excerpt_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '400', 'font-size' => '15px', 'text-transform' => 'initial', 'line-height' => '1.8', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .banner-content .entry-text p', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'hide_slider_excerpt', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Excerpt Length', 'bosa' ), 'type' => 'number', 'settings' => 'slider_excerpt_length', 'section' => 'main_slider_options', 'default' => 25, 'choices' => array( 'min' => '5', 'max' => '100', 'step' => '5', ), 'active_callback' => array( array( 'setting' => 'hide_slider_excerpt', 'operator' => '==', 'value' => false, ), array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Slider Button', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_slider_button', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slider Button', 'bosa' ), 'type' => 'repeater', 'settings' => 'main_slider_button_repeater', 'section' => 'main_slider_options', 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Button', 'bosa' ), ), 'default' => array( array( 'slider_btn_type' => 'button-outline', 'slider_btn_bg_color' => '#EB5A3E', 'slider_btn_border_color' => '#ffffff', 'slider_btn_text_color' => '#ffffff', 'slider_btn_hover_color' => '#a8d8ff', 'slider_btn_text' => '', 'slider_btn_radius' => 0, ), ), 'fields' => array( 'slider_btn_type' => array( 'label' => esc_html__( 'Button Type', 'bosa' ), 'type' => 'select', 'default' => 'button-outline', 'choices' => array( 'button-primary' => esc_html__( 'Background Button', 'bosa' ), 'button-outline' => esc_html__( 'Border Button', 'bosa' ), 'button-text' => esc_html__( 'Text Only Button', 'bosa' ), ), ), 'slider_btn_bg_color' => array( 'label' => esc_html__( 'Button Background Color', 'bosa' ), 'description' => esc_html__( 'For background button type only.', 'bosa' ), 'type' => 'color', 'default' => '#EB5A3E', ), 'slider_btn_border_color' => array( 'label' => esc_html__( 'Button Border Color', 'bosa' ), 'description' => esc_html__( 'For border button type only.', 'bosa' ), 'type' => 'color', 'default' => '#ffffff', ), 'slider_btn_text_color' => array( 'label' => esc_html__( 'Button Text Color', 'bosa' ), 'type' => 'color', 'default' => '#ffffff', ), 'slider_btn_hover_color' => array( 'label' => esc_html__( 'Button Hover Color', 'bosa' ), 'type' => 'color', 'default' => '#086abd', ), 'slider_btn_text' => array( 'label' => esc_html__( 'Text', 'bosa' ), 'type' => 'text', 'default' => '', ), 'slider_btn_radius' => array( 'label' => esc_html__( 'Button Radius (px)', 'bosa' ), 'type' => 'number', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ), ), 'choices' => array( 'limit' => 1, ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'hide_slider_button', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slider Button Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'main_slider_button_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '500', 'font-size' => '15px', 'text-transform' => 'capitalize', 'line-height' => '1', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .slide-inner .banner-content .button-container a', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'slider', ), array( 'setting' => 'hide_slider_button', 'operator' => '==', 'value' => false, ), ), ) ); // Banner settings Kirki::add_field( 'bosa', array( 'type' => 'color', 'label' => esc_html__( 'Banner Background Color', 'bosa' ), 'settings' => 'background_color_main_banner', 'section' => 'main_slider_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'banner_title_color', 'section' => 'main_slider_options', 'default' => '#ffffff', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_title', 'operator' => '==', 'value' => false, ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Subtitle Color', 'bosa' ), 'type' => 'color', 'settings' => 'banner_subtitle_color', 'section' => 'main_slider_options', 'default' => '#ffffff', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_subtitle', 'operator' => '==', 'value' => false, ), array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Select Image', 'bosa' ), 'description' => esc_html__( 'Recommended image size 1920x940 pixel.', 'bosa' ), 'type' => 'image', 'settings' => 'banner_image', 'section' => 'main_slider_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), 'choices' => array( 'save_as' => 'id', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'main_banner_image_size', 'section' => 'main_slider_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Width Controls', 'bosa' ), 'type' => 'select', 'settings' => 'banner_width_controls', 'section' => 'main_slider_options', 'default' => 'full', 'choices' => array( 'full' => esc_html__( 'Full', 'bosa' ), 'boxed' => esc_html__( 'Boxed', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Content Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'main_banner_content_alignment', 'section' => 'main_slider_options', 'default' => 'center', 'choices' => array( 'center' => esc_html__( 'Center', 'bosa' ), 'left' => esc_html__( 'Left', 'bosa' ), 'right' => esc_html__( 'Right', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Display Banner on', 'bosa' ), 'type' => 'select', 'settings' => 'display_banner_on', 'section' => 'main_slider_options', 'default' => 'below_header', 'choices' => array( 'below_header' => esc_html__( 'Below Header', 'bosa' ), 'below_featured_posts' => esc_html__( 'Below Featured Posts', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_banner_title', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Title', 'bosa' ), 'type' => 'text', 'settings' => 'banner_title', 'section' => 'main_slider_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_title', 'operator' => '==', 'value' => false, ), ), 'partial_refresh' => array( 'banner_title' => array( 'selector' => '.banner_title', 'render_callback' => 'bosa_get_banner_title', ) ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'banner_title_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-size' => '50px', 'text-transform' => 'uppercase', 'line-height' => '1.4', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .banner-content .entry-title', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Subtitle', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_banner_subtitle', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Subtitle', 'bosa' ), 'type' => 'text', 'settings' => 'banner_subtitle', 'section' => 'main_slider_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_subtitle', 'operator' => '==', 'value' => false, ), ), 'partial_refresh' => array( 'banner_subtitle' => array( 'selector' => '.banner_subtitle', 'render_callback' => 'bosa_get_banner_subtitle', ) ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Subtitle Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'main_banner_subtitle_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '400', 'font-size' => '15px', 'text-transform' => 'initial', 'line-height' => '1.8', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .banner-content .entry-subtitle', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_subtitle', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Banner Buttons', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_banner_buttons', 'section' => 'main_slider_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Banner Buttons', 'bosa' ), 'type' => 'repeater', 'settings' => 'main_banner_buttons_repeater', 'section' => 'main_slider_options', 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Button', 'bosa' ), ), 'default' => array( array( 'banner_btn_type' => 'button-outline', 'banner_btn_bg_color' => '#EB5A3E', 'banner_btn_border_color' => '#ffffff', 'banner_btn_text_color' => '#ffffff', 'banner_btn_hover_color' => '#086abd', 'banner_btn_text' => '', 'banner_btn_link' => '', 'banner_btn_target' => true, 'banner_btn_radius' => 0, ), ), 'fields' => array( 'banner_btn_type' => array( 'label' => esc_html__( 'Button Type', 'bosa' ), 'type' => 'select', 'default' => 'button-outline', 'choices' => array( 'button-primary' => esc_html__( 'Background Button', 'bosa' ), 'button-outline' => esc_html__( 'Border Button', 'bosa' ), 'button-text' => esc_html__( 'Text Only Button', 'bosa' ), ), ), 'banner_btn_bg_color' => array( 'label' => esc_html__( 'Button Background Color', 'bosa' ), 'description' => esc_html__( 'For background button type only.', 'bosa' ), 'type' => 'color', 'default' => '#EB5A3E', ), 'banner_btn_border_color' => array( 'label' => esc_html__( 'Button Border Color', 'bosa' ), 'description' => esc_html__( 'For border button type only.', 'bosa' ), 'type' => 'color', 'default' => '#ffffff', ), 'banner_btn_text_color' => array( 'label' => esc_html__( 'Button Text Color', 'bosa' ), 'type' => 'color', 'default' => '#ffffff', ), 'banner_btn_hover_color' => array( 'label' => esc_html__( 'Button Hover Color', 'bosa' ), 'type' => 'color', 'default' => '#086abd', ), 'banner_btn_text' => array( 'label' => esc_html__( 'Text', 'bosa' ), 'type' => 'text', 'default' => '', ), 'banner_btn_link' => array( 'label' => esc_html__( 'Link', 'bosa' ), 'type' => 'text', 'default' => '', ), 'banner_btn_target' => array( 'label' => esc_html__( 'Open Link in New Window', 'bosa' ), 'type' => 'checkbox', 'default' => true, ), 'banner_btn_radius' => array( 'label' => esc_html__( 'Button Radius (px)', 'bosa' ), 'type' => 'number', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ), ), 'choices' => array( 'limit' => 1, ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_buttons', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Banner Button Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'main_banner_button_font_control', 'section' => 'main_slider_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '500', 'font-size' => '15px', 'text-transform' => 'capitalize', 'line-height' => '1', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-banner .banner-content .button-container a', ), ), 'active_callback' => array( array( 'setting' => 'main_slider_controls', 'operator' => '==', 'value' => 'banner', ), array( 'setting' => 'disable_banner_buttons', 'operator' => '==', 'value' => false, ), ), ) ); // Featured Posts Options Kirki::add_section( 'feature_posts_options', array( 'title' => esc_html__( 'Featured Posts', 'bosa' ), 'panel' => 'blog_homepage_options', 'capability' => 'edit_theme_options', 'priority' => '20', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Featured Posts Section', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_feature_posts_section', 'section' => 'feature_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Section Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_feature_posts_section_title', 'section' => 'feature_posts_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title', 'bosa' ), 'type' => 'text', 'settings' => 'feature_posts_section_title', 'section' => 'feature_posts_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'disable_feature_posts_section_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'feature_posts_section_title_font_control', 'section' => 'feature_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-size' => '24px', 'text-transform' => 'none', 'line-height' => '1.2', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-feature-posts-area .section-title', ), ), 'active_callback' => array( array( 'setting' => 'disable_feature_posts_section_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Section Description', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_feature_posts_section_description', 'section' => 'feature_posts_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Description', 'bosa' ), 'type' => 'text', 'settings' => 'feature_posts_section_description', 'section' => 'feature_posts_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'disable_feature_posts_section_description', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Description Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'feature_posts_section_description_font_control', 'section' => 'feature_posts_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => 'normal', 'font-size' => '16px', 'text-transform' => 'none', 'line-height' => '1.8', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-feature-posts-area .section-title-wrap p', ), ), 'active_callback' => array( array( 'setting' => 'disable_feature_posts_section_description', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title and Description Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'feature_posts_section_title_desc_alignment', 'section' => 'feature_posts_options', 'default' => 'left', 'choices' => array( 'left' => esc_html__( 'Left', 'bosa' ), 'center' => esc_html__( 'Center', 'bosa' ), 'right' => esc_html__( 'Right', 'bosa' ), ), 'active_callback' => array( array( array( 'setting' => 'disable_feature_posts_section_title', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_feature_posts_section_description', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Layout', 'bosa' ), 'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa' ), 'type' => 'radio-image', 'settings' => 'feature_posts_section_layouts', 'section' => 'feature_posts_options', 'default' => 'feature_one', 'choices' => array( 'feature_one' => get_template_directory_uri() . '/assets/images/feature-post-layout-1.png', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'featured_post_title_color', 'section' => 'feature_posts_options', 'default' => '#FFFFFF', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'disable_feature_posts_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'featured_post_category_bgcolor', 'section' => 'feature_posts_options', 'default' => '#EB5A3E', 'active_callback' => array( array( 'setting' => 'feature_posts_section_layouts', 'operator' => '==', 'value' => 'feature_one', ), array( 'setting' => 'hide_featured_posts_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Color', 'bosa' ), 'type' => 'color', 'settings' => 'featured_post_category_color', 'section' => 'feature_posts_options', 'default' => '#FFFFFF', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_featured_posts_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'featured_post_meta_color', 'section' => 'feature_posts_options', 'default' => '#FFFFFF', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( array( 'setting' => 'hide_featured_posts_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_featured_posts_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_featured_posts_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Icon Color', 'bosa' ), 'type' => 'color', 'settings' => 'featured_post_meta_icon_color', 'section' => 'feature_posts_options', 'default' => '#FFFFFF', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( array( 'setting' => 'hide_featured_posts_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_featured_posts_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_featured_posts_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'featured_post_hover_color', 'section' => 'feature_posts_options', 'default' => '#a8d8ff', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Columns', 'bosa' ), 'type' => 'select', 'settings' => 'feature_posts_columns', 'section' => 'feature_posts_options', 'default' => 'three_columns', 'placeholder' => esc_attr__( 'Select category', 'bosa' ), 'choices' => array( 'one_column' => esc_html__( '1 Column', 'bosa' ), 'two_columns' => esc_html__( '2 Columns', 'bosa' ), 'three_columns' => esc_html__( '3 Columns', 'bosa' ), 'four_columns' => esc_html__( '4 Columns', 'bosa' ), ) ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Choose Category', 'bosa' ), 'description' => esc_html__( 'Recent posts will show if any category is not chosen.', 'bosa' ), 'type' => 'select', 'settings' => 'feature_posts_category', 'section' => 'feature_posts_options', 'default' => '', 'placeholder' => esc_html__( 'Select category', 'bosa' ), 'choices' => bosa_get_post_categories() ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Featured Posts Overlay Opacity', 'bosa' ), 'type' => 'number', 'settings' => 'feature_posts_overlay_opacity', 'section' => 'feature_posts_options', 'default' => 4, 'choices' => array( 'min' => '0', 'max' => '9', 'step' => '1', ) ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post View Number', 'bosa' ), 'description' => esc_html__( 'Number of posts to show.', 'bosa' ), 'type' => 'number', 'settings' => 'feature_posts_posts_number', 'section' => 'feature_posts_options', 'default' => 6, 'choices' => array( 'min' => '1', 'max' => '48', 'step' => '1', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Height (in px)', 'bosa' ), 'description' => esc_html__( 'This option will only apply to Desktop. Please click on below Desktop Icon to see changes. Automatically adjust by theme default in the responsive devices. ', 'bosa' ), 'type' => 'slider', 'settings' => 'feature_posts_height', 'section' => 'feature_posts_options', 'transport' => 'postMessage', 'default' => 250, 'choices' => array( 'min' => '100', 'max' => '1200', 'step' => '10', ), 'active_callback' => array( array( 'setting' => 'feature_posts_section_layouts', 'operator' => '==', 'value' => array( 'feature_one' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Background Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'feature_posts_image_size', 'section' => 'feature_posts_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'feature_posts_section_layouts', 'operator' => '==', 'value' => array( 'feature_one' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Posts Border Radius (px)', 'bosa' ), 'type' => 'slider', 'settings' => 'feature_posts_radius', 'section' => 'feature_posts_options', 'transport' => 'postMessage', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Text Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'feature_posts_text_alignment', 'section' => 'feature_posts_options', 'default' => 'text-left', 'choices' => array( 'text-left' => esc_html__( 'Left', 'bosa' ), 'text-center' => esc_html__( 'Center', 'bosa' ), 'text-right' => esc_html__( 'Right', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'feature_posts_section_layouts', 'operator' => '==', 'value' => array( 'feature_one' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Content Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'feature_posts_title_alignment', 'section' => 'feature_posts_options', 'default' => 'align-bottom', 'choices' => array( 'align-top' => esc_html__( 'Top', 'bosa' ), 'align-center' => esc_html__( 'Center', 'bosa' ), 'align-bottom' => esc_html__( 'Bottom', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'feature_posts_section_layouts', 'operator' => '==', 'value' => array( 'feature_one' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_feature_posts_title', 'section' => 'feature_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'feature_posts_font_control', 'section' => 'feature_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '500', 'font-size' => '18px', 'text-transform' => 'uppercase', 'line-height' => '1.4', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.feature-posts-content-wrap .feature-posts-content .feature-posts-title', ), ), 'active_callback' => array( array( 'setting' => 'disable_feature_posts_title', 'operator' => '==', 'value' => false, ), array( 'setting' => 'feature_posts_section_layouts', 'operator' => '==', 'value' => array( 'feature_one' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Title Divider', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_feature_title_divider', 'section' => 'feature_posts_options', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_feature_posts_title', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_feature_posts_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Posts category', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_featured_posts_category', 'section' => 'feature_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'featured_posts_cat_font_control', 'section' => 'feature_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '13px', 'text-transform' => 'capitalize', 'line-height' => '1', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.post .feature-posts-content .cat-links a', ), ), 'active_callback' => array( array( 'setting' => 'hide_featured_posts_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Date', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_featured_posts_date', 'section' => 'feature_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Author', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_featured_posts_author', 'section' => 'feature_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Comment', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_featured_posts_comment', 'section' => 'feature_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'featured_posts_meta_font_control', 'section' => 'feature_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '13px', 'text-transform' => 'capitalize', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.post .feature-posts-content .entry-meta a', ), ), 'active_callback' => array( array( array( 'setting' => 'hide_featured_posts_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_featured_posts_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_featured_posts_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); // Latest Posts Options Kirki::add_section( 'latest_posts_options', array( 'title' => esc_html__( 'Latest Posts', 'bosa' ), 'description' => esc_html__( 'More options are available in Blog Page Section.', 'bosa' ), 'panel' => 'blog_homepage_options', 'capability' => 'edit_theme_options', 'priority' => '30', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Latest Posts Section From Homepage', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_latest_posts_section', 'section' => 'latest_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Section Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_latest_posts_section_title', 'section' => 'latest_posts_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title', 'bosa' ), 'type' => 'text', 'settings' => 'latest_posts_section_title', 'section' => 'latest_posts_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'disable_latest_posts_section_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'latest_posts_section_title_font_control', 'section' => 'latest_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-size' => '24px', 'text-transform' => 'none', 'line-height' => '1.2', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-post-area .section-title-wrap .section-title', ), ), 'active_callback' => array( array( 'setting' => 'disable_latest_posts_section_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Section Description', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_latest_posts_section_description', 'section' => 'latest_posts_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Description', 'bosa' ), 'type' => 'text', 'settings' => 'latest_posts_section_description', 'section' => 'latest_posts_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'disable_latest_posts_section_description', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Description Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'latest_posts_section_description_font_control', 'section' => 'latest_posts_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => 'normal', 'font-size' => '16px', 'text-transform' => 'none', 'line-height' => '1.8', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-post-area .section-title-wrap p', ), ), 'active_callback' => array( array( 'setting' => 'disable_latest_posts_section_description', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title and Description Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'latest_posts_section_title_desc_alignment', 'section' => 'latest_posts_options', 'default' => 'left', 'choices' => array( 'left' => esc_html__( 'Left', 'bosa' ), 'center' => esc_html__( 'Center', 'bosa' ), 'right' => esc_html__( 'Right', 'bosa' ), ), 'active_callback' => array( array( array( 'setting' => 'disable_latest_posts_section_title', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_latest_posts_section_description', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Choose Category', 'bosa' ), 'description' => esc_html__( 'Recent posts will show if any category is not chosen.', 'bosa' ), 'type' => 'select', 'settings' => 'latest_posts_category', 'section' => 'latest_posts_options', 'default' => '', 'placeholder' => esc_html__( 'Select category', 'bosa' ), 'choices' => bosa_get_post_categories() ) ); // Highlighted Posts Options Kirki::add_section( 'highlight_posts_options', array( 'title' => esc_html__( 'Highlighted Posts', 'bosa' ), 'panel' => 'blog_homepage_options', 'capability' => 'edit_theme_options', 'priority' => '40', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Highlighted Posts Section', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_highlight_posts_section', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Section Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_highlight_posts_section_title', 'section' => 'highlight_posts_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title', 'bosa' ), 'type' => 'text', 'settings' => 'highlight_posts_section_title', 'section' => 'highlight_posts_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'disable_highlight_posts_section_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'highlight_posts_section_title_font_control', 'section' => 'highlight_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-size' => '24px', 'text-transform' => 'none', 'line-height' => '1.2', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-highlight-post .section-title', ), ), 'active_callback' => array( array( 'setting' => 'disable_highlight_posts_section_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Section Description', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_highlight_posts_section_description', 'section' => 'highlight_posts_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Description', 'bosa' ), 'type' => 'text', 'settings' => 'highlight_posts_section_description', 'section' => 'highlight_posts_options', 'default' => '', 'active_callback' => array( array( 'setting' => 'disable_highlight_posts_section_description', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Description Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'highlight_posts_section_description_font_control', 'section' => 'highlight_posts_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => 'normal', 'font-size' => '16px', 'text-transform' => 'none', 'line-height' => '1.8', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.section-highlight-post .section-title-wrap p', ), ), 'active_callback' => array( array( 'setting' => 'disable_highlight_posts_section_description', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Title and Description Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'highlight_posts_section_title_desc_alignment', 'section' => 'highlight_posts_options', 'default' => 'left', 'choices' => array( 'left' => esc_html__( 'Left', 'bosa' ), 'center' => esc_html__( 'Center', 'bosa' ), 'right' => esc_html__( 'Right', 'bosa' ), ), 'active_callback' => array( array( array( 'setting' => 'disable_highlight_posts_section_title', 'operator' => '==', 'value' => false, ), array( 'setting' => 'disable_highlight_posts_section_description', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Section Layout', 'bosa' ), 'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa' ), 'type' => 'radio-image', 'settings' => 'highlight_posts_section_layouts', 'section' => 'highlight_posts_options', 'default' => 'highlighted_one', 'choices' => array( 'highlighted_one' => get_template_directory_uri() . '/assets/images/highlight-layout-1.png', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Choose Category', 'bosa' ), 'description' => esc_html__( 'Recent posts will show if any category is not chosen.', 'bosa' ), 'type' => 'select', 'settings' => 'highlight_posts_category', 'section' => 'highlight_posts_options', 'default' => '', 'placeholder' => esc_html__( 'Select category', 'bosa' ), 'choices' => bosa_get_post_categories() ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'highlight_post_title_color', 'section' => 'highlight_posts_options', 'default' => '#030303', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_highlight_posts_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'highlight_post_category_bgcolor', 'section' => 'highlight_posts_options', 'default' => '#1f1f1f', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_highlight_posts_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Color', 'bosa' ), 'type' => 'color', 'settings' => 'highlight_post_category_color', 'section' => 'highlight_posts_options', 'default' => '#FFFFFF', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_highlight_posts_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'highlight_post_meta_color', 'section' => 'highlight_posts_options', 'default' => '#7a7a7a', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( array( 'setting' => 'hide_highlight_posts_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_highlight_posts_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_highlight_posts_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Icon Color', 'bosa' ), 'type' => 'color', 'settings' => 'highlight_post_meta_icon_color', 'section' => 'highlight_posts_options', 'default' => '#EB5A3E', 'active_callback' => array( array( array( 'setting' => 'hide_highlight_posts_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_highlight_posts_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_highlight_posts_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'highlight_post_hover_color', 'section' => 'highlight_posts_options', 'default' => '#086abd', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Border Radius (px)', 'bosa' ), 'type' => 'slider', 'settings' => 'highlight_posts_radius', 'section' => 'highlight_posts_options', 'transport' => 'postMessage', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slider Columns', 'bosa' ), 'type' => 'number', 'settings' => 'highlight_posts_slides_show', 'section' => 'highlight_posts_options', 'default' => 3, 'choices' => array( 'min' => '2', 'max' => '4', 'step'=> '1', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Arrows', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_highlight_posts_arrows', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Dots', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_highlight_posts_dots', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Slider Auto Play', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_highlight_posts_autoplay', 'section' => 'highlight_posts_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slider Auto Play Timeout ( in sec )', 'bosa' ), 'type' => 'number', 'settings' => 'highlight_posts_autoplay_speed', 'section' => 'highlight_posts_options', 'default' => 4, 'choices' => array( 'min' => '1', 'max' => '60', 'step'=> '1', ), 'active_callback' => array( array( 'setting' => 'disable_highlight_posts_autoplay', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Slider Post View Number', 'bosa' ), 'description' => esc_html__( 'Number of posts to show.', 'bosa' ), 'type' => 'number', 'settings' => 'highlight_posts_posts_number', 'section' => 'highlight_posts_options', 'default' => 6, 'choices' => array( 'min' => '1', 'max' => '20', 'step' => '1', ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post category', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_highlight_posts_category', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'highlight_posts_cat_font_control', 'section' => 'highlight_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '13px', 'text-transform' => 'capitalize', 'line-height' => '1', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.highlight-post-slider .post .cat-links a', ), ), 'active_callback' => array( array( 'setting' => 'hide_highlight_posts_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_highlight_posts_title', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'highlight_posts_title_font_control', 'section' => 'highlight_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '500', 'font-size' => '18px', 'text-transform' => 'none', 'line-height' => '1.4', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.highlight-post-slider .post .entry-content .entry-title', ), ), 'active_callback' => array( array( 'setting' => 'hide_highlight_posts_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Date', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_highlight_posts_date', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Author', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_highlight_posts_author', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Comment', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_highlight_posts_comment', 'section' => 'highlight_posts_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'highlight_posts_meta_font_control', 'section' => 'highlight_posts_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '13px', 'text-transform' => 'capitalize', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.highlight-post-slider .post .entry-meta a', ), ), 'active_callback' => array( array( array( 'setting' => 'hide_highlight_posts_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_highlight_posts_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_highlight_posts_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Image', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_highlight_posts_image', 'section' => 'highlight_posts_options', 'default' => false, ) ); // Responsive Kirki::add_section( 'blog_page_responsive', array( 'title' => esc_html__( 'Responsive', 'bosa' ), 'description' => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please click on below Tablet or Mobile Icons to see changes.', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '50', 'panel' => 'blog_homepage_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Main Slider / Banner', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_main_slider', 'section' => 'blog_page_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_main_slider', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Featured Posts', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_feature_posts', 'section' => 'blog_page_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_feature_posts_section', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Latest Posts', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_latest_posts', 'section' => 'blog_page_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_latest_posts_section', 'operator' => '=', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Highlighted Posts', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_mobile_highlight_posts', 'section' => 'blog_page_responsive', 'default' => false, 'active_callback' => array( array( 'setting' => 'disable_highlight_posts_section', 'operator' => '=', 'value' => false, ), ), ) ); // Blog Page Options Kirki::add_panel( 'blog_page_options', array( 'title' => esc_html__( 'Blog Page', 'bosa' ), 'priority' => '130', ) ); // Blog Page Style Options Kirki::add_section( 'blog_page_style_options', array( 'title' => esc_html__( 'Style', 'bosa' ), 'panel' => 'blog_page_options', 'capability' => 'edit_theme_options', 'priority' => '10', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Layouts', 'bosa' ), 'description' => esc_html__( 'Grid / List / Single', 'bosa' ), 'type' => 'radio-image', 'settings' => 'archive_post_layout', 'section' => 'blog_page_style_options', 'default' => 'list', 'choices' => array( 'grid' => get_template_directory_uri() . '/assets/images/grid-layout.png', 'list' => get_template_directory_uri() . '/assets/images/list-layout.png', 'single' => get_template_directory_uri() . '/assets/images/single-layout.png', ) ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Posts Border Radius (px)', 'bosa' ), 'type' => 'slider', 'settings' => 'latest_posts_radius', 'section' => 'blog_page_style_options', 'default' => 0, 'transport' => 'postMessage', 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Color', 'bosa' ), 'type' => 'color', 'settings' => 'blog_post_title_color', 'section' => 'blog_page_style_options', 'default' => '#101010', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_post_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Color', 'bosa' ), 'type' => 'color', 'settings' => 'blog_post_category_color', 'section' => 'blog_page_style_options', 'default' => '#EB5A3E', 'active_callback' => array( array( 'setting' => 'hide_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Color', 'bosa' ), 'type' => 'color', 'settings' => 'blog_post_meta_color', 'section' => 'blog_page_style_options', 'default' => '#7a7a7a', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( array( 'setting' => 'hide_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Icon Color', 'bosa' ), 'type' => 'color', 'settings' => 'blog_post_meta_icon_color', 'section' => 'blog_page_style_options', 'default' => '#EB5A3E', 'active_callback' => array( array( array( 'setting' => 'hide_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'blog_post_text_color', 'section' => 'blog_page_style_options', 'default' => '#333333', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'hide_blog_page_excerpt', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Hover Color', 'bosa' ), 'type' => 'color', 'settings' => 'blog_post_hover_color', 'section' => 'blog_page_style_options', 'default' => '#086abd', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_post_title', 'section' => 'blog_page_style_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'blog_post_title_font_control', 'section' => 'blog_page_style_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '500', 'font-size' => '21px', 'text-transform' => 'none', 'line-height' => '1.4', ), 'transport' => 'auto', 'output' => array( array( 'element' => '#primary article .entry-title', ), ), 'active_callback' => array( array( 'setting' => 'hide_post_title', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Category', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_category', 'section' => 'blog_page_style_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Category Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'blog_post_cat_font_control', 'section' => 'blog_page_style_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '400', 'font-size' => '13px', 'text-transform' => 'uppercase', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => '#primary .post .entry-content .entry-header .cat-links a', ), ), 'active_callback' => array( array( 'setting' => 'hide_category', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Date', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_date', 'section' => 'blog_page_style_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Author', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_author', 'section' => 'blog_page_style_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Comments Link', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_comment', 'section' => 'blog_page_style_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Meta Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'blog_post_meta_font_control', 'section' => 'blog_page_style_options', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '13px', 'text-transform' => 'capitalize', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => '#primary .entry-meta', ), ), 'active_callback' => array( array( array( 'setting' => 'hide_date', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_author', 'operator' => '==', 'value' => false, ), array( 'setting' => 'hide_comment', 'operator' => '==', 'value' => false, ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Excerpt', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_blog_page_excerpt', 'section' => 'blog_page_style_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Excerpt Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'blog_post_excerpt_font_control', 'section' => 'blog_page_style_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '400', 'font-size' => '15px', 'text-transform' => 'initial', 'line-height' => '1.8', ), 'transport' => 'auto', 'output' => array( array( 'element' => '#primary .entry-text p', ), ), 'active_callback' => array( array( 'setting' => 'hide_blog_page_excerpt', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Excerpt Length', 'bosa' ), 'description' => esc_html__( 'Select number of words to display in excerpt', 'bosa' ), 'type' => 'number', 'settings' => 'post_excerpt_length', 'section' => 'blog_page_style_options', 'default' => 15, 'choices' => array( 'min' => '5', 'max' => '60', 'step' => '5', ), 'active_callback' => array( array( 'setting' => 'hide_blog_page_excerpt', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Post Button', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_post_button', 'section' => 'blog_page_style_options', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Button', 'bosa' ), 'type' => 'repeater', 'settings' => 'blog_page_button_repeater', 'section' => 'blog_page_style_options', 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Button', 'bosa' ), ), 'default' => array( array( 'blog_btn_type' => 'button-text', 'blog_btn_bg_color' => '#EB5A3E', 'blog_btn_border_color' => '#1a1a1a', 'blog_btn_text_color' => '#1a1a1a', 'blog_btn_hover_color' => '#086abd', 'blog_btn_text' => '', 'blog_btn_radius' => 0, ), ), 'fields' => array( 'blog_btn_type' => array( 'label' => esc_html__( 'Button Type', 'bosa' ), 'type' => 'select', 'default' => 'button-text', 'choices' => array( 'button-primary' => esc_html__( 'Background Button', 'bosa' ), 'button-outline' => esc_html__( 'Border Button', 'bosa' ), 'button-text' => esc_html__( 'Text Only Button', 'bosa' ), ), ), 'blog_btn_bg_color' => array( 'label' => esc_html__( 'Button Background Color', 'bosa' ), 'description' => esc_html__( 'For background button type only.', 'bosa' ), 'type' => 'color', 'default' => '#EB5A3E', ), 'blog_btn_border_color' => array( 'label' => esc_html__( 'Button Border Color', 'bosa' ), 'description' => esc_html__( 'For border button type only.', 'bosa' ), 'type' => 'color', 'default' => '#1a1a1a', ), 'blog_btn_text_color' => array( 'label' => esc_html__( 'Button Text Color', 'bosa' ), 'type' => 'color', 'default' => '#1a1a1a', ), 'blog_btn_hover_color' => array( 'label' => esc_html__( 'Button Hover Color', 'bosa' ), 'type' => 'color', 'default' => '#086abd', ), 'blog_btn_text' => array( 'label' => esc_html__( 'Button Text', 'bosa' ), 'type' => 'text', 'default' => '', ), 'blog_btn_radius' => array( 'label' => esc_html__( 'Button Radius (px)', 'bosa' ), 'type' => 'number', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), ), ), 'choices' => array( 'limit' => 1, ), 'active_callback' => array( array( 'setting' => 'hide_post_button', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Button Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'blog_post_button_font_control', 'section' => 'blog_page_style_options', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '600', 'font-size' => '14px', 'text-transform' => 'capitalize', 'line-height' => '1.6', ), 'transport' => 'auto', 'output' => array( array( 'element' => '#primary .post .entry-text .button-container a', ), ), 'active_callback' => array( array( 'setting' => 'hide_post_button', 'operator' => '==', 'value' => false, ), ), ) ); // Blog Page Elements Options Kirki::add_section( 'blog_page_elements_options', array( 'title' => esc_html__( 'Elements', 'bosa' ), 'panel' => 'blog_page_options', 'capability' => 'edit_theme_options', 'priority' => '20', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Blog Archive Pages Title', 'bosa' ), 'type' => 'select', 'settings' => 'disable_blog_page_title', 'section' => 'blog_page_elements_options', 'default' => 'enable_all_pages', 'choices' => array( 'enable_all_pages' => esc_html__( 'Enable in all', 'bosa' ), 'disable_all_pages' => esc_html__( 'Disable from all', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Pagination', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_pagination', 'section' => 'blog_page_elements_options', 'default' => false, ) ); // Single Post Options Kirki::add_section( 'single_post_options', array( 'title' => esc_html__( 'Single Post', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '140', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title', 'bosa' ), 'type' => 'select', 'settings' => 'disable_single_post_title', 'section' => 'single_post_options', 'default' => 'enable_all_pages', 'choices' => array( 'enable_all_pages' => esc_html__( 'Enable in all', 'bosa' ), 'disable_all_pages' => esc_html__( 'Disable from all', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Post Title Position', 'bosa' ), 'type' => 'select', 'settings' => 'post_title_position', 'section' => 'single_post_options', 'default' => 'above_feature_image', 'choices' => array( 'below_feature_image' => esc_html__( 'Below Feature Image', 'bosa' ), 'above_feature_image' => esc_html__( 'Top of the Page', 'bosa' ), ), 'active_callback' => array( array( array( 'setting' => 'disable_transparent_header_post', 'operator' => '==', 'value' => true, ), array( 'setting' => 'header_layout', 'operator' => '!=', 'value' => 'header_two', ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Feature Image', 'bosa' ), 'type' => 'select', 'settings' => 'single_feature_image', 'section' => 'single_post_options', 'default' => 'show_in_all_pages', 'choices' => array( 'show_in_all_pages' => esc_html__( 'Show in all Pages', 'bosa' ), 'disable_in_all_pages' => esc_html__( 'Disable in all Pages', 'bosa' ), ), 'active_callback' => array( array( array( 'setting' => 'disable_transparent_header_post', 'operator' => '==', 'value' => true, ), array( 'setting' => 'header_layout', 'operator' => '!=', 'value' => 'header_two', ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Transparent Header', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_transparent_header_post', 'section' => 'single_post_options', 'default' => true, 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Banner Height (in px)', 'bosa' ), 'type' => 'slider', 'settings' => 'transparent_header_banner_post_height', 'section' => 'single_post_options', 'transport' => 'postMessage', 'default' => 400, 'choices' => array( 'min' => 50, 'max' => 1500, 'step' => 10, ), 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_transparent_header_post', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Banner Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'transparent_header_banner_post_size', 'section' => 'single_post_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_transparent_header_post', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Banner Overlay Opacity', 'bosa' ), 'type' => 'number', 'settings' => 'transparent_header_banner_post_opacity', 'section' => 'single_post_options', 'default' => 4, 'choices' => array( 'min' => '0', 'max' => '9', 'step' => '1', ), 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_transparent_header_post', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Date', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_single_post_date', 'section' => 'single_post_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Comments Link', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_single_post_comment', 'section' => 'single_post_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable category', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_single_post_category', 'section' => 'single_post_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Tag Links', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_single_post_tag_links', 'section' => 'single_post_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Author', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_single_post_author', 'section' => 'single_post_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Author Section Title', 'bosa' ), 'type' => 'text', 'settings' => 'single_post_author_title', 'section' => 'single_post_options', 'default' => esc_html__( 'About the Author', 'bosa' ), 'active_callback' => array( array( 'setting' => 'hide_single_post_author', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Related Posts', 'bosa' ), 'type' => 'checkbox', 'settings' => 'hide_related_posts', 'section' => 'single_post_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Related Posts Section Title', 'bosa' ), 'type' => 'text', 'settings' => 'related_posts_title', 'section' => 'single_post_options', 'default' => esc_html__( 'You may also like these', 'bosa' ), 'active_callback' => array( array( 'setting' => 'hide_related_posts', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Related Posts Items', 'bosa' ), 'description' => esc_html__( 'Total number of related posts to show.', 'bosa' ), 'type' => 'number', 'settings' => 'related_posts_count', 'section' => 'single_post_options', 'default' => 4, 'choices' => array( 'min' => '1', 'max' => '12', 'step' => '1', ), 'active_callback' => array( array( 'setting' => 'hide_related_posts', 'operator' => '==', 'value' => false, ), ), ) ); // Pages Options Kirki::add_section( 'pages_options', array( 'title' => esc_html__( 'Pages', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '150', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Page Title', 'bosa' ), 'type' => 'select', 'settings' => 'disable_page_title', 'section' => 'pages_options', 'default' => 'disable_front_page', 'choices' => array( 'disable_all_pages' => esc_html__( 'Disable from all', 'bosa' ), 'enable_all_pages' => esc_html__( 'Enable in all', 'bosa' ), 'disable_front_page' => esc_html__( 'Disable from frontpage only', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Page Title Position', 'bosa' ), 'type' => 'select', 'settings' => 'page_title_position', 'section' => 'pages_options', 'default' => 'above_feature_image', 'choices' => array( 'below_feature_image' => esc_html__( 'Below Feature Image', 'bosa' ), 'above_feature_image' => esc_html__( 'Top of the Page', 'bosa' ), ), 'active_callback' => array( array( array( 'setting' => 'disable_transparent_header_page', 'operator' => '==', 'value' => true, ), array( 'setting' => 'header_layout', 'operator' => '!=', 'value' => 'header_two', ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Feature Image', 'bosa' ), 'type' => 'select', 'settings' => 'page_feature_image', 'section' => 'pages_options', 'default' => 'show_in_all_pages', 'choices' => array( 'show_in_all_pages' => esc_html__( 'Show in all Pages', 'bosa' ), 'disable_in_all_pages' => esc_html__( 'Disable in all Pages', 'bosa' ), 'disable_in_frontpage' => esc_html__( 'Disable in Frontpage only', 'bosa' ), 'show_in_frontpage' => esc_html__( 'Show in Frontpage only', 'bosa' ), ), 'active_callback' => array( array( array( 'setting' => 'disable_transparent_header_page', 'operator' => '==', 'value' => true, ), array( 'setting' => 'header_layout', 'operator' => '!=', 'value' => 'header_two', ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Transparent Header', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_transparent_header_page', 'section' => 'pages_options', 'default' => true, 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Banner Height (in px)', 'bosa' ), 'type' => 'slider', 'settings' => 'transparent_header_banner_page_height', 'section' => 'pages_options', 'transport' => 'postMessage', 'default' => 400, 'choices' => array( 'min' => 50, 'max' => 1500, 'step' => 10, ), 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_transparent_header_page', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Banner Image Size', 'bosa' ), 'type' => 'radio', 'settings' => 'transparent_header_banner_page_size', 'section' => 'pages_options', 'default' => 'cover', 'choices' => array( 'cover' => esc_html__( 'Cover', 'bosa' ), 'pattern' => esc_html__( 'Pattern / Repeat', 'bosa' ), 'norepeat' => esc_html__( 'No Repeat', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_transparent_header_page', 'operator' => '==', 'value' => false, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Transparent Header Banner Overlay Opacity', 'bosa' ), 'type' => 'number', 'settings' => 'transparent_header_banner_page_opacity', 'section' => 'pages_options', 'default' => 4, 'choices' => array( 'min' => '0', 'max' => '9', 'step' => '1', ), 'active_callback' => array( array( 'setting' => 'header_layout', 'operator' => '==', 'value' => 'header_two', ), array( 'setting' => 'disable_transparent_header_page', 'operator' => '==', 'value' => false, ), ), ) ); // 404 Error Page Kirki::add_section( 'error404_options', array( 'title' => esc_html__( '404 Page', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '160', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Image', 'bosa' ), 'description' => esc_html__( 'Recommended image size 360x200 pixel.', 'bosa' ), 'type' => 'image', 'settings' => 'error404_image', 'section' => 'error404_options', 'default' => '', 'choices' => array( 'save_as' => 'id', ), ) ); // Preloader Options Kirki::add_section( 'preloader_options', array( 'title' => esc_html__( 'Preloader', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '170', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Preloading', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_preloader', 'section' => 'preloader_options', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Preloading Animations', 'bosa' ), 'type' => 'select', 'settings' => 'preloader_animation', 'section' => 'preloader_options', 'default' => 'animation_one', 'choices' => array( 'animation_one' => esc_html__( 'Animation One', 'bosa' ), 'animation_two' => esc_html__( 'Animation Two', 'bosa' ), 'animation_three' => esc_html__( 'Animation Three', 'bosa' ), 'animation_four' => esc_html__( 'Animation Four', 'bosa' ), 'animation_five' => esc_html__( 'Animation Five', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Image Width', 'bosa' ), 'type' => 'slider', 'settings' => 'preloader_custom_image_width', 'section' => 'preloader_options', 'transport' => 'postMessage', 'default' => 40, 'choices' => array( 'min' => 10, 'max' => 200, 'step' => 1, ), ) ); // Breadcrumbs Kirki::add_section( 'breadcrumbs_options', array( 'title' => esc_html__( 'Breadcrumbs', 'bosa' ), 'capability' => 'edit_theme_options', 'priority' => '180', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Breadcrumbs', 'bosa' ), 'type' => 'select', 'settings' => 'breadcrumbs_controls', 'section' => 'breadcrumbs_options', 'default' => 'show_in_all_page_post', 'choices' => array( 'disable_in_all_pages' => esc_html__( 'Disable in all Pages Only', 'bosa' ), 'disable_in_all_page_post' => esc_html__( 'Disable in all Pages & Posts', 'bosa' ), 'show_in_all_page_post' => esc_html__( 'Show in all Pages & Posts', 'bosa' ), ) ) ); // WooCommerce Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'General / Style', 'bosa' ), 'type' => 'radio-buttonset', 'settings' => 'woocommerce_product_catalog_tabs', 'section' => 'woocommerce_product_catalog', 'default' => 'product_catalog_general_tab', 'choices' => array( 'product_catalog_general_tab' => esc_html__( 'General', 'bosa' ), 'product_catalog_style_tab' => esc_html__( 'Style', 'bosa' ), ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'product_card_separator', 'section' => 'woocommerce_product_catalog', 'default' => esc_html__( 'Product Card Options', 'bosa' ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Product Card Layout', 'bosa' ), 'type' => 'radio-image', 'settings' => 'woocommerce_product_card_layout', 'section' => 'woocommerce_product_catalog', 'default' => 'product_layout_one', 'choices' => array( 'product_layout_one' => get_template_directory_uri() . '/assets/images/product-card-layout-one.png', 'product_layout_two' => get_template_directory_uri() . '/assets/images/product-card-layout-two.png', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Add To Cart Button', 'bosa' ), 'type' => 'radio-image', 'settings' => 'woocommerce_add_to_cart_button', 'section' => 'woocommerce_product_catalog', 'default' => 'cart_button_two', 'choices' => array( 'cart_button_one' => get_template_directory_uri() . '/assets/images/cart-button-one.png', 'cart_button_two' => get_template_directory_uri() . '/assets/images/cart-button-two.png', 'cart_button_three' => get_template_directory_uri() . '/assets/images/cart-button-three.png', 'cart_button_four' => get_template_directory_uri() . '/assets/images/cart-button-four.png', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Icon Group Layout', 'bosa' ), 'description' => esc_html__( 'Yith WooCommerce Compare, Wishlist and Quick View are grouped together. Install these plugins to use this option.', 'bosa' ), 'type' => 'radio-image', 'settings' => 'icon_group_layout', 'section' => 'woocommerce_product_catalog', 'default' => 'group_layout_one', 'choices' => array( 'group_layout_one' => get_template_directory_uri() . '/assets/images/iconbox-layout-one.png', 'group_layout_two' => get_template_directory_uri() . '/assets/images/iconbox-layout-two.png', 'group_layout_three' => get_template_directory_uri() . '/assets/images/iconbox-layout-three.png', 'group_layout_four' => get_template_directory_uri() . '/assets/images/iconbox-layout-four.png', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Layout Type', 'bosa' ), 'type' => 'radio-image', 'settings' => 'woocommerce_product_layout_type', 'section' => 'woocommerce_product_catalog', 'default' => 'product_layout_grid', 'choices' => array( 'product_layout_grid' => get_template_directory_uri() . '/assets/images/product-layout-type-one.png', 'product_layout_list' => get_template_directory_uri() . '/assets/images/product-layout-type-two.png', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Text Alignment', 'bosa' ), 'type' => 'select', 'settings' => 'woocommerce_product_card_text_alignment', 'section' => 'woocommerce_product_catalog', 'default' => 'text-center', 'choices' => array( 'text-left' => esc_html__( 'Left', 'bosa' ), 'text-center' => esc_html__( 'Center', 'bosa' ), 'text-right' => esc_html__( 'Right', 'bosa' ), ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Products Per Row', 'bosa' ), 'description' => esc_html__( 'How many products should be shown per row?', 'bosa' ), 'type' => 'number', 'settings' => 'woocommerce_shop_product_column', 'section' => 'woocommerce_product_catalog', 'default' => 3, 'choices' => array( 'min' => '1', 'max' => '4', 'step'=> '1', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Product Display Per Page', 'bosa' ), 'type' => 'number', 'settings' => 'woocommerce_product_per_page', 'section' => 'woocommerce_product_catalog', 'default' => 9, 'choices' => array( 'min' => '1', 'max' => '60', 'step'=> '1', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'type' => 'custom', 'settings' => 'sale_tag_separator', 'section' => 'woocommerce_product_catalog', 'default' => esc_html__( 'Sale Tag Options', 'bosa' ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sale Tag Layout', 'bosa' ), 'type' => 'radio-image', 'settings' => 'woocommerce_sale_tag_layout', 'section' => 'woocommerce_product_catalog', 'default' => 'sale_tag_layout_one', 'choices' => array( 'sale_tag_layout_one' => get_template_directory_uri() . '/assets/images/product-badge-style-one.png', 'sale_tag_layout_two' => get_template_directory_uri() . '/assets/images/product-badge-style-two.png', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), array( 'setting' => 'icon_group_layout', 'operator' => '!=', 'value' => 'group_layout_four', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sale Badge Text', 'bosa' ), 'type' => 'text', 'settings' => 'woocommerce_sale_badge_text', 'section' => 'woocommerce_product_catalog', 'default' => esc_html__( 'Sale!', 'bosa' ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Enable Sale Badge Percentage', 'bosa' ), 'description' => esc_html__( 'Replaces sale badge text with sale percent.', 'bosa' ), 'type' => 'checkbox', 'settings' => 'enable_sale_badge_percent', 'section' => 'woocommerce_product_catalog', 'default' => false, 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sale Badge Percentage Text', 'bosa' ), 'description' => esc_html__( 'Input text to accompany with percentage {value} tag. Example: {value}% OFF!', 'bosa' ), 'type' => 'text', 'settings' => 'woocommerce_sale_badge_percent', 'section' => 'woocommerce_product_catalog', 'default' => esc_html__( '-{value}%', 'bosa' ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_general_tab', ), array( 'setting' => 'enable_sale_badge_percent', 'operator' => '==', 'value' => true, ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Product Card Style', 'bosa' ), 'type' => 'radio-image', 'settings' => 'woocommerce_product_card_style', 'section' => 'woocommerce_product_catalog', 'default' => 'card_style_one', 'choices' => array( 'card_style_one' => get_template_directory_uri() . '/assets/images/product-card-style-one.png', 'card_style_two' => get_template_directory_uri() . '/assets/images/product-card-style-two.png', 'card_style_three' => get_template_directory_uri() . '/assets/images/product-card-style-three.png', ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Add to Cart Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'add_to_cart_bg_color', 'section' => 'woocommerce_product_catalog', 'default' => '#333333', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'woocommerce_add_to_cart_button', 'operator' => 'contains', 'value' => array( 'cart_button_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Add to Cart Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'add_to_cart_white_bg_color', 'section' => 'woocommerce_product_catalog', 'default' => '#ffffff', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'woocommerce_add_to_cart_button', 'operator' => 'contains', 'value' => array( 'cart_button_four' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Add to Cart Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'add_to_cart_text_color', 'section' => 'woocommerce_product_catalog', 'default' => '#ffffff', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'woocommerce_add_to_cart_button', 'operator' => 'contains', 'value' => array( 'cart_button_two' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Add to Cart Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'add_to_cart_black_text_color', 'section' => 'woocommerce_product_catalog', 'default' => '#333333', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'woocommerce_add_to_cart_button', 'operator' => 'contains', 'value' => array( 'cart_button_three' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Add to Cart Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'cart_four_black_text_color', 'section' => 'woocommerce_product_catalog', 'default' => '#333333', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'woocommerce_add_to_cart_button', 'operator' => 'contains', 'value' => array( 'cart_button_four' ), ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Icon Group Border Radius', 'bosa' ), 'type' => 'slider', 'settings' => 'icon_group_one_border_radius', 'section' => 'woocommerce_product_catalog', 'transport' => 'postMessage', 'default' => 100, 'choices' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'icon_group_layout', 'operator' => '==', 'value' => 'group_layout_one', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Icon Group Border Radius', 'bosa' ), 'type' => 'slider', 'settings' => 'icon_group_two_border_radius', 'section' => 'woocommerce_product_catalog', 'transport' => 'postMessage', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'icon_group_layout', 'operator' => '==', 'value' => 'group_layout_two', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Icon Group Border Radius', 'bosa' ), 'type' => 'slider', 'settings' => 'icon_group_three_border_radius', 'section' => 'woocommerce_product_catalog', 'transport' => 'postMessage', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'icon_group_layout', 'operator' => '==', 'value' => 'group_layout_three', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Icon Group Border Radius', 'bosa' ), 'type' => 'slider', 'settings' => 'icon_group_four_border_radius', 'section' => 'woocommerce_product_catalog', 'transport' => 'postMessage', 'default' => 100, 'choices' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'icon_group_layout', 'operator' => '==', 'value' => 'group_layout_four', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sale Tag Background Color', 'bosa' ), 'type' => 'color', 'settings' => 'sale_tag_bg_color', 'section' => 'woocommerce_product_catalog', 'default' => '#EB5A3E', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sale Tag Text Color', 'bosa' ), 'type' => 'color', 'settings' => 'sale_tag_text_color', 'section' => 'woocommerce_product_catalog', 'default' => '#ffffff', 'active_callback' => array( array( 'setting' => 'skin_select', 'operator' => 'contains', 'value' => array( 'default', 'blackwhite' ), ), array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Sale Button Border Radius', 'bosa' ), 'type' => 'slider', 'settings' => 'sale_button_border_radius', 'section' => 'woocommerce_product_catalog', 'transport' => 'postMessage', 'default' => 0, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Product Title Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'shop_product_title_font_control', 'section' => 'woocommerce_product_catalog', 'default' => array( 'font-family' => 'Poppins', 'variant' => '600', 'font-style' => 'normal', 'font-size' => '20px', 'text-transform' => 'none', 'line-height' => '1.4', 'letter-spacing' => '0', 'text-decoration' => 'none', 'color' => '#030303', ), 'transport' => 'auto', 'output' => array( array( 'element' => 'body[class*=woocommerce] ul.products li.product .woocommerce-loop-product__title', ), ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Product Price Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'shop_product_price_font_control', 'section' => 'woocommerce_product_catalog', 'default' => array( 'font-family' => 'Open Sans', 'variant' => '500', 'font-style' => 'normal', 'font-size' => '16px', 'text-transform' => 'none', 'line-height' => '1.3', 'letter-spacing' => '0', 'text-decoration' => 'none', 'color' => '#414141', ), 'transport' => 'auto', 'output' => array( array( 'element' => 'body[class*=woocommerce] ul.products li.product .price', ), ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), ), ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Add to Cart Button Typography', 'bosa' ), 'type' => 'typography', 'settings' => 'shop_cart_button_font_control', 'section' => 'woocommerce_product_catalog', 'default' => array( 'font-family' => 'Poppins', 'variant' => 'regular', 'font-style' => 'normal', 'font-size' => '15px', 'text-transform' => 'none', 'line-height' => '1.5', 'letter-spacing' => '0', ), 'transport' => 'auto', 'output' => array( array( 'element' => 'body[class*=woocommerce] .product-inner .button, body[class*=woocommerce] .product-inner .added_to_cart', ), ), 'active_callback' => array( array( 'setting' => 'woocommerce_product_catalog_tabs', 'operator' => '==', 'value' => 'product_catalog_style_tab', ), array( 'setting' => 'woocommerce_add_to_cart_button', 'operator' => '!=', 'value' => array( 'cart_button_four' ), ), ), ) ); Kirki::add_section( 'woocommerce_single_product', array( 'title' => esc_html__( 'Single Products', 'bosa' ), 'panel' => 'woocommerce', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Single Product Page Title', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_single_product_title', 'section' => 'woocommerce_single_product', 'default' => true, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Breadcrumbs', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_single_product_breadcrumbs', 'section' => 'woocommerce_single_product', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable SKU', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_single_product_sku', 'section' => 'woocommerce_single_product', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Category', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_single_product_category', 'section' => 'woocommerce_single_product', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Tags', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_single_product_tags', 'section' => 'woocommerce_single_product', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Product Tabs', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_single_product_tabs', 'section' => 'woocommerce_single_product', 'default' => false, ) ); Kirki::add_field( 'bosa', array( 'label' => esc_html__( 'Disable Relatable Products', 'bosa' ), 'type' => 'checkbox', 'settings' => 'disable_single_product_related_products', 'section' => 'woocommerce_single_product', 'default' => false, ) ); }