'image', 'settings' => 'secondary_logo', 'label' => esc_html__( 'Secondary Logo', 'bizberg' ), 'description' => esc_html__( 'This logo is for the transparent header. This logo will be displayed when user scrolls the window. If empty then it will take the default site logo.', 'bizberg' ), 'section' => 'title_tagline', 'priority' => 9, ] ); Kirki::add_field( 'bizberg', [ 'type' => 'checkbox', 'settings' => 'secondary_logo_inner_pages', 'label' => esc_html__( 'Use secondary logo on inner pages.', 'bizberg' ), 'description' => esc_html__( 'If enabled, the secondary logo will be displayed on all inner pages on the header.', 'bizberg' ), 'section' => 'title_tagline', 'default' => false, 'priority' => 9 ] ); /** * Top Header */ Kirki::add_section( 'top-header', array( 'title' => esc_html__( 'Top Header', 'bizberg' ), 'panel' => 'theme_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bizberg', array( 'type' => 'checkbox', 'settings' => 'top_header_status', 'label' => esc_html__( 'Disable Top Header', 'bizberg' ), 'section' => 'top-header', 'default' => false ) ); Kirki::add_field( 'bizberg', array( 'type' => 'checkbox', 'settings' => 'top_header_status_mobile', 'label' => esc_html__( 'Enable Top Header on Mobile', 'bizberg' ), 'section' => 'top-header', 'default' => false, 'active_callback' => array( array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'checkbox', 'settings' => 'top_header_infobox_1', 'label' => esc_html__( 'Enable Infobox 1', 'bizberg' ), 'section' => 'top-header', 'default' => true, 'active_callback' => array( array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'select', 'settings' => 'top_header_fontawesome_1', 'label' => esc_html__( 'Icon 1', 'bizberg' ), 'section' => 'top-header', 'choices' => function_exists( 'bizberg_get_fontawesome_5' ) ? bizberg_get_fontawesome_5() : '', 'default' => 'fas fa-mobile-alt', 'active_callback' => array( array( 'setting' => 'top_header_infobox_1', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'text', 'settings' => 'top_header_text_1', 'label' => esc_html__( 'Label 1', 'bizberg' ), 'section' => 'top-header', 'default' => '9849-xxx-xxx', 'active_callback' => array( array( 'setting' => 'top_header_infobox_1', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), 'partial_refresh' => array( 'top_header_text_1' => array( 'selector' => '.infobox_header_wrapper', 'render_callback' => 'bizberg_get_infobox_header', ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'url', 'settings' => 'infobox_link_1', 'label' => esc_html__( 'URL 1', 'bizberg' ), 'section' => 'top-header', 'default' => '', 'description' => 'If not empty the infobox will be clickable.', 'active_callback' => array( array( 'setting' => 'top_header_infobox_1', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'checkbox', 'settings' => 'top_header_infobox_2', 'label' => esc_html__( 'Enable Infobox 2', 'bizberg' ), 'section' => 'top-header', 'default' => true, 'active_callback' => array( array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'select', 'settings' => 'top_header_fontawesome_2', 'label' => esc_html__( 'Icon 2', 'bizberg' ), 'choices' => function_exists( 'bizberg_get_fontawesome_5' ) ? bizberg_get_fontawesome_5() : '', 'section' => 'top-header', 'default' => 'far fa-comment-alt', 'active_callback' => array( array( 'setting' => 'top_header_infobox_2', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'text', 'settings' => 'top_header_text_2', 'label' => esc_html__( 'Label 2', 'bizberg' ), 'section' => 'top-header', 'default' => 'cntheme@cninfotech.com', 'active_callback' => array( array( 'setting' => 'top_header_infobox_2', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), 'partial_refresh' => array( 'top_header_text_2' => array( 'selector' => '.infobox_header_wrapper', 'render_callback' => 'bizberg_get_infobox_header', ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'url', 'settings' => 'infobox_link_2', 'label' => esc_html__( 'URL 2', 'bizberg' ), 'section' => 'top-header', 'default' => '', 'description' => 'If not empty the infobox will be clickable.', 'active_callback' => array( array( 'setting' => 'top_header_infobox_2', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'checkbox', 'settings' => 'top_header_infobox_3', 'label' => esc_html__( 'Enable Infobox 3', 'bizberg' ), 'section' => 'top-header', 'default' => true, 'active_callback' => array( array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'select', 'settings' => 'top_header_fontawesome_3', 'label' => esc_html__( 'Icon 3', 'bizberg' ), 'choices' => function_exists( 'bizberg_get_fontawesome_5' ) ? bizberg_get_fontawesome_5() : '', 'section' => 'top-header', 'default' => 'fas fa-map-marker', 'active_callback' => array( array( 'setting' => 'top_header_infobox_3', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'text', 'settings' => 'top_header_text_3', 'label' => esc_html__( 'Label 3', 'bizberg' ), 'section' => 'top-header', 'default' => 'Tyagal, Patan, Lalitpur', 'active_callback' => array( array( 'setting' => 'top_header_infobox_3', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), 'partial_refresh' => array( 'top_header_text_3' => array( 'selector' => '.infobox_header_wrapper', 'render_callback' => 'bizberg_get_infobox_header', ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'url', 'settings' => 'infobox_link_3', 'label' => esc_html__( 'URL 3', 'bizberg' ), 'section' => 'top-header', 'default' => '', 'description' => 'If not empty the infobox will be clickable.', 'active_callback' => array( array( 'setting' => 'top_header_infobox_3', 'operator' => '==', 'value' => true, ), array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ), ) ); /** * Top Header Social Icons */ Kirki::add_field( 'bizberg', array( 'type' => 'repeater', 'label' => esc_html__( 'Social Links', 'bizberg' ), 'section' => 'top-header', 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Social Link', 'bizberg' ), ), 'settings' => 'header_social_links', 'fields' => array( 'icon' => array( 'type' => 'text', 'label' => esc_html__( 'Icon', 'bizberg' ), 'description' => sprintf( __( 'You can get icons from %s', 'bizberg' ), 'here' ), 'default' => 'fab fa-facebook-f' ), 'link' => array( 'type' => 'text', 'label' => esc_html__( 'Link', 'bizberg' ), 'default' => '#' ), 'label' => array( 'type' => 'text', 'label' => esc_html__( 'Hover Label', 'bizberg' ), 'default' => esc_html__( 'Facebook', 'bizberg' ) ), 'backgroundColor' => array( 'type' => 'color', 'label' => esc_html__( 'Background Hover Color', 'bizberg' ), 'default' => '#3b5998', 'choices' => array( 'alpha' => true, ), ), ), 'partial_refresh' => array( 'header_social_links' => array( 'selector' => '.header_social_links', 'render_callback' => 'bizberg_get_header_social_links', ) ), 'active_callback' => array( array( 'setting' => 'top_header_status', 'operator' => '==', 'value' => false, ) ) ) ); /** * Footer Mega Grid Columns */ Kirki::add_section( 'footer-mega-grid', array( 'title' => esc_html__( 'Footer Mega Grid Columns', 'bizberg' ), 'panel' => 'theme_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bizberg', array( 'type' => 'checkbox', 'settings' => 'footer_mega_grid_status', 'label' => esc_html__( 'Enable ??', 'bizberg' ), 'section' => 'footer-mega-grid', 'default' => false ) ); Kirki::add_field( 'bizberg', array( 'type' => 'custom', 'settings' => 'custom_' . wp_generate_password( 12,false, false ), 'section' => 'footer-mega-grid', 'default' => '

Layout Settings


', 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ) ); Kirki::add_field( 'bizberg', [ 'type' => 'radio-image', 'settings' => 'footer_grid_layout', 'label' => esc_html__( 'Layout', 'bizberg' ), 'section' => 'footer-mega-grid', 'default' => '1', 'choices' => [ '1' => plugin_dir_url( __FILE__ ) . '/assets/img/footer-columns/1.jpg', '2' => plugin_dir_url( __FILE__ ) . '/assets/img/footer-columns/2.jpg', '3' => plugin_dir_url( __FILE__ ) . '/assets/img/footer-columns/3.jpg', '4' => plugin_dir_url( __FILE__ ) . '/assets/img/footer-columns/4.jpg', '5' => plugin_dir_url( __FILE__ ) . '/assets/img/footer-columns/5.jpg', '6' => plugin_dir_url( __FILE__ ) . '/assets/img/footer-columns/6.jpg' ], 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); Kirki::add_field( 'bizberg', array( 'type' => 'custom', 'settings' => 'custom_' . wp_generate_password( 12,false, false ), 'section' => 'footer-mega-grid', 'default' => '

Color Settings


', ) ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_grid_text_color', 'label' => esc_html__( 'Text Color', 'bizberg' ), 'section' => 'footer-mega-grid', 'default' => '#aaa', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.footer_pro .textwidget.custom-html-widget, .footer_pro a, .footer_pro .widget.widget_nav_menu li a, .footer_pro .widget.widget_tag_cloud a', 'function' => 'style', 'property' => 'color', 'suffix' => ' !important' ), array( 'element' => '.footer_pro .tagcloud a', 'function' => 'style', 'property' => 'border-color', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => '.footer_pro .textwidget.custom-html-widget,.footer_pro a, .footer_pro .widget.widget_nav_menu li a, .footer_pro .widget.widget_tag_cloud a', 'property' => 'color', 'suffix' => ' !important' ), array( 'element' => '.footer_pro .tagcloud a', 'property' => 'border-color', 'suffix' => ' !important' ), ), 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_grid_title_color', 'label' => esc_html__( 'Title Color', 'bizberg' ), 'section' => 'footer-mega-grid', 'default' => '#ddd', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.footer_pro h2.widget-title', 'function' => 'style', 'property' => 'color', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => '.footer_pro h2.widget-title', 'property' => 'color', 'suffix' => ' !important' ), ), 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_grid_title_separator_color', 'label' => esc_html__( 'Title Separator Color', 'bizberg' ), 'section' => 'footer-mega-grid', 'default' => '#2fbeef', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.footer_pro h2.widget-title:after', 'function' => 'style', 'property' => 'background-color', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => '.footer_pro h2.widget-title:after', 'property' => 'background-color', 'suffix' => ' !important' ), ), 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_grid_link_hover_color', 'label' => esc_html__( 'Link Hover Color', 'bizberg' ), 'section' => 'footer-mega-grid', 'default' => '#2fbeef', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.footer_pro a:hover,.footer_pro tfoot a,.footer_pro .widget.widget_nav_menu li a:hover', 'function' => 'style', 'property' => 'color', 'suffix' => ' !important' ), array( 'element' => '.footer_pro .tagcloud a:hover', 'function' => 'style', 'property' => 'border-color', 'suffix' => ' !important' ), array( 'element' => '.footer_pro .tagcloud a:hover, .footer_pro .search-form input#searchsubmit', 'function' => 'style', 'property' => 'background', 'suffix' => ' !important' ), array( 'element' => '.footer_pro .tagcloud a:hover', 'function' => 'style', 'property' => 'color', 'suffix' => ' !important', 'value_pattern' => '#fff' ), ), 'output' => array( array( 'element' => '.footer_pro a:hover,.footer_pro tfoot a,.footer_pro .widget.widget_nav_menu li a:hover', 'property' => 'color', 'suffix' => ' !important' ), array( 'element' => '.footer_pro a:hover', 'property' => 'border-color', 'suffix' => ' !important' ), array( 'element' => '.footer_pro .tagcloud a:hover, .footer_pro .search-form input#searchsubmit', 'property' => 'background', 'suffix' => ' !important' ), array( 'element' => '.footer_pro .tagcloud a:hover', 'property' => 'color', 'suffix' => ' !important', 'value_pattern' => '#fff' ), ), 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); Kirki::add_field( 'bizberg', array( 'type' => 'custom', 'settings' => 'custom_' . wp_generate_password( 12,false, false ), 'section' => 'footer-mega-grid', 'default' => '

Background Settings


', ) ); Kirki::add_field( 'bizberg', [ 'type' => 'select', 'settings' => 'footer_grid_opacity', 'label' => esc_html__( 'Background Opacity', 'bizberg' ), 'section' => 'footer-mega-grid', 'default' => '0.9', 'choices' => [ '1' => '1', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0' => '0' ], 'output' => array( array( 'element' => '.footer_pro:before', 'property' => 'background-color', 'suffix' => ' !important', 'value_pattern' => 'rgba(25,25,25,$)' ), ), 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_grid_background_color', 'label' => esc_html__( 'Background Color', 'bizberg' ), 'description' => 'Note : If Background Image is used then background color will be disabled.', 'section' => 'footer-mega-grid', 'default' => '#1a1b1f', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.footer_pro', 'function' => 'style', 'property' => 'background', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => '.footer_pro', 'property' => 'background', 'suffix' => ' !important' ), ), 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); Kirki::add_field( 'bizberg', [ 'type' => 'image', 'settings' => 'footer_grid_background_image', 'label' => esc_html__( 'Background Image', 'bizberg' ), 'description' => 'Note : If Background Image is used then background color will be disabled.', 'section' => 'footer-mega-grid', 'default' => '', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.footer_pro', 'function' => 'style', 'property' => 'background', 'suffix' => ' no-repeat !important', ), array( 'element' => '.footer_pro', 'function' => 'style', 'property' => 'background-size', 'suffix' => ' !important', 'value_pattern' => "cover" ), array( 'element' => '.footer_pro', 'function' => 'style', 'property' => 'background-position', 'suffix' => ' !important', 'value_pattern' => "bottom" ), array( 'element' => '.footer_pro', 'function' => 'style', 'property' => 'background-attachment', 'suffix' => ' !important', 'value_pattern' => "fixed" ), ), 'output' => array( array( 'element' => '.footer_pro', 'property' => 'background', 'suffix' => ' no-repeat !important', 'value_pattern' => "url($)" ), array( 'element' => '.footer_pro', 'property' => 'background-size', 'suffix' => ' !important', 'value_pattern' => "cover" ), array( 'element' => '.footer_pro', 'property' => 'background-position', 'suffix' => ' !important', 'value_pattern' => "bottom" ), array( 'element' => '.footer_pro', 'property' => 'background-attachment', 'suffix' => ' !important', 'value_pattern' => "fixed" ), ), 'active_callback' => array( array( 'setting' => 'footer_mega_grid_status', 'operator' => '==', 'value' => true ) ), ] ); /** * Footer copyright section */ Kirki::add_field( 'bizberg', array( 'type' => 'textarea', 'settings' => 'copyright_text', 'label' => esc_html__( 'Copyright Text', 'bizberg' ), 'section' => 'footer_settings', 'default' => 'Copyright ©2019 Bizberg. All rights reserved. Powered by WordPress & Designed by Cyclone Themes', 'description' => 'You can use HTML code here.', 'partial_refresh' => array( 'copyright_text' => array( 'selector' => '#footer .copyright', 'render_callback' => 'bizberg_get_copyright_section', ) ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'custom', 'settings' => 'custom_' . wp_generate_password( 12,false, false ), 'section' => 'footer_settings', 'default' => '

Layout


', ) ); Kirki::add_field( 'bizberg', [ 'type' => 'radio-image', 'settings' => 'footer_grid_copyright_layout', 'label' => esc_html__( 'Copyright Layout', 'bizberg' ), 'section' => 'footer_settings', 'default' => '5', 'choices' => [ '1' => plugin_dir_url( __FILE__ ) . '/assets/img/copyright/1.jpg', '2' => plugin_dir_url( __FILE__ ) . '/assets/img/copyright/2.jpg', '3' => plugin_dir_url( __FILE__ ) . '/assets/img/copyright/3.jpg', '4' => plugin_dir_url( __FILE__ ) . '/assets/img/copyright/4.jpg', '5' => plugin_dir_url( __FILE__ ) . '/assets/img/copyright/5.jpg' ], ] ); Kirki::add_field( 'bizberg', array( 'type' => 'custom', 'settings' => 'custom_' . wp_generate_password( 12,false, false ), 'section' => 'footer_settings', 'default' => '

Color Options


', ) ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_copyright_link_color_hover', 'label' => esc_html__( 'Link Color ( Hover )', 'bizberg' ), 'section' => 'footer_settings', 'default' => '#1098c6', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => 'footer .copyright a:hover, footer .inline-menu a:hover', 'function' => 'style', 'property' => 'color', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => 'footer .copyright a:hover, footer .inline-menu a:hover', 'property' => 'color', 'suffix' => ' !important' ), ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_social_icon_color', 'label' => esc_html__( 'Social Icon Color', 'bizberg' ), 'section' => 'footer_settings', 'default' => '#1098c6', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => 'footer .footer_social_links a i', 'function' => 'style', 'property' => 'color', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => 'footer .footer_social_links a i', 'property' => 'color', 'suffix' => ' !important' ), ), 'active_callback' => array( array( 'setting' => 'footer_grid_copyright_layout', 'operator' => '!=', 'value' => '3', ) ), ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_social_icon_background', 'label' => esc_html__( 'Social Icon Background Color', 'bizberg' ), 'section' => 'footer_settings', 'default' => '#f1f1f1', 'transport' => 'postMessage', 'choices' => [ 'alpha' => true, ], 'js_vars' => array( array( 'element' => 'footer .footer_social_links a i', 'function' => 'style', 'property' => 'background', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => 'footer .footer_social_links a i', 'property' => 'background', 'suffix' => ' !important' ), ), 'active_callback' => array( array( 'setting' => 'footer_grid_copyright_layout', 'operator' => '!=', 'value' => '3', ) ), ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'footer_copyright_background', 'label' => esc_html__( 'Background Color', 'bizberg' ), 'section' => 'footer_settings', 'default' => '#1f2024', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => 'footer#footer.footer-style', 'function' => 'style', 'property' => 'background', 'suffix' => ' !important' ), ), 'output' => array( array( 'element' => 'footer#footer.footer-style', 'property' => 'background', 'suffix' => ' !important' ), ), ] ); /** * Font Options */ Kirki::add_section( 'fonts', array( 'title' => esc_html__( 'Fonts', 'bizberg' ), 'panel' => 'theme_options', 'capability' => 'edit_theme_options', 'priority' => 50 ) ); Kirki::add_field( 'bizberg', array( 'type' => 'typography', 'settings' => 'top_bar_font', 'label' => esc_html__( 'Top Bar', 'bizberg' ), 'section' => 'fonts', 'default' => array( 'font-family' => 'Open Sans', 'variant' => 'regular', 'font-size' => '13px', 'letter-spacing' => '0', 'color' => '#64686d', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => '.infobox_header_wrapper li a', ), ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'typography', 'settings' => 'main_menu_font', 'label' => esc_html__( 'Main Menu', 'bizberg' ), 'section' => 'fonts', 'default' => array( 'font-family' => 'Montserrat', 'variant' => '500', 'font-size' => '13px', 'letter-spacing' => '0', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'header .navbar-default .navbar-nav>li>a, header .navbar-default .navbar-nav>li>ul>li>a,header .navbar-default .navbar-nav>li>ul>li>ul>li>a', ), ), ) ); Kirki::add_field( 'bizberg', array( 'type' => 'typography', 'settings' => 'footer_font', 'label' => esc_html__( 'Footer', 'bizberg' ), 'section' => 'fonts', 'default' => array( 'font-family' => 'Montserrat' ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => '#footer,#footer a,#footer p,#footer p.copyright,.footer_pro,.footer_pro p,.footer_pro a', ), ), ) ); /** * Preloader */ Kirki::add_section( 'preloader', array( 'title' => esc_html__( 'Preloader', 'bizberg' ), 'panel' => 'theme_options', 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'bizberg', [ 'type' => 'checkbox', 'settings' => 'preloader_status', 'label' => esc_html__( 'Enable Preloader', 'bizberg' ), 'section' => 'preloader', 'default' => false, ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'preloader_background_color', 'label' => esc_html__( 'Background Color', 'bizberg' ), 'section' => 'preloader', 'default' => '#fff', 'output' => array( array( 'element' => '#preloader', 'property' => 'background', 'suffix' => ' !important' ), ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'radio-image', 'settings' => 'preloader', 'label' => esc_html__( 'Preloader', 'bizberg' ), 'section' => 'preloader', 'default' => '1', 'choices' => [ '1' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/1.png', '2' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/2.png', '3' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/3.png', '4' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/4.png', '5' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/5.png', '6' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/6.png', '7' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/7.png', '8' => plugin_dir_url( __FILE__ ) . '/assets/img/loader/8.png' ], ] ); }