<?php

defined('ABSPATH') || die("Can't access directly");
function wpbf_kirki_premium()
{
    if (!class_exists('Kirki')) {
        return;
    }
    load_plugin_textdomain('wpbfpremium', false, plugin_basename(dirname(__FILE__)) . '/languages');
    if (!function_exists('wpbf_kirki_sanitize_helper')) {
        function wpbf_kirki_sanitize_helper($callback)
        {
            return function ($value) use($callback) {
                if (!empty($value)) {
                    $value = json_decode(trim($value), true);
                    $value = array_map($callback, $value);
                    $value = json_encode($value);
                }
                return $value;
            };
        }
    }
    function wpbf_social_choices()
    {
        return array('facebook' => __('Facebook', 'wpbfpremium'), 'twitter' => __('Twitter', 'wpbfpremium'), 'pinterest' => __('Pinterest', 'wpbfpremium'), 'youtube' => __('Youtube', 'wpbfpremium'), 'instagram' => __('Instagram', 'wpbfpremium'), 'vimeo' => __('Vimeo', 'wpbfpremium'), 'soundcloud' => __('Soundcloud', 'wpbfpremium'), 'linkedin' => __('LinkedIn', 'wpbfpremium'), 'yelp' => __('Yelp', 'wpbfpremium'), 'behance' => __('Behance', 'wpbfpremium'), 'spotify' => __('Spotify', 'wpbfpremium'), 'reddit' => __('Reddit', 'wpbfpremium'), 'rss' => __('RSS', 'wpbfpremium'), 'github' => __('GitHub', 'wpbfpremium'), 'messenger' => __('Facebook Messenger', 'wpbfpremium'), 'whatsapp' => __('WhatsApp', 'wpbfpremium'), 'snapchat' => __('Snapchat', 'wpbfpremium'), 'xing' => __('Xing', 'wpbfpremium'));
    }
    Kirki::add_panel('scripts_panel', array('priority' => 6, 'title' => __('Scripts & Styles', 'wpbfpremium')));
    Kirki::add_section('wpbf_header_scripts', array('title' => __('Header', 'wpbfpremium'), 'panel' => 'scripts_panel', 'priority' => 100));
    Kirki::add_section('wpbf_footer_scripts', array('title' => __('Footer', 'wpbfpremium'), 'panel' => 'scripts_panel', 'priority' => 200));
    Kirki::add_section('wpbf_typekit_options', array('title' => __('Adobe Fonts', 'wpbfpremium'), 'panel' => 'typo_panel', 'priority' => 800));
    Kirki::add_section('wpbf_custom_fonts_options', array('title' => __('Custom Fonts', 'wpbfpremium'), 'panel' => 'typo_panel', 'priority' => 900));
    Kirki::add_section('wpbf_global_options', array('title' => __('Theme Colors', 'wpbfpremium'), 'panel' => 'layout_panel', 'priority' => 250));
    Kirki::add_section('wpbf_social_icons_options', array('title' => __('Social Media Icons', 'wpbfpremium'), 'panel' => 'layout_panel', 'priority' => 1100));
    Kirki::add_section('wpbf_transparent_header_options', array('title' => __('Transparent Header', 'wpbfpremium'), 'panel' => 'header_panel', 'priority' => 350));
    Kirki::add_section('wpbf_sticky_menu_options', array('title' => __('Sticky Navigation', 'wpbfpremium'), 'panel' => 'header_panel', 'priority' => 400));
    Kirki::add_section('wpbf_menu_effect_options', array('title' => __('Navigation Hover Effects', 'wpbfpremium'), 'panel' => 'header_panel', 'priority' => 500));
    Kirki::add_section('wpbf_cta_button_options', array('title' => __('Call to Action Button', 'wpbfpremium'), 'panel' => 'header_panel', 'priority' => 600));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'base_color_alt_global', 'label' => __('Base Color', 'wpbfpremium'), 'section' => 'wpbf_global_options', 'default' => '#dedee5', 'priority' => 0, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'base_color_global', 'label' => __('Base Color (Secondary)', 'wpbfpremium'), 'section' => 'wpbf_global_options', 'default' => '#f5f5f7', 'priority' => 0, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'base_color_separator', 'section' => 'wpbf_global_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 0));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'brand_color_global', 'label' => __('Brand Color', 'wpbfpremium'), 'section' => 'wpbf_global_options', 'default' => '#3e4349', 'priority' => 0, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'brand_color_alt_global', 'label' => __('Brand Color (Secondary)', 'wpbfpremium'), 'section' => 'wpbf_global_options', 'default' => '#6d7680', 'priority' => 0, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'brand_color_separator', 'section' => 'wpbf_global_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 0));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'accent_color_global', 'label' => __('Accent Color', 'wpbfpremium'), 'section' => 'wpbf_global_options', 'default' => '#3ba9d2', 'priority' => 0, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'accent_color_alt_global', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_global_options', 'default' => '#79c4e0', 'priority' => 0, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-52921', 'section' => 'wpbf_404_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 100));
    Kirki::add_field('wpbf', array('type' => 'code', 'label' => __('Custom 404 Page', 'wpbfpremium'), 'description' => __('Replace the default 404 page with your custom layout. <br><br>Example:<br>[elementor-template id="xxx"]<br>[fl_builder_insert_layout id="xxx"]', 'wpbfpremium'), 'settings' => '404_custom', 'section' => 'wpbf_404_options', 'priority' => 100, 'choices' => array('language' => 'html')));
    Kirki::add_field('wpbf', array('type' => 'sortable', 'settings' => 'social_sortable', 'label' => __('Icons', 'wpbfpremium'), 'description' => __('Display social media icons in your pre-header, footer or template file by using the [social] shortcode.', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'default' => array(), 'choices' => wpbf_social_choices(), 'priority' => 1, 'partial_refresh' => array('social_sortable' => array('container_inclusive' => true, 'selector' => '.wpbf-social-icons', 'render_callback' => function () {
        return wpbf_social();
    }))));
    $choices = wpbf_social_choices();
    foreach ($choices as $choice => $choice) {
        Kirki::add_field('wpbf', array('type' => 'url', 'settings' => $choice . '_link', 'transport' => 'postMessage', 'label' => ucfirst($choice) . ' ' . __('URL', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'priority' => 10, 'active_callback' => array(array('setting' => 'social_sortable', 'operator' => 'in', 'value' => $choice))));
    }
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-523261407', 'section' => 'wpbf_social_icons_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 20));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'social_shapes', 'label' => __('Style', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'default' => 'wpbf-social-shape-plain', 'priority' => 20, 'multiple' => 1, 'choices' => array('wpbf-social-shape-plain' => __('Plain', 'wpbfpremium'), 'wpbf-social-shape-rounded' => __('Rounded', 'wpbfpremium'), 'wpbf-social-shape-boxed' => __('Boxed', 'wpbfpremium')), 'partial_refresh' => array('social_shapes' => array('container_inclusive' => true, 'selector' => '.wpbf-social-icons', 'render_callback' => function () {
        return wpbf_social();
    }))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'social_styles', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'default' => 'wpbf-social-style-default', 'priority' => 20, 'multiple' => 1, 'choices' => array('wpbf-social-style-default' => __('Accent Color', 'wpbfpremium'), 'wpbf-social-style-grey' => __('Custom', 'wpbfpremium'), 'wpbf-social-style-brand' => __('Brand Colors', 'wpbfpremium'), 'wpbf-social-style-filled' => __('Filled', 'wpbfpremium')), 'partial_refresh' => array('social_styles' => array('container_inclusive' => true, 'selector' => '.wpbf-social-icons', 'render_callback' => function () {
        return wpbf_social();
    }))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'social_sizes', 'label' => __('Size', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'default' => 'wpbf-social-size-small', 'priority' => 20, 'multiple' => 1, 'choices' => array('wpbf-social-size-small' => __('Small', 'wpbfpremium'), 'wpbf-social-size-large' => __('Large', 'wpbfpremium')), 'partial_refresh' => array('social_sizes' => array('container_inclusive' => true, 'selector' => '.wpbf-social-icons', 'render_callback' => function () {
        return wpbf_social();
    }))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'social_background_color', 'label' => __('Background color', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'priority' => 20, 'transport' => 'postMessage', 'default' => '#f5f5f7', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'social_shapes', 'operator' => '!=', 'value' => 'wpbf-social-shape-plain'), array('setting' => 'social_styles', 'operator' => '!=', 'value' => 'wpbf-social-style-filled'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'social_background_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'priority' => 20, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'social_shapes', 'operator' => '!=', 'value' => 'wpbf-social-shape-plain'), array('setting' => 'social_styles', 'operator' => '!=', 'value' => 'wpbf-social-style-filled'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'social_color', 'label' => __('Icon Color', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'priority' => 20, 'default' => '#aaaaaa', 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'social_styles', 'operator' => '==', 'value' => 'wpbf-social-style-grey'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'social_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'priority' => 20, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'social_styles', 'operator' => '==', 'value' => 'wpbf-social-style-grey'))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'social_font_size', 'label' => __('Icon Size', 'wpbfpremium'), 'section' => 'wpbf_social_icons_options', 'priority' => 20, 'default' => 14, 'transport' => 'postMessage', 'choices' => array('min' => '12', 'max' => '32', 'step' => '1')));
    $archives = apply_filters('wpbf_archives', array('archive'));
    foreach ($archives as $archive) {
        Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => $archive . '_grid_layout_headline', 'section' => 'wpbf_' . $archive . '_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Grid Layout Settings', 'wpbfpremium') . '</h3>', 'priority' => 100, 'active_callback' => array(array('setting' => $archive . '_layout', 'operator' => '==', 'value' => 'grid'))));
        Kirki::add_field('wpbf', array('type' => 'responsive_input', 'settings' => $archive . '_grid', 'label' => __('Posts per Row', 'wpbfpremium'), 'section' => 'wpbf_' . $archive . '_options', 'priority' => 110, 'default' => json_encode(array('desktop' => '3', 'tablet' => '2', 'mobile' => '1')), 'active_callback' => array(array('setting' => $archive . '_layout', 'operator' => '==', 'value' => 'grid')), 'sanitize_callback' => wpbf_kirki_sanitize_helper('absint')));
        Kirki::add_field('wpbf', array('type' => 'select', 'settings' => $archive . '_grid_gap', 'label' => __('Grid Gap', 'wpbf-premium'), 'section' => 'wpbf_' . $archive . '_options', 'default' => 'small', 'priority' => 120, 'multiple' => 1, 'choices' => array('small' => __('Small', 'wpbfpremium'), 'medium' => __('Medium', 'wpbfpremium'), 'large' => __('Large', 'wpbfpremium'), 'xlarge' => __('xLarge', 'wpbfpremium'), 'collapse' => __('Collapse', 'wpbfpremium')), 'active_callback' => array(array('setting' => $archive . '_layout', 'operator' => '==', 'value' => 'grid'))));
        Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => $archive . '_grid_masonry', 'label' => __('Masonry Effect', 'wpbfpremium'), 'section' => 'wpbf_' . $archive . '_options', 'default' => '0', 'priority' => 130, 'active_callback' => array(array('setting' => $archive . '_layout', 'operator' => '==', 'value' => 'grid'))));
        Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => $archive . '-separator-87965', 'section' => 'wpbf_' . $archive . '_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 140));
        Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => $archive . '_infinite_scroll', 'label' => __('Infinite Scroll', 'wpbfpremium'), 'section' => 'wpbf_' . $archive . '_options', 'default' => '0', 'priority' => 150));
    }
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'page_bold_color', 'label' => __('Bold Text Color', 'wpbfpremium'), 'section' => 'wpbf_font_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_line_height', 'label' => __('Line Height', 'wpbfpremium'), 'section' => 'wpbf_font_options', 'priority' => 4, 'default' => '1.7', 'transport' => 'postMessage', 'choices' => array('min' => '1', 'max' => '5', 'step' => '.1')));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'menu_letter_spacing', 'label' => __('Letter Spacing', 'wpbfpremium'), 'section' => 'wpbf_menu_font_options', 'priority' => 3, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '-2', 'max' => '5', 'step' => '.5')));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'menu_text_transform', 'label' => __('Text transform', 'wpbfpremium'), 'section' => 'wpbf_menu_font_options', 'default' => 'none', 'priority' => 4, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'lowercase' => __('Lowercase', 'wpbfpremium'), 'uppercase' => __('Uppercase', 'wpbfpremium'), 'capitalize' => __('Capitalize', 'wpbfpremium'))));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'section' => 'wpbf_font_options', 'settings' => 'page_font_size', 'priority' => 1, 'transport' => 'postMessage', 'default' => json_encode(array('desktop' => '16px', 'tablet' => '', 'mobile' => '')), 'choices' => array('min' => 0, 'max' => 100, 'step' => 1), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'section' => 'wpbf_h1_options', 'settings' => 'page_h1_font_size', 'priority' => 2, 'transport' => 'postMessage', 'default' => json_encode(array('desktop' => '32px', 'tablet' => '', 'mobile' => '')), 'choices' => array('min' => 0, 'max' => 100, 'step' => 1), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'page_h1_font_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_h1_options', 'priority' => 3, 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h1_line_height', 'label' => __('Line Height', 'wpbfpremium'), 'section' => 'wpbf_h1_options', 'priority' => 4, 'default' => '1.2', 'transport' => 'postMessage', 'choices' => array('min' => '1', 'max' => '5', 'step' => '.1')));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h1_letter_spacing', 'label' => __('Letter Spacing', 'wpbfpremium'), 'section' => 'wpbf_h1_options', 'priority' => 5, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '-2', 'max' => '5', 'step' => '.5')));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'page_h1_text_transform', 'label' => __('Text transform', 'wpbfpremium'), 'section' => 'wpbf_h1_options', 'default' => 'none', 'priority' => 6, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'lowercase' => __('Lowercase', 'wpbfpremium'), 'uppercase' => __('Uppercase', 'wpbfpremium'), 'capitalize' => __('Capitalize', 'wpbfpremium'))));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'section' => 'wpbf_h2_options', 'settings' => 'page_h2_font_size', 'priority' => 2, 'transport' => 'postMessage', 'default' => json_encode(array('desktop' => '28px', 'tablet' => '', 'mobile' => '')), 'choices' => array('min' => 0, 'max' => 100, 'step' => 1), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'page_h2_font_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_h2_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h2_line_height', 'label' => __('Line Height', 'wpbfpremium'), 'section' => 'wpbf_h2_options', 'priority' => 4, 'default' => '1.2', 'transport' => 'postMessage', 'choices' => array('min' => '1', 'max' => '5', 'step' => '.1'), 'active_callback' => array(array('setting' => 'page_h2_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h2_letter_spacing', 'label' => __('Letter Spacing', 'wpbfpremium'), 'section' => 'wpbf_h2_options', 'priority' => 5, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '-2', 'max' => '5', 'step' => '.5'), 'active_callback' => array(array('setting' => 'page_h2_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'page_h2_text_transform', 'label' => __('Text transform', 'wpbfpremium'), 'section' => 'wpbf_h2_options', 'default' => 'none', 'priority' => 6, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'lowercase' => __('Lowercase', 'wpbfpremium'), 'uppercase' => __('Uppercase', 'wpbfpremium'), 'capitalize' => __('Capitalize', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'page_h2_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'section' => 'wpbf_h3_options', 'settings' => 'page_h3_font_size', 'priority' => 2, 'transport' => 'postMessage', 'default' => json_encode(array('desktop' => '24px', 'tablet' => '', 'mobile' => '')), 'choices' => array('min' => 0, 'max' => 100, 'step' => 1), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'page_h3_font_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_h3_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h3_line_height', 'label' => __('Line Height', 'wpbfpremium'), 'section' => 'wpbf_h3_options', 'priority' => 4, 'default' => '1.2', 'transport' => 'postMessage', 'choices' => array('min' => '1', 'max' => '5', 'step' => '.1'), 'active_callback' => array(array('setting' => 'page_h3_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h3_letter_spacing', 'label' => __('Letter Spacing', 'wpbfpremium'), 'section' => 'wpbf_h3_options', 'priority' => 5, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '-2', 'max' => '5', 'step' => '.5'), 'active_callback' => array(array('setting' => 'page_h3_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'page_h3_text_transform', 'label' => __('Text transform', 'wpbfpremium'), 'section' => 'wpbf_h3_options', 'default' => 'none', 'priority' => 6, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'lowercase' => __('Lowercase', 'wpbfpremium'), 'uppercase' => __('Uppercase', 'wpbfpremium'), 'capitalize' => __('Capitalize', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'page_h3_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'section' => 'wpbf_h4_options', 'settings' => 'page_h4_font_size', 'priority' => 2, 'transport' => 'postMessage', 'default' => json_encode(array('desktop' => '20px', 'tablet' => '', 'mobile' => '')), 'choices' => array('min' => 0, 'max' => 100, 'step' => 1), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'page_h4_font_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_h4_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h4_line_height', 'label' => __('Line Height', 'wpbfpremium'), 'section' => 'wpbf_h4_options', 'priority' => 4, 'default' => '1.2', 'transport' => 'postMessage', 'choices' => array('min' => '1', 'max' => '5', 'step' => '.1'), 'active_callback' => array(array('setting' => 'page_h4_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h4_letter_spacing', 'label' => __('Letter Spacing', 'wpbfpremium'), 'section' => 'wpbf_h4_options', 'priority' => 5, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '-2', 'max' => '5', 'step' => '.5'), 'active_callback' => array(array('setting' => 'page_h4_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'page_h4_text_transform', 'label' => __('Text transform', 'wpbfpremium'), 'section' => 'wpbf_h4_options', 'default' => 'none', 'priority' => 6, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'lowercase' => __('Lowercase', 'wpbfpremium'), 'uppercase' => __('Uppercase', 'wpbfpremium'), 'capitalize' => __('Capitalize', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'page_h4_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'section' => 'wpbf_h5_options', 'settings' => 'page_h5_font_size', 'priority' => 2, 'transport' => 'postMessage', 'default' => json_encode(array('desktop' => '16px', 'tablet' => '', 'mobile' => '')), 'choices' => array('min' => 0, 'max' => 100, 'step' => 1), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'page_h5_font_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_h5_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h5_line_height', 'label' => __('Line Height', 'wpbfpremium'), 'section' => 'wpbf_h5_options', 'priority' => 4, 'default' => '1.2', 'transport' => 'postMessage', 'choices' => array('min' => '1', 'max' => '5', 'step' => '.1'), 'active_callback' => array(array('setting' => 'page_h5_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h5_letter_spacing', 'label' => __('Letter Spacing', 'wpbfpremium'), 'section' => 'wpbf_h5_options', 'priority' => 5, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '-2', 'max' => '5', 'step' => '.5'), 'active_callback' => array(array('setting' => 'page_h5_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'page_h5_text_transform', 'label' => __('Text transform', 'wpbfpremium'), 'section' => 'wpbf_h5_options', 'default' => 'none', 'priority' => 6, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'lowercase' => __('Lowercase', 'wpbfpremium'), 'uppercase' => __('Uppercase', 'wpbfpremium'), 'capitalize' => __('Capitalize', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'page_h5_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'section' => 'wpbf_h6_options', 'settings' => 'page_h6_font_size', 'priority' => 2, 'transport' => 'postMessage', 'default' => json_encode(array('desktop' => '16px', 'tablet' => '', 'mobile' => '')), 'choices' => array('min' => 0, 'max' => 100, 'step' => 1), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'page_h6_font_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_h6_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h6_line_height', 'label' => __('Line Height', 'wpbfpremium'), 'section' => 'wpbf_h6_options', 'priority' => 4, 'default' => '1.2', 'transport' => 'postMessage', 'choices' => array('min' => '1', 'max' => '5', 'step' => '.1'), 'active_callback' => array(array('setting' => 'page_h6_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'page_h6_letter_spacing', 'label' => __('Letter Spacing', 'wpbfpremium'), 'section' => 'wpbf_h6_options', 'priority' => 5, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '-2', 'max' => '5', 'step' => '.5'), 'active_callback' => array(array('setting' => 'page_h6_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'page_h6_text_transform', 'label' => __('Text transform', 'wpbfpremium'), 'section' => 'wpbf_h6_options', 'default' => 'none', 'priority' => 6, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'lowercase' => __('Lowercase', 'wpbfpremium'), 'uppercase' => __('Uppercase', 'wpbfpremium'), 'capitalize' => __('Capitalize', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'page_h6_toggle', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'enable_typekit', 'label' => __('Enable Adobe Fonts', 'wpbfpremium'), 'section' => 'wpbf_typekit_options', 'default' => '0', 'priority' => '1'));
    Kirki::add_field('wpbf', array('type' => 'text', 'settings' => 'typekit_id', 'label' => __('Adobe Fonts ID', 'wpbfpremium'), 'section' => 'wpbf_typekit_options', 'default' => 'iel4zhm', 'priority' => '2', 'active_callback' => array(array('setting' => 'enable_typekit', 'operator' => '==', 'value' => '1'))));
    Kirki::add_field('wpbf', array('type' => 'repeater', 'label' => __('Adobe Fonts', 'wpbfpremium'), 'settings' => 'typekit_fonts', 'priority' => '3', 'section' => 'wpbf_typekit_options', 'row_label' => array('type' => 'text', 'value' => __('Adobe Font', 'wpbfpremium')), 'default' => array(array('font_name' => 'Sofia Pro', 'font_css_name' => 'sofia-pro', 'font_variants' => array('regular', 'italic', '700', '700italic'))), 'fields' => array('font_name' => array('type' => 'text', 'label' => __('Name', 'wpbfpremium')), 'font_css_name' => array('type' => 'text', 'label' => __('Font Family', 'wpbfpremium')), 'font_variants' => array('type' => 'select', 'label' => __('Variants', 'wpbfpremium'), 'multiple' => 18, 'choices' => array('100' => __('100', 'wpbfpremium'), '100italic' => __('100italic', 'wpbfpremium'), '200' => __('200', 'wpbfpremium'), '200italic' => __('200italic', 'wpbfpremium'), '300' => __('300', 'wpbfpremium'), '300italic' => __('300italic', 'wpbfpremium'), 'regular' => __('regular', 'wpbfpremium'), 'italic' => __('italic', 'wpbfpremium'), '500' => __('500', 'wpbfpremium'), '500italic' => __('500italic', 'wpbfpremium'), '600' => __('600', 'wpbfpremium'), '600italic' => __('600italic', 'wpbfpremium'), '700' => __('700', 'wpbfpremium'), '700italic' => __('700italic', 'wpbfpremium'), '800' => __('800', 'wpbfpremium'), '800italic' => __('800italic', 'wpbfpremium'), '900' => __('900', 'wpbfpremium'), '900italic' => __('900italic', 'wpbfpremium')))), 'active_callback' => array(array('setting' => 'enable_typekit', 'operator' => '==', 'value' => '1'))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'enable_custom_fonts', 'label' => __('Enable Custom Fonts', 'wpbfpremium'), 'section' => 'wpbf_custom_fonts_options', 'default' => '0', 'priority' => '1'));
    Kirki::add_field('wpbf', array('type' => 'repeater', 'label' => __('Custom Fonts', 'wpbfpremium'), 'settings' => 'custom_fonts', 'priority' => '3', 'section' => 'wpbf_custom_fonts_options', 'row_label' => array('type' => 'text', 'value' => __('Custom Font', 'wpbfpremium')), 'default' => array(array('font_name' => 'Kitten', 'font_css_name' => 'kitten, sans-serif', 'font_woff' => false, 'font_woff2' => false, 'font_ttf' => false, 'font_svg' => false, 'font_eot' => false)), 'fields' => array('font_name' => array('type' => 'text', 'label' => __('Name', 'wpbfpremium')), 'font_css_name' => array('type' => 'text', 'label' => __('Font Family', 'wpbfpremium')), 'font_woff' => array('type' => 'upload', 'mime_type' => array(), 'label' => __('Woff', 'wpbfpremium')), 'font_woff2' => array('type' => 'upload', 'mime_type' => array(), 'label' => __('Woff2', 'wpbfpremium')), 'font_ttf' => array('type' => 'upload', 'mime_type' => array(), 'label' => __('TTF', 'wpbfpremium')), 'font_svg' => array('type' => 'upload', 'mime_type' => array(), 'label' => __('SVG', 'wpbfpremium')), 'font_eot' => array('type' => 'upload', 'mime_type' => array(), 'label' => __('EOT', 'wpbfpremium'))), 'active_callback' => array(array('setting' => 'enable_custom_fonts', 'operator' => '==', 'value' => '1'))));
    $i = 0;
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'menu_sticky', 'label' => __('Sticky Navigation', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => '0', 'priority' => $i++, 'partial_refresh' => array('menu_sticky' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'image', 'settings' => 'menu_active_logo', 'label' => __('Logo', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '!=', 'value' => ''), array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true)), 'partial_refresh' => array('menu_active_logo' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'responsive_input_slider', 'label' => __('Logo Width', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'settings' => 'menu_active_logo_size', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('min' => 0, 'max' => 500, 'step' => 1), 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '!=', 'value' => ''), array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true)), 'sanitize_callback' => wpbf_kirki_sanitize_helper('wp_filter_nohtml_kses')));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'menu_active_hide_logo', 'label' => __('Hide Logo', 'wpbfpremium'), 'description' => __('Hides logo from sticky navigation.', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => '0', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-stacked', 'menu-stacked-advanced', 'menu-centered')))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'label' => __('Menu Height', 'wpbfpremium'), 'settings' => 'menu_active_height', 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'default' => '20', 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true)), 'choices' => array('min' => '5', 'max' => '80', 'step' => '1')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_stacked_bg_color', 'label' => __('Logo Area Background Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => '#ffffff', 'priority' => $i++, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-stacked-advanced'), array('setting' => 'menu_active_hide_logo', 'operator' => '==', 'value' => false)), 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_bg_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => '#f5f5f7', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_font_color', 'label' => __('Font Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_font_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_logo_color', 'label' => __('Logo Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '==', 'value' => ''), array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_logo_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '==', 'value' => ''), array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_tagline_color', 'label' => __('Tagline Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'custom_logo', 'operator' => '==', 'value' => ''), array('setting' => 'menu_logo_description', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-7016863', 'section' => 'wpbf_sticky_menu_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'menu_active_box_shadow', 'label' => __('Box Shadow', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => 0, 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'menu_active_box_shadow_blur', 'label' => __('Blur', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'default' => 5, 'choices' => array('min' => '0', 'max' => '50', 'step' => '1'), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_active_box_shadow', 'operator' => '==', 'value' => 1))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_box_shadow_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => 'rgba(0,0,0,.15)', 'priority' => $i++, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_active_box_shadow', 'operator' => '==', 'value' => 1))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-8931407', 'section' => 'wpbf_sticky_menu_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'dimension', 'label' => __('Delay', 'wpbfpremium'), 'settings' => 'menu_active_delay', 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'default' => '', 'description' => __('Set a delay after the sticky navigation should appear. Default: 300px', 'wpbfpremium'), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true)), 'partial_refresh' => array('menu_active_delay' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'radio-buttonset', 'settings' => 'menu_active_animation', 'label' => __('Animation', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => 'none', 'priority' => $i++, 'choices' => array('none' => __('None', 'wpbfpremium'), 'fade' => __('Fade In', 'wpbfpremium'), 'slide' => __('Slide Down', 'wpbfpremium'), 'scroll' => __('Hide on Scroll', 'wpbfpremium'), 'shrink' => __('Shrink', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true)), 'partial_refresh' => array('menu_active_animation' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'label' => __('Animation Duration', 'wpbfpremium'), 'settings' => 'menu_active_animation_duration', 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'default' => '200', 'choices' => array('min' => '50', 'max' => '1000', 'step' => '10'), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_active_animation', 'operator' => '!==', 'value' => 'none'), array('setting' => 'menu_active_animation', 'operator' => '!==', 'value' => 'scroll'), array('setting' => 'menu_active_animation', 'operator' => '!==', 'value' => 'shrink')), 'partial_refresh' => array('menu_active_animation_duration' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'active-off-canvas-headline', 'section' => 'wpbf_sticky_menu_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Off Canvas Settings', 'wpbfpremium') . '</h3>', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'active-full-screen-headline', 'section' => 'wpbf_sticky_menu_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Full Screen Menu Settings', 'wpbfpremium') . '</h3>', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-full-screen'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_active_off_canvas_hamburger_color', 'label' => __('Icon Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left', 'menu-full-screen')))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'active-mobile-menu-headline', 'section' => 'wpbf_sticky_menu_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Mobile Menu Settings', 'wpbfpremium') . '</h3>', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'mobile_menu_options', 'operator' => 'in', 'value' => array('menu-mobile-hamburger', 'menu-mobile-off-canvas')))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'menu_active_mobile_disabled', 'label' => __('Disable Sticky Navigation', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'default' => '0', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'mobile_menu_active_hamburger_color', 'label' => __('Icon Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'mobile_menu_options', 'operator' => 'in', 'value' => array('menu-mobile-hamburger', 'menu-mobile-off-canvas')))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'mobile_menu_active_hamburger_bg_color', 'label' => __('Hamburger Icon Color', 'wpbfpremium'), 'section' => 'wpbf_sticky_menu_options', 'priority' => $i++, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true), array('setting' => 'mobile_menu_options', 'operator' => 'in', 'value' => array('menu-mobile-hamburger', 'menu-mobile-off-canvas')), array('setting' => 'mobile_menu_hamburger_bg_color', 'operator' => '!=', 'value' => ''))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'pre_header_sticky', 'label' => __('Sticky Pre Header', 'wpbfpremium'), 'section' => 'wpbf_pre_header_options', 'default' => '0', 'priority' => 0, 'active_callback' => array(array('setting' => 'pre_header_layout', 'operator' => '!=', 'value' => 'none'), array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true)), 'partial_refresh' => array('pre_header_sticky' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    $i = 0;
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'cta_button', 'label' => __('Display Call to Action Button', 'wpbfpremium'), 'description' => __('You can declare the Call to Action Button manually by assigning the "wpbf-cta-menu-item" class to your menu-item of choice. Ticking this setting will display the Call to Action Button as the last element inside your main navigation.', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'partial_refresh' => array('cta_button' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'cta_button_mobile', 'label' => __('Display Call to Action Button (Mobile)', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'active_callback' => array(array('setting' => 'cta_button', 'operator' => '==', 'value' => true)), 'partial_refresh' => array('cta_button_mobile' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'text', 'settings' => 'cta_button_text', 'label' => __('Text', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'cta_button', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'link', 'settings' => 'cta_button_url', 'label' => __('URL', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'cta_button', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'cta_button_target', 'label' => __('Open in a new Tab', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'cta_button', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'cta_button_border_radius', 'label' => __('Border Radius', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'default' => '0', 'transport' => 'postMessage', 'choices' => array('min' => '0', 'max' => '100', 'step' => '1'), 'active_callback' => array(array('setting' => 'cta_button', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-843375', 'section' => 'wpbf_cta_button_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => $i++));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_background_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_background_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_font_color', 'label' => __('Font Color', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_font_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'cta_button_transparent_header_headline', 'section' => 'wpbf_cta_button_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Transparent Header', 'wpbfpremium') . '</h3>', 'priority' => $i++));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_transparent_background_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_transparent_background_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_transparent_font_color', 'label' => __('Font Color', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_transparent_font_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'cta_button_sticky_header_headline', 'section' => 'wpbf_cta_button_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Sticky Navigation', 'wpbfpremium') . '</h3>', 'priority' => $i++, 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_sticky_background_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_sticky_background_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_sticky_font_color', 'label' => __('Font Color', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'cta_button_sticky_font_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_cta_button_options', 'priority' => $i++, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_sticky', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'image', 'settings' => 'menu_transparent_logo', 'label' => __('Logo', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 0, 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '!=', 'value' => '')), 'partial_refresh' => array('menu_transparent_logo' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_background_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 1, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_font_color', 'label' => __('Font Color', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 2, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_font_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_logo_color', 'label' => __('Logo Color', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '==', 'value' => ''))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_logo_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '==', 'value' => ''))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_tagline_color', 'label' => __('Tagline Color', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'custom_logo', 'operator' => '==', 'value' => ''), array('setting' => 'menu_logo_description', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'menu-transparent-off-canvas-headline', 'section' => 'wpbf_transparent_header_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Off Canvas Settings', 'wpbfpremium') . '</h3>', 'priority' => 4, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'menu-transparent-full-screen-headline', 'section' => 'wpbf_transparent_header_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Full Screen Menu Settings', 'wpbfpremium') . '</h3>', 'priority' => 5, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-full-screen'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_hamburger_color', 'label' => __('Icon Color', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 6, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left', 'menu-full-screen')))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'menu-transparent-mobile-headline', 'section' => 'wpbf_transparent_header_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Mobile Menu Settings', 'wpbfpremium') . '</h3>', 'priority' => 7));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'menu_transparent_mobile_disabled', 'label' => __('Disable Transparent Header', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'default' => '0', 'priority' => 8));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_hamburger_color_mobile', 'label' => __('Icon Color', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 9, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'mobile_menu_options', 'operator' => '!=', 'value' => 'menu-mobile-default'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_transparent_hamburger_bg_color_mobile', 'label' => __('Hamburger Icon Color', 'wpbfpremium'), 'section' => 'wpbf_transparent_header_options', 'priority' => 10, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'mobile_menu_options', 'operator' => '!=', 'value' => 'menu-mobile-default'), array('setting' => 'mobile_menu_hamburger_bg_color', 'operator' => '!=', 'value' => ''))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-99985', 'section' => 'wpbf_sub_menu_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 7, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-off-canvas'), array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-off-canvas-left'), array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-full-screen'))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'sub_menu_animation', 'label' => __('Sub Menu Animation', 'wpbfpremium'), 'section' => 'wpbf_sub_menu_options', 'default' => 'fade', 'priority' => 7, 'multiple' => 1, 'choices' => array('fade' => __('Fade', 'wpbfpremium'), 'down' => __('Down', 'wpbfpremium'), 'up' => __('Up', 'wpbfpremium'), 'zoom-in' => __('Zoom In', 'wpbfpremium'), 'zoom-out' => __('Zoom Out', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-off-canvas'), array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-off-canvas-left'), array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-full-screen')), 'partial_refresh' => array('sub_menu_animation' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'label' => __('Duration', 'wpbfpremium'), 'settings' => 'sub_menu_animation_duration', 'section' => 'wpbf_sub_menu_options', 'priority' => 8, 'default' => '250', 'choices' => array('min' => '50', 'max' => '1000', 'step' => '10'), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-off-canvas'), array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-off-canvas-left'), array('setting' => 'menu_position', 'operator' => '!=', 'value' => 'menu-full-screen')), 'partial_refresh' => array('sub_menu_animation_duration' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'dimension', 'label' => __('Menu Width', 'wpbfpremium'), 'description' => __('Default: 320px', 'wpbfpremium'), 'settings' => 'mobile_menu_width', 'section' => 'wpbf_mobile_menu_options', 'priority' => 7, 'active_callback' => array(array('setting' => 'mobile_menu_options', 'operator' => '==', 'value' => 'menu-mobile-off-canvas'))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-47399', 'section' => 'wpbf_mobile_menu_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 30, 'active_callback' => array(array('setting' => 'mobile_menu_options', 'operator' => '==', 'value' => 'menu-mobile-off-canvas'))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'mobile_menu_overlay', 'label' => __('Overlay', 'wpbfpremium'), 'section' => 'wpbf_mobile_menu_options', 'priority' => 31, 'active_callback' => array(array('setting' => 'mobile_menu_options', 'operator' => '==', 'value' => 'menu-mobile-off-canvas'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'mobile_menu_overlay_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_mobile_menu_options', 'default' => 'rgba(0,0,0,.5)', 'priority' => 32, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'mobile_menu_options', 'operator' => '==', 'value' => 'menu-mobile-off-canvas'), array('setting' => 'mobile_menu_overlay', 'operator' => '==', 'value' => true))));
    if (is_plugin_active('bb-plugin/fl-builder.php') || is_plugin_active('elementor-pro/elementor-pro.php')) {
        Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-61123', 'section' => 'wpbf_menu_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 999998));
        Kirki::add_field('wpbf', array('type' => 'code', 'label' => __('Custom Menu', 'wpbfpremium'), 'description' => __('Paste your shortcode to replace the default menu with your Custom Menu. <br><br>Example:<br>[elementor-template id="xxx"]<br>[fl_builder_insert_layout id="xxx"]', 'wpbfpremium'), 'settings' => 'menu_custom', 'section' => 'wpbf_menu_options', 'priority' => 999999, 'choices' => array('language' => 'html')));
    }
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'stacked-advanced-headline', 'section' => 'wpbf_menu_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Advanced Settings', 'wpbfpremium') . '</h3>', 'priority' => 100, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-stacked-advanced'))));
    Kirki::add_field('wpbf', array('type' => 'radio-image', 'settings' => 'menu_alignment', 'label' => __('Menu Alignment', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'default' => 'left', 'priority' => 110, 'multiple' => 1, 'choices' => array('left' => WPBF_PREMIUM_URI . '/inc/customizer/img/align-left.jpg', 'center' => WPBF_PREMIUM_URI . '/inc/customizer/img/align-center.jpg', 'right' => WPBF_PREMIUM_URI . '/inc/customizer/img/align-right.jpg'), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-stacked-advanced')), 'partial_refresh' => array('menu_alignment' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'editor', 'settings' => 'menu_stacked_wysiwyg', 'label' => __('Content beside Logo', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'default' => '', 'priority' => 120, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-stacked-advanced'), array('setting' => 'menu_alignment', 'operator' => '!=', 'value' => 'center'))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'label' => __('Logo Area Height', 'wpbfpremium'), 'settings' => 'menu_stacked_logo_height', 'section' => 'wpbf_menu_options', 'priority' => 130, 'default' => '20', 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-stacked-advanced')), 'choices' => array('min' => '5', 'max' => '80', 'step' => '1')));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_stacked_bg_color', 'label' => __('Logo Area Background Color', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'default' => '#ffffff', 'priority' => 140, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-stacked-advanced')), 'choices' => array('alpha' => true)));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'off-canvas-headline', 'section' => 'wpbf_menu_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Off Canvas Settings', 'wpbfpremium') . '</h3>', 'priority' => 200, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'full-screen-headline', 'section' => 'wpbf_menu_options', 'default' => '<h3 style="padding:15px 10px; background:#fff; margin:0;">' . __('Full Screen Menu Settings', 'wpbfpremium') . '</h3>', 'priority' => 200, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => '==', 'value' => 'menu-full-screen'))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_off_canvas_hamburger_color', 'label' => __('Icon Color', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'default' => '#6d7680', 'priority' => 210, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left', 'menu-full-screen')))));
    Kirki::add_field('wpbf', array('type' => 'input_slider', 'label' => __('Icon Size', 'wpbfpremium'), 'settings' => 'menu_off_canvas_hamburger_size', 'section' => 'wpbf_menu_options', 'priority' => 220, 'default' => '18px', 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left', 'menu-full-screen'))), 'choices' => array('min' => 0, 'max' => 50, 'step' => 1)));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-5058503157', 'section' => 'wpbf_menu_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 230, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left', 'menu-full-screen')))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'menu_off_canvas_push', 'label' => __('Push Menu', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'priority' => 240, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_off_canvas_bg_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'default' => '#ffffff', 'priority' => 250, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left', 'menu-full-screen')))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_off_canvas_submenu_arrow_color', 'label' => __('Sub Menu Arrow Color', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'priority' => 260, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'label' => __('Menu Width', 'wpbfpremium'), 'settings' => 'menu_off_canvas_width', 'section' => 'wpbf_menu_options', 'priority' => 270, 'default' => '400', 'transport' => 'postMessage', 'choices' => array('min' => '300', 'max' => '500', 'step' => '10'), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-08349', 'section' => 'wpbf_menu_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 280, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'menu_overlay', 'label' => __('Overlay', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'priority' => 290, 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_overlay_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_menu_options', 'default' => 'rgba(0,0,0,.5)', 'priority' => 300, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_position', 'operator' => 'in', 'value' => array('menu-off-canvas', 'menu-off-canvas-left')), array('setting' => 'menu_overlay', 'operator' => '==', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'menu_effect', 'label' => __('Hover Effect', 'wpbfpremium'), 'section' => 'wpbf_menu_effect_options', 'default' => 'none', 'priority' => 1, 'multiple' => 1, 'choices' => array('none' => __('None', 'wpbfpremium'), 'underlined' => __('Underline', 'wpbfpremium'), 'boxed' => __('Box', 'wpbfpremium'), 'modern' => __('Modern', 'wpbfpremium')), 'partial_refresh' => array('menu_effect' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'menu_effect_animation', 'label' => __('Animation', 'wpbfpremium'), 'section' => 'wpbf_menu_effect_options', 'default' => 'fade', 'priority' => 1, 'multiple' => 1, 'choices' => array('fade' => __('Fade', 'wpbfpremium'), 'slide' => __('Slide', 'wpbfpremium'), 'grow' => __('Grow', 'wpbfpremium')), 'active_callback' => array(array('setting' => 'menu_effect', 'operator' => '!=', 'value' => 'none'), array('setting' => 'menu_effect', 'operator' => '!=', 'value' => 'modern')), 'partial_refresh' => array('menu_effect_animation' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'radio-image', 'settings' => 'menu_effect_alignment', 'label' => __('Alignment', 'wpbfpremium'), 'section' => 'wpbf_menu_effect_options', 'default' => 'center', 'priority' => 2, 'choices' => array('left' => WPBF_PREMIUM_URI . '/inc/customizer/img/align-left.jpg', 'center' => WPBF_PREMIUM_URI . '/inc/customizer/img/align-center.jpg', 'right' => WPBF_PREMIUM_URI . '/inc/customizer/img/align-right.jpg'), 'active_callback' => array(array('setting' => 'menu_effect_animation', 'operator' => '==', 'value' => 'slide'), array('setting' => 'menu_effect', 'operator' => '!=', 'value' => 'modern'), array('setting' => 'menu_effect', 'operator' => '!=', 'value' => 'none')), 'partial_refresh' => array('menu_effect_alignment' => array('container_inclusive' => true, 'selector' => '#header', 'render_callback' => function () {
        return get_template_part('inc/template-parts/header');
    }))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'menu_effect_color', 'label' => __('Color', 'wpbfpremium'), 'section' => 'wpbf_menu_effect_options', 'priority' => 3, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'menu_effect', 'operator' => '!=', 'value' => 'none'))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'menu_effect_underlined_size', 'label' => __('Size', 'wpbfpremium'), 'section' => 'wpbf_menu_effect_options', 'priority' => 4, 'default' => '2', 'choices' => array('min' => '1', 'max' => '5', 'step' => '1'), 'active_callback' => array(array('setting' => 'menu_effect', 'operator' => '==', 'value' => 'underlined'))));
    Kirki::add_field('wpbf', array('type' => 'slider', 'settings' => 'menu_effect_boxed_radius', 'label' => __('Border Radius', 'wpbfpremium'), 'section' => 'wpbf_menu_effect_options', 'priority' => 5, 'default' => '0', 'choices' => array('min' => '0', 'max' => '50', 'step' => '1'), 'active_callback' => array(array('setting' => 'menu_effect', 'operator' => '==', 'value' => 'boxed'))));
    Kirki::add_field('wpbf', array('type' => 'select', 'settings' => 'footer_widgets', 'label' => __('Footer Widgets', 'wpbfpremium'), 'section' => 'wpbf_widget_footer_options', 'default' => 0, 'priority' => 0, 'multiple' => 1, 'choices' => array(0 => __('Disabled', 'wpbfpremium'), 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5'), 'partial_refresh' => array('footer_widgets' => array('selector' => '.wpbf-widget-footer', 'render_callback' => function () {
        return wpbf_construct_widget_footer();
    }))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'footer_widgets_bg_color', 'label' => __('Background Color', 'wpbfpremium'), 'section' => 'wpbf_widget_footer_options', 'default' => '#f5f5f7', 'transport' => 'postMessage', 'priority' => 1, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'footer_widgets', 'operator' => '!=', 'value' => 0))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'footer_widgets_headline_color', 'label' => __('Headline Color', 'wpbfpremium'), 'section' => 'wpbf_widget_footer_options', 'transport' => 'postMessage', 'priority' => 2, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'footer_widgets', 'operator' => '!=', 'value' => 0))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'footer_widgets_font_color', 'label' => __('Font Color', 'wpbfpremium'), 'section' => 'wpbf_widget_footer_options', 'transport' => 'postMessage', 'priority' => 2, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'footer_widgets', 'operator' => '!=', 'value' => 0))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'footer_widgets_accent_color', 'label' => __('Accent Color', 'wpbfpremium'), 'section' => 'wpbf_widget_footer_options', 'priority' => 3, 'transport' => 'postMessage', 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'footer_widgets', 'operator' => '!=', 'value' => 0))));
    Kirki::add_field('wpbf', array('type' => 'color', 'settings' => 'footer_widgets_accent_color_alt', 'label' => __('Hover', 'wpbfpremium'), 'section' => 'wpbf_widget_footer_options', 'priority' => 4, 'choices' => array('alpha' => true), 'active_callback' => array(array('setting' => 'footer_widgets', 'operator' => '!=', 'value' => 0))));
    Kirki::add_field('wpbf', array('type' => 'input_slider', 'label' => __('Font Size', 'wpbfpremium'), 'settings' => 'footer_widgets_font_size', 'section' => 'wpbf_widget_footer_options', 'priority' => 11, 'default' => '14px', 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'footer_widgets', 'operator' => '!=', 'value' => 0)), 'choices' => array('min' => 0, 'max' => 50, 'step' => 1)));
    Kirki::add_field('wpbf', array('type' => 'toggle', 'settings' => 'footer_sticky', 'label' => __('Sticky Footer', 'wpbfpremium'), 'section' => 'wpbf_footer_options', 'default' => '0', 'priority' => 0, 'active_callback' => array(array('setting' => 'page_boxed', 'operator' => '!=', 'value' => true))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-174793', 'section' => 'wpbf_footer_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 4, 'active_callback' => array(array('setting' => 'footer_layout', 'operator' => '!=', 'value' => 'none'))));
    Kirki::add_field('wpbf', array('type' => 'text', 'settings' => 'footer_theme_author_name', 'label' => __('Theme Author', 'wpbfpremium'), 'section' => 'wpbf_footer_options', 'priority' => 4, 'active_callback' => array(array('setting' => 'footer_layout', 'operator' => '!=', 'value' => 'none')), 'partial_refresh' => array('footer_theme_author_name' => array('container_inclusive' => true, 'selector' => '#footer', 'render_callback' => function () {
        return get_template_part('inc/template-parts/footer');
    }))));
    Kirki::add_field('wpbf', array('type' => 'text', 'settings' => 'footer_theme_author_url', 'label' => __('URL', 'wpbfpremium'), 'section' => 'wpbf_footer_options', 'priority' => 4, 'transport' => 'postMessage', 'active_callback' => array(array('setting' => 'footer_layout', 'operator' => '!=', 'value' => 'none'))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-306305', 'section' => 'wpbf_footer_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 4, 'active_callback' => array(array('setting' => 'footer_layout', 'operator' => '!=', 'value' => 'none'))));
    Kirki::add_field('wpbf', array('type' => 'custom', 'settings' => 'separator-41749', 'section' => 'wpbf_footer_options', 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8">', 'priority' => 20));
    Kirki::add_field('wpbf', array('type' => 'code', 'label' => __('Custom Footer', 'wpbfpremium'), 'description' => __('Paste your shortcode to populate a saved row/template throughout your website. <br><br>Examples:<br>[elementor-template id="xxx"]<br>[fl_builder_insert_layout id="xxx"]', 'wpbfpremium'), 'settings' => 'footer_custom', 'section' => 'wpbf_footer_options', 'priority' => 20, 'choices' => array('language' => 'html')));
    Kirki::add_field('wpbf', array('type' => 'code', 'settings' => 'head_scripts', 'section' => 'wpbf_header_scripts', 'label' => __('Head Code', 'wpbfpremium'), 'description' => __('Runs inside the head tag.', 'wpbfpremium'), 'priority' => 1, 'choices' => array('language' => 'html')));
    Kirki::add_field('wpbf', array('type' => 'code', 'settings' => 'header_scripts', 'section' => 'wpbf_header_scripts', 'label' => __('Header Code', 'wpbfpremium'), 'description' => __('Runs after the opening body tag.', 'wpbfpremium'), 'priority' => 2, 'choices' => array('language' => 'html')));
    Kirki::add_field('wpbf', array('type' => 'code', 'settings' => 'footer_scripts', 'section' => 'wpbf_footer_scripts', 'label' => __('Footer Code', 'wpbfpremium'), 'description' => __('Add Scripts (Google Analytics, etc.) here. Runs before the closing body tag (wp_footer).', 'wpbfpremium'), 'priority' => 1, 'choices' => array('language' => 'html')));
}
add_action('after_setup_theme', 'wpbf_kirki_premium');