File: /home/parhudrw/emenu.anqa.it/wp-content/themes/ticrou/includes/resource/options/headers_setting.php
<?php
return array(
'title' => esc_html__( 'Header Setting', 'ticrou' ),
'id' => 'headers_setting',
'desc' => '',
'subsection' => false,
'fields' => array(
array(
'id' => 'header_source_type',
'type' => 'button_set',
'title' => esc_html__( 'Header Source Type', 'ticrou' ),
'options' => array(
'd' => esc_html__( 'Default', 'ticrou' ),
'e' => esc_html__( 'Elementor', 'ticrou' ),
),
'default' => 'd',
),
array(
'id' => 'header_elementor_template',
'type' => 'select',
'title' => __( 'Template', 'ticrou' ),
'data' => 'posts',
'args' => [
'post_type' => [ 'elementor_library' ],
'posts_per_page' => -1
],
'required' => [ 'header_source_type', '=', 'e' ],
),
array(
'id' => 'header_style_section_start',
'type' => 'section',
'indent' => true,
'title' => esc_html__( 'Header Settings', 'ticrou' ),
'required' => array( 'header_source_type', '=', 'd' ),
),
//Header Settings
array(
'id' => 'header_style_settings',
'type' => 'image_select',
'title' => esc_html__( 'Choose Header Styles', 'ticrou' ),
'subtitle' => esc_html__( 'Choose Header Styles', 'ticrou' ),
'options' => array(
'header_v1' => array(
'alt' => esc_html__( 'Header Style 1', 'ticrou' ),
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v1.png',
),
'header_v2' => array(
'alt' => esc_html__( 'Header Style 2', 'ticrou' ),
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v2.png',
),
'header_v3' => array(
'alt' => esc_html__( 'Header Style 3', 'ticrou' ),
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v3.png',
),
'header_v4' => array(
'alt' => esc_html__( 'One Page Header Style', 'ticrou' ),
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v4.png',
),
'header_v5' => array(
'alt' => esc_html__( 'RtL Page Header Style', 'ticrou' ),
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v5.png',
),
),
'required' => array( 'header_source_type', '=', 'd' ),
'default' => 'header_v1',
),
/***********************************************************************
Header Version 1 Start
************************************************************************/
array(
'id' => 'header_v1_settings_section_start',
'type' => 'section',
'indent' => true,
'title' => esc_html__( 'Header Style One Settings', 'ticrou' ),
'required' => array( 'header_style_settings', '=', 'header_v1' ),
),
array(
'id' => 'show_seach_form_v1',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Search Form', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v1' ),
),
array(
'id' => 'show_topbar_v1',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Header Topbar', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v1' ),
),
array(
'id' => 'email_address_v1',
'type' => 'text',
'title' => __( 'Email Address', 'ticrou' ),
'required' => array( 'show_topbar_v1', '=', true ),
),
array(
'id' => 'opening_hours_v1',
'type' => 'textarea',
'title' => __( 'Opening Hours', 'ticrou' ),
'required' => array( 'show_topbar_v1', '=', true ),
),
array(
'id' => 'header_v1_social_share',
'type' => 'social_media',
'title' => esc_html__( 'Social Media', 'ticrou' ),
'required' => array( 'show_topbar_v1', '=', true ),
),
array(
'id' => 'btn_title_v1',
'type' => 'text',
'title' => __( 'Button Title', 'ticrou' ),
'required' => array( 'show_topbar_v1', '=', true ),
),
array(
'id' => 'btn_link_v1',
'type' => 'text',
'title' => __( 'Button Link', 'ticrou' ),
'required' => array( 'show_topbar_v1', '=', true ),
),
array(
'id' => 'show_cart_icon_v1',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v1' ),
),
array(
'id' => 'show_cart_icon_v1_sticky',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Sticky Header Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v1' ),
),
array(
'id' => 'show_mobile_info',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Moblie Info', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v1' ),
),
array(
'id' => 'contact_title_v1',
'type' => 'text',
'title' => __( 'Contact Title', 'ticrou' ),
'required' => array( 'show_mobile_info', '=', true ),
),
array(
'id' => 'address_v1',
'type' => 'text',
'title' => __( 'Address', 'ticrou' ),
'required' => array( 'show_mobile_info', '=', true ),
),
array(
'id' => 'contact_no_v1',
'type' => 'text',
'title' => __( 'Contact Number', 'ticrou' ),
'required' => array( 'show_mobile_info', '=', true ),
),
array(
'id' => 'our_email',
'type' => 'text',
'title' => __( 'Email Address', 'ticrou' ),
'required' => array( 'show_mobile_info', '=', true ),
),
array(
'id' => 'header_social_share_v1',
'type' => 'social_media',
'title' => esc_html__( 'Mobile View Social Media', 'ticrou' ),
'required' => array( 'show_mobile_info', '=', true ),
),
/***********************************************************************
Header Version 2 Start
************************************************************************/
array(
'id' => 'header_v2_settings_section_start',
'type' => 'section',
'indent' => true,
'title' => esc_html__( 'Header Style Two Settings', 'ticrou' ),
'required' => array( 'header_style_settings', '=', 'header_v2' ),
),
array(
'id' => 'show_seach_form_v2',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Search Form', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v2' ),
),
array(
'id' => 'show_cart_icon_v2',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v2' ),
),
array(
'id' => 'show_cart_icon_v2_sticky',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Sticky Header Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v2' ),
),
array(
'id' => 'show_mobile_info_v2',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Moblie Info', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v2' ),
),
array(
'id' => 'contact_title_v2',
'type' => 'text',
'title' => __( 'Contact Title', 'ticrou' ),
'required' => array( 'show_mobile_info_v2', '=', true ),
),
array(
'id' => 'address_v2',
'type' => 'text',
'title' => __( 'Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v2', '=', true ),
),
array(
'id' => 'contact_no_v2',
'type' => 'text',
'title' => __( 'Contact Number', 'ticrou' ),
'required' => array( 'show_mobile_info_v2', '=', true ),
),
array(
'id' => 'our_email_v2',
'type' => 'text',
'title' => __( 'Email Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v2', '=', true ),
),
array(
'id' => 'header_social_share_v2',
'type' => 'social_media',
'title' => esc_html__( 'Mobile View Social Media', 'ticrou' ),
'required' => array( 'show_mobile_info_v2', '=', true ),
),
/***********************************************************************
Header Version 3 Start
************************************************************************/
array(
'id' => 'header_v3_settings_section_start',
'type' => 'section',
'indent' => true,
'title' => esc_html__( 'Header Style Three Settings', 'ticrou' ),
'required' => array( 'header_style_settings', '=', 'header_v3' ),
),
array(
'id' => 'show_seach_form_v3',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Search Form', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v3' ),
),
array(
'id' => 'show_cart_icon_v3',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v3' ),
),
array(
'id' => 'show_cart_icon_v3_sticky',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Sticky Header Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v3' ),
),
array(
'id' => 'show_mobile_info_v3',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Moblie Info', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v3' ),
),
array(
'id' => 'contact_title_v3',
'type' => 'text',
'title' => __( 'Contact Title', 'ticrou' ),
'required' => array( 'show_mobile_info_v3', '=', true ),
),
array(
'id' => 'address_v3',
'type' => 'text',
'title' => __( 'Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v3', '=', true ),
),
array(
'id' => 'contact_no_v3',
'type' => 'text',
'title' => __( 'Contact Number', 'ticrou' ),
'required' => array( 'show_mobile_info_v3', '=', true ),
),
array(
'id' => 'our_email_v3',
'type' => 'text',
'title' => __( 'Email Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v3', '=', true ),
),
array(
'id' => 'header_social_share_v3',
'type' => 'social_media',
'title' => esc_html__( 'Mobile View Social Media', 'ticrou' ),
'required' => array( 'show_mobile_info_v3', '=', true ),
),
/***********************************************************************
Header Version 4 Start
************************************************************************/
array(
'id' => 'header_v4_settings_section_start',
'type' => 'section',
'indent' => true,
'title' => esc_html__( 'Header Style Four Settings', 'ticrou' ),
'required' => array( 'header_style_settings', '=', 'header_v4' ),
),
array(
'id' => 'show_seach_form_v4',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Search Form', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v4' ),
),
array(
'id' => 'show_topbar_v4',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Header Topbar', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v4' ),
),
array(
'id' => 'email_address_v4',
'type' => 'text',
'title' => __( 'Email Address', 'ticrou' ),
'required' => array( 'show_topbar_v4', '=', true ),
),
array(
'id' => 'opening_hours_v4',
'type' => 'textarea',
'title' => __( 'Opening Hours', 'ticrou' ),
'required' => array( 'show_topbar_v4', '=', true ),
),
array(
'id' => 'header_v4_social_share',
'type' => 'social_media',
'title' => esc_html__( 'Social Media', 'ticrou' ),
'required' => array( 'show_topbar_v4', '=', true ),
),
array(
'id' => 'btn_title_v4',
'type' => 'text',
'title' => __( 'Button Title', 'ticrou' ),
'required' => array( 'show_topbar_v4', '=', true ),
),
array(
'id' => 'btn_link_v4',
'type' => 'text',
'title' => __( 'Button Link', 'ticrou' ),
'required' => array( 'show_topbar_v4', '=', true ),
),
array(
'id' => 'show_cart_icon_v4',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v4' ),
),
array(
'id' => 'show_cart_icon_v4_sticky',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Sticky Header Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v4' ),
),
array(
'id' => 'show_mobile_info_v4',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Moblie Info', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v4' ),
),
array(
'id' => 'contact_title_v4',
'type' => 'text',
'title' => __( 'Contact Title', 'ticrou' ),
'required' => array( 'show_mobile_info_v4', '=', true ),
),
array(
'id' => 'address_v4',
'type' => 'text',
'title' => __( 'Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v4', '=', true ),
),
array(
'id' => 'contact_no_v4',
'type' => 'text',
'title' => __( 'Contact Number', 'ticrou' ),
'required' => array( 'show_mobile_info_v4', '=', true ),
),
array(
'id' => 'our_email_v4',
'type' => 'text',
'title' => __( 'Email Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v4', '=', true ),
),
array(
'id' => 'header_social_share_v4',
'type' => 'social_media',
'title' => esc_html__( 'Mobile View Social Media', 'ticrou' ),
'required' => array( 'show_mobile_info_v4', '=', true ),
),
/***********************************************************************
Header Version 5 Start
************************************************************************/
array(
'id' => 'header_v5_settings_section_start',
'type' => 'section',
'indent' => true,
'title' => esc_html__( 'Header Style Five Settings', 'ticrou' ),
'required' => array( 'header_style_settings', '=', 'header_v5' ),
),
array(
'id' => 'show_seach_form_v5',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Search Form', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v5' ),
),
array(
'id' => 'show_cart_icon_v5',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v5' ),
),
array(
'id' => 'show_cart_icon_v5_sticky',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Sticky Header Cart Icon', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v5' ),
),
array(
'id' => 'show_mobile_info_v5',
'type' => 'switch',
'title' => esc_html__('Enable/Disable Moblie Info', 'ticrou'),
'default' => false,
'required' => array( 'header_style_settings', '=', 'header_v5' ),
),
array(
'id' => 'contact_title_v5',
'type' => 'text',
'title' => __( 'Contact Title', 'ticrou' ),
'required' => array( 'show_mobile_info_v5', '=', true ),
),
array(
'id' => 'address_v5',
'type' => 'text',
'title' => __( 'Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v5', '=', true ),
),
array(
'id' => 'contact_no_v5',
'type' => 'text',
'title' => __( 'Contact Number', 'ticrou' ),
'required' => array( 'show_mobile_info_v5', '=', true ),
),
array(
'id' => 'our_email_v5',
'type' => 'text',
'title' => __( 'Email Address', 'ticrou' ),
'required' => array( 'show_mobile_info_v5', '=', true ),
),
array(
'id' => 'header_social_share_v5',
'type' => 'social_media',
'title' => esc_html__( 'Mobile View Social Media', 'ticrou' ),
'required' => array( 'show_mobile_info_v5', '=', true ),
),
array(
'id' => 'header_style_section_end',
'type' => 'section',
'indent' => false,
'required' => [ 'header_source_type', '=', 'd' ],
),
),
);