$description) {
$exclude_theme_locations_opt[$location] = ucfirst($description);
}
return $exclude_theme_locations_opt;
}
$fields[] = array(
'type' => 'radio-image',
'settings' => 'header_style',
'label' => esc_html__( 'Header Layout', 'borax' ),
'section' => 'header_section',
'default' => '1',
'priority' => 10,
'choices' => array(
'1' => BORAX_IMAGES . '/admin/kirki/header/1.jpg',
'2' => BORAX_IMAGES . '/admin/kirki/header/2.jpg',
'3' => BORAX_IMAGES . '/admin/kirki/header/3.jpg',
'4' => BORAX_IMAGES . '/admin/kirki/header/4.jpg',
'5' => BORAX_IMAGES . '/admin/kirki/header/5.jpg',
'6' => BORAX_IMAGES . '/admin/kirki/header/6.jpg',
'7' => BORAX_IMAGES . '/admin/kirki/header/7.jpg',
'8' => BORAX_IMAGES . '/admin/kirki/header/8.jpg',
'9' => BORAX_IMAGES . '/admin/kirki/header/9.jpg',
'10' => BORAX_IMAGES . '/admin/kirki/header/10.jpg',
),
);
// Divider Title
$fields[] = array(
'type' => 'custom',
'settings' => 'top_header_title',
'label' => '',
'section' => 'header_section',
'default' => '
'.esc_html__("Top Header Section","borax").'
',
'priority' => 10,
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
),
),
);
/*
* Header top
* Start of Header top bar options
*/
$fields[]= array(
'type' => 'switch',
'settings' => 'show_top_header',
'label' => esc_html__( 'Show Top Header', 'borax' ),
'section' => 'header_section',
'default' => false,
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
),
),
);
$fields[]= array(
'type' => 'switch',
'settings' => 'header_width',
'label' => esc_html__( 'Do you want to full width header?', 'borax' ),
'section' => 'header_section',
'default' => false,
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
'required' => array(
array(
'setting' => 'header_style',
'operator' => '!=',
'value' => 2,
),
),
);
$fields[]= array(
'type' => 'switch',
'settings' => 'is_sticky_header',
'label' => esc_html__( 'Sticky Header', 'borax' ),
'section' => 'header_section',
'default' => false,
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
);
$fields[]= array(
'type' => 'switch',
'settings' => 'is_transparent_header',
'label' => esc_html__( 'Transparent Header', 'borax' ),
'section' => 'header_section',
'default' => false,
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
);
$fields[]= array(
'type' => 'switch',
'settings' => 'nav_button',
'label' => esc_html__( 'Show Button', 'borax' ),
'section' => 'header_section',
'default' => false,
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
),
),
);
$fields[]= array(
'type' => 'switch',
'settings' => 'nav_search',
'label' => esc_html__( 'Show Search', 'borax' ),
'section' => 'header_section',
'default' => false,
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
),
),
);
$fields[]= array(
'type' => 'switch',
'settings' => 'nav_sidebar',
'label' => esc_html__( 'Show Sidebar', 'borax' ),
'section' => 'header_section',
'default' => false,
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
// array(
// 'setting' => 'header_style',
// 'operator' => '==',
// 'value' => 4,
// ),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'top_background_color',
'label' => esc_html__( 'Top Background Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'show_top_header',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
),
),
'output' => array(
array(
'element' => '.main-header .topbar',
'property' => 'background-color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'top_text_color',
'label' => esc_html__( 'Top Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'multiple' => 999,
'required' => array(
array(
array(
'setting' => 'show_top_header',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
),
),
'output' => array(
array(
'element' => '.topbar .topinfo a, .socials a',
'property' => 'color',
),
),
);
$fields[]= array(
'type' => 'text',
'settings' => 'top_header_phn',
'label' => esc_html__( 'Top Phone Number', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'show_top_header',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
),
),
'js_vars' => array(
array(
'element' => '.top-bar-info li a.top-tel',
'function' => 'html'
),
),
'default' => esc_html__( '119-215-5596', 'borax' ),
);
$fields[]= array(
'type' => 'text',
'settings' => 'top_header_email',
'label' => esc_html__( 'Top Email Address', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'show_top_header',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
),
),
'js_vars' => array(
array(
'element' => '.top-bar-info li a.top-mail',
'function' => 'html'
),
),
'default' => esc_html__( 'info@domain.com', 'borax' ),
);
$fields[] = array(
'type' => 'repeater',
'label' => esc_html__( 'Social Control', 'borax' ),
'section' => 'header_section',
'priority' => 10,
'row_label' => array(
'type' => 'text',
'value' => esc_attr__('Social Profile', 'borax' ),
),
'settings' => 'nav_social_links',
'default' => array(
array(
'social_icon' => 'ti-facebook',
'social_url' => 'https://www.facebook.com/themeies/',
),
),
'fields' => array(
'social_icon' => array(
'type' => 'text',
'label' => esc_attr__( 'Social Icon', 'borax' ),
'default' => '',
),
'social_url' => array(
'type' => 'text',
'label' => esc_attr__( 'Social URL', 'borax' ),
'default' => '',
),
),
'required' => array(
array(
array(
'setting' => 'show_top_header',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
),
),
);
/* End of Header top bar options */
/*
* Main Header
* Start of main Header top bar options
*/
$fields[]= array(
'type' => 'color',
'settings' => 'header_btn_color',
'label' => esc_html__( 'Header Button Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 2,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 9,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
)
),
'output' => array(
array(
'element' => '.header .navbar .btn',
'property' => 'color',
),
),
'default' => esc_html__( 'Contact Us', 'borax' ),
);
$fields[]= array(
'type' => 'color',
'settings' => 'header_hover_color',
'label' => esc_html__( 'Header Button Hover Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 2,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 9,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
)
),
'output' => array(
array(
'element' => '.header .navbar .btn:hover',
'property' => 'background-color',
),
),
'default' => esc_html__( 'Contact Us', 'borax' ),
);
$fields[]= array(
'type' => 'color',
'settings' => 'header_BG_color',
'label' => esc_html__( 'Header Button BG Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 2,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 9,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
)
),
'output' => array(
array(
'element' => '.header .navbar .btn',
'property' => 'background-color',
),
),
'default' => esc_html__( 'Contact Us', 'borax' ),
);
$fields[]= array(
'type' => 'text',
'settings' => 'cta_text',
'label' => esc_html__( 'Header CTA Button Text', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 2,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 9,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
)
),
'js_vars' => array(
array(
'element' => '.header .btn .head-btn-txt',
'function' => 'html'
),
),
'default' => esc_html__( 'Contact Us', 'borax' ),
);
$fields[]= array(
'type' => 'text',
'settings' => 'cta_url',
'label' => esc_html__( 'Header CTA Button URL', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 2,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 8,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 9,
),
)
),
'default' => 'https://themeies.com/',
);
$fields[]= array(
'type' => 'text',
'settings' => 'cta_icon',
'label' => esc_html__( 'Header CTA Icon', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 2,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
)
),
'default' => 'ti-phone',
);
$fields[] = array(
'type' => 'color',
'settings' => 'main_header',
'label' => esc_html__( 'Header Background ', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.main-header .header',
'property' => 'background-color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'sticky_nav_bg_color',
'label' => esc_html__( 'Sticky Header Background ', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
'setting' => 'is_sticky_header',
'operator' => '==',
'value' => true,
),
),
'output' => array(
array(
'element' => '.main-header .header.sticky',
'property' => 'background-color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'sticky_nav_color',
'label' => esc_html__( 'Sticky Nav Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
'setting' => 'is_sticky_header',
'operator' => '==',
'value' => true,
),
),
'output' => array(
array(
'element' => '.main-header .header.sticky .primary-menu li a',
'property' => 'color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'sticky_nav_sub_bg_color',
'label' => esc_html__( 'Sticky Sub Menu BG Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'required' => array(
array(
'setting' => 'is_sticky_header',
'operator' => '==',
'value' => true,
),
),
'output' => array(
array(
'element' => '.main-header .header.sticky .primary-menu li ul.dropdown-menu',
'property' => 'background-color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'nav_menu_color',
'label' => esc_html__( 'Menu Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.header .primary-menu li a',
'property' => 'color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'active_nav_menu_color',
'label' => esc_html__( 'Active Menu Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.header .primary-menu li.active a',
'property' => 'color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'nav_menu_hover_color',
'label' => esc_html__( 'Menu Hover Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.header .primary-menu li a:hover',
'property' => 'color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'nav_submenu_color',
'label' => esc_html__( 'Sub Menu Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.header .primary-menu .dropdown-menu li a',
'property' => 'color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'nav_submenu_hover_color',
'label' => esc_html__( 'Sub Menu Hover Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.header .primary-menu .dropdown-menu li a:hover',
'property' => 'color',
),
),
);
// Mobile Menu background and color
$fields[] = array(
'type' => 'color',
'settings' => 'mobile_menu_bg',
'label' => esc_html__( 'Mobile Menu Background ', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.primary-menu.mobile-menu ul',
'property' => 'background-color',
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'mobile_menu_color',
'label' => esc_html__( 'Mobile Menu Text Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'output' => array(
array(
'element' => '.main-header .header .primary-menu.mobile-menu li a',
'property' => 'color',
),
),
);
/*********
* Sidebar Nav
***/
$fields[] = array(
'type' => 'image',
'settings' => 'nav_sidebar_logo',
'label' => esc_html__( 'Logo', 'borax' ),
'section' => 'header_section',
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
);
$fields[] = array(
'type' => 'color',
'settings' => 'sidebar_close_color',
'label' => esc_html__( 'Sidebar Close Button hover Color', 'borax' ),
'section' => 'header_section',
'transport' => 'auto',
'multiple' => 999,
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
'output' => array(
array(
'element' => '.slideCol .side-section-title .close:hover ',
'property' => 'color',
),
),
);
$fields[]= array(
'type' => 'textarea',
'settings' => 'nav_sidebar_content',
'label' => esc_html__( 'Content', 'borax' ),
'section' => 'header_section',
'transport' => 'postMessage',
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
'js_vars' => array(
array(
'element' => '',
'function' => 'html'
),
),
'default' => '',
);
$fields[] = array(
'type' => 'select',
'settings' => 'sidebar_menu_list',
'label' => esc_html__( 'Select Sidebar Menu', 'borax' ),
'section' => 'header_section',
'default' => 'footer-menu',
'choices' => borax_get_siebar_menu_list(),
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
);
$fields[] = array(
'type' => 'repeater',
'label' => esc_html__( 'Sidebar Contact Info', 'borax' ),
'section' => 'header_section',
'row_label' => array(
'type' => 'text',
'value' => esc_attr__('Sidebar Contact Info', 'borax' ),
),
'settings' => 'sidebar_contact_info',
'default' => array(
array(
'image' => '',
'heading' => esc_html__('Contact Info','borax'),
'sidebaremail' => esc_html__('sales@example.com','borax'),
'sidebarphone' => esc_html__('951-452-6247','borax'),
'sidebaraddress' => esc_html__('928 East Plymouth Drive
Asbury Park, NJ 07712','borax'),
),
),
'active_callback' => array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
'fields' => array(
'heading' => array(
'type' => 'text',
'label' => esc_attr__( 'Heading', 'borax' ),
'default' => 'Contact Info',
),
'sidebaremail' => array(
'type' => 'text',
'label' => esc_attr__( 'Email', 'borax' ),
'default' => 'sales@example.com',
),
'sidebarphone' => array(
'type' => 'text',
'label' => esc_attr__( 'Phone', 'borax' ),
'default' => '+1 234 566 232',
),
'image' => array(
'type' => 'image',
'label' => esc_html__( 'Image', 'borax' ),
'default' => '',
),
'sidebaraddress' => array(
'type' => 'text',
'label' => esc_attr__( 'Address', 'borax' ),
'default' => '928 East Plymouth Drive
Asbury Park, NJ 07712',
),
)
);
$fields[]= array(
'type' => 'switch',
'settings' => 'sidebar_show_subscribe',
'label' => esc_html__( 'Show Subscribe Form', 'borax' ),
'section' => 'header_section',
'default' => true,
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
'choices' => array(
'on' => esc_attr__( 'Enable', 'borax' ),
'off' => esc_attr__( 'Disable', 'borax' ),
),
);
$fields[]= array(
'type' => 'text',
'settings' => 'sidebar_subscribe_title',
'label' => esc_html__( 'Subscribe Form Title', 'borax' ),
'section' => 'header_section',
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
'default' => esc_html__('Get Subscribed!','borax'),
);
$fields[]= array(
'type' => 'text',
'settings' => 'sidebar_subscribe_shortcode',
'label' => esc_html__( 'Subscribe Form Shortcode', 'borax' ),
'section' => 'header_section',
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
);
$fields[] = array(
'type' => 'repeater',
'label' => esc_html__( 'Sidebar Social Icon', 'borax' ),
'section' => 'header_section',
'row_label' => array(
'type' => 'text',
'value' => esc_attr__('Sidebar Social Icon', 'borax' ),
),
'settings' => 'sidebar_social_icon',
'default' => array(
array(
'icon' => 'fa fa-facebook',
'link' => '#',
),
),
'active_callback' => array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
'fields' => array(
'icon' => array(
'type' => 'text',
'label' => esc_html__( 'Icon', 'borax' ),
'default' => '',
),
'link' => array(
'type' => 'text',
'label' => esc_html__( 'Link', 'borax' ),
'default' => '#',
),
)
);
$fields[]= array(
'type' => 'text',
'settings' => 'sidebar_btn',
'label' => esc_html__( 'Button Label', 'borax' ),
'section' => 'header_section',
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
'default' => esc_html__( 'Purchase Now', 'borax' ),
);
$fields[]= array(
'type' => 'text',
'settings' => 'sidebar_btn_link',
'label' => esc_html__( 'Button Link', 'borax' ),
'section' => 'header_section',
'required' => array(
array(
array(
'setting' => 'nav_sidebar',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 1,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 5,
),
),
),
'default' => '#',
);
/* Header 4 */
$fields[]= array(
'type' => 'textarea',
'settings' => 'header4_top_content',
'label' => esc_html__( 'Content', 'borax' ),
'section' => 'header_section',
'transport' => 'postMessage',
'active_callback' => [
[
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
],
],
'js_vars' => array(
array(
'element' => '',
'function' => 'html'
),
),
'default' => '',
);
$fields[] = array(
'type' => 'select',
'settings' => 'header4_top_menu_list',
'label' => esc_html__( 'Select Sidebar Menu', 'borax' ),
'section' => 'header_section',
'default' => 'footer-menu',
'choices' => borax_get_siebar_menu_list(),
'required' => array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
),
);
$fields[] = array(
'type' => 'repeater',
'label' => esc_html__( 'Social Icon', 'borax' ),
'section' => 'header_section',
'row_label' => array(
'type' => 'text',
'value' => esc_attr__('Social Icon', 'borax' ),
),
'settings' => 'header_4_social_icon',
'default' => array(
array(
'icon' => 'fa fa-facebook',
'link' => '#',
),
),
'required' => array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
),
'fields' => array(
'icon' => array(
'type' => 'text',
'label' => esc_html__( 'Icon', 'borax' ),
'default' => '',
),
'link' => array(
'type' => 'text',
'label' => esc_html__( 'Link', 'borax' ),
'default' => '#',
),
)
);
$fields[] = array(
'type' => 'repeater',
'label' => esc_html__( 'Contact Info', 'borax' ),
'section' => 'header_section',
'row_label' => array(
'type' => 'text',
'value' => esc_attr__('Contact Info', 'borax' ),
),
'settings' => 'header4_contact_info',
'default' => array(
array(
'image' => '',
'heading' => esc_html__('Contact Info','borax'),
'description' => esc_html__('928 East Plymouth Drive
Asbury Park, NJ 07712','borax'),
),
),
'required' => array(
array(
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 3,
),
array(
'setting' => 'header_style',
'operator' => '==',
'value' => 4,
),
)
),
'fields' => array(
'image' => array(
'type' => 'image',
'label' => esc_html__( 'Image', 'borax' ),
'default' => '',
),
'heading' => array(
'type' => 'text',
'label' => esc_attr__( 'Heading', 'borax' ),
'default' => 'Contact Info',
),
'description' => array(
'type' => 'textarea',
'label' => esc_attr__( 'Description', 'borax' ),
'default' => 'sales@example.com',
),
)
);