'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' => '
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' => '