<?php
/**
 * Header Tab
 *
 * @package Magnus
 */

$menus['header'] = array(
	'icon'  => 'fa-header',
	'title' => esc_html__( 'Header', 'magnus' ),
);

$menus['header']['child']['header-general'] = array(
	'title' => esc_html__( 'General', 'magnus' ),
	'desc'  => esc_html__( 'From here, you can control the elements of header section.', 'magnus' ),
);

$sections['header-general'] = array(

	array(
		'id'       => 'mts_header_style',
		'type'     => 'radio_img',
		'title'    => esc_html__( 'Header Styling', 'magnus' ),
		'sub_desc' => wp_kses( __( 'Choose the <strong>Header design</strong> for your site.', 'magnus' ), array( 'strong' => '' ) ),
		'options'  => array(
			'header-default' => array( 'img' => $uri . 'headers/header-default.jpg' ),
			'header-layout2' => array( 'img' => $uri . 'headers/header-layout2.jpg' ),
			'header-layout3' => array( 'img' => $uri . 'headers/header-layout3.jpg' ),
		),
		'std'      => 'header-layout3',
	),

	array(
		'id'       => 'mts_sticky_nav',
		'type'     => 'switch',
		'title'    => esc_html__( 'Floating Navigation Menu', 'magnus' ),
		// translators: Floating Navigation Menu with strong tag.
		'sub_desc' => sprintf( esc_html__( 'Use this button to enable %s.', 'magnus' ), '<strong>' . esc_html__( 'Floating Navigation Menu', 'magnus' ) . '</strong>' ),
		'std'      => '0',
	),

	array(
		'id'       => 'mts_header_margin',
		'type'     => 'margin',
		'title'    => esc_html__( 'Header Margin', 'magnus' ),
		'sub_desc' => esc_html__( 'Set header margin from here.', 'magnus' ),
		'left'     => false,
		'right'    => false,
		'std'      => array(
			'top'    => '0',
			'bottom' => '0',
		),
	),
	array(
		'id'       => 'mts_header_padding',
		'type'     => 'margin',
		'title'    => esc_html__( 'Header Padding', 'magnus' ),
		'sub_desc' => esc_html__( 'Set header padding from here.', 'magnus' ),
		'left'     => false,
		'right'    => false,
		'std'      => array(
			'top'    => '11px',
			'bottom' => '5px',
		),
	),

	array(
		'id'       => 'mts_header_border',
		'type'     => 'border',
		'title'    => esc_html__( 'Border', 'magnus' ),
		'sub_desc' => esc_html__( 'Select border.', 'magnus' ),
	),

	array(
		'id'         => 'mts_header_social_icons',
		'type'       => 'switch',
		'title'      => esc_html__( 'Show header social icons', 'magnus' ),
		'sub_desc'   => esc_html__( 'Use this button to show or hide Header Social Icons.', 'magnus' ),
		'std'        => '1',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_header_style',
				'value'      => 'header-layout3',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'         => 'mts_header_social',
		'title'      => esc_html__( 'Header Social Icons', 'magnus' ),
		'sub_desc'   => esc_html__( 'Add Social Media icons in header.', 'magnus' ),
		'type'       => 'group',
		'groupname'  => esc_html__( 'Header Icons', 'magnus' ), // Group name.
		'subfields'  => array(
			array(
				'id'    => 'mts_header_icon_title',
				'type'  => 'text',
				'title' => esc_html__( 'Title', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon',
				'type'  => 'icon_select',
				'title' => esc_html__( 'Icon', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_link',
				'type'  => 'text',
				'title' => esc_html__( 'URL', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_bgcolor',
				'type'  => 'color',
				'title' => esc_html__( 'Header icon background color', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_hover_bgcolor',
				'type'  => 'color',
				'title' => esc_html__( 'Header icon background hover color', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_color',
				'type'  => 'color',
				'title' => esc_html__( 'Header icon color', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_hover_color',
				'type'  => 'color',
				'title' => esc_html__( 'Header icon hover color', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_margin',
				'type'  => 'margin',
				'title' => esc_html__( 'Header icon Margin', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_padding',
				'type'  => 'margin',
				'title' => esc_html__( 'Header icon Padding', 'magnus' ),
			),
			array(
				'id'       => 'mts_header_icon_border',
				'type'     => 'border',
				'title'    => esc_html__( 'Border', 'magnus' ),
				'sub_desc' => esc_html__( 'Select border.', 'magnus' ),
			),
			array(
				'id'    => 'mts_header_icon_border_radius',
				'type'  => 'text',
				'class' => 'small-text',
				'title' => esc_html__( 'Header icon border radius', 'magnus' ),
				'args'  => array( 'type' => 'number' ),
			),
		),
		'std'        => array(
			'facebook'  => array(
				'group_title'                   => 'Facebook',
				'group_sort'                    => '1',
				'mts_header_icon_title'         => 'Facebook',
				'mts_header_icon'               => 'facebook-square',
				'mts_header_icon_link'          => '#',
				'mts_header_icon_bgcolor'       => '',
				'mts_header_icon_hover_bgcolor' => '',
				'mts_header_icon_color'         => magnus_get_settings( 'mts_color_scheme' ),
				'mts_header_icon_hover_color'   => '#1c2534',
				'mts_header_icon_margin'        => array(
					'top'    => '0',
					'right'  => '10px',
					'bottom' => '0',
					'left'   => '10px',
				),
				'mts_header_icon_padding'       => array(
					'top'    => '15px',
					'right'  => '0',
					'bottom' => '15px',
					'left'   => '0',
				),
				'mts_header_icon_border_radius' => '0',
				'mts_header_icon_border_radius' => '0',
				'mts_header_icon_border'        => array(
					'direction' => 'all',
					'size'      => '0',
					'style'     => 'solid',
					'color'     => '#777',
				),
			),
			'twitter'   => array(
				'group_title'                   => 'Twitter',
				'group_sort'                    => '2',
				'mts_header_icon_title'         => 'Twitter',
				'mts_header_icon'               => 'twitter',
				'mts_header_icon_link'          => '#',
				'mts_header_icon_bgcolor'       => '',
				'mts_header_icon_hover_bgcolor' => '',
				'mts_header_icon_color'         => magnus_get_settings( 'mts_color_scheme' ),
				'mts_header_icon_hover_color'   => '#1c2534',
				'mts_header_icon_margin'        => array(
					'top'    => '0',
					'right'  => '10px',
					'bottom' => '0',
					'left'   => '10px',
				),
				'mts_header_icon_padding'       => array(
					'top'    => '15px',
					'right'  => '0',
					'bottom' => '15px',
					'left'   => '0',
				),
				'mts_header_icon_border_radius' => '0',
				'mts_header_icon_border'        => array(
					'direction' => 'all',
					'size'      => '0',
					'style'     => 'solid',
					'color'     => '#777',
				),
			),
			'instagram' => array(
				'group_title'                   => 'Instagram',
				'group_sort'                    => '3',
				'mts_header_icon_title'         => 'Instagram',
				'mts_header_icon'               => 'instagram',
				'mts_header_icon_link'          => '#',
				'mts_header_icon_bgcolor'       => '',
				'mts_header_icon_hover_bgcolor' => '',
				'mts_header_icon_color'         => magnus_get_settings( 'mts_color_scheme' ),
				'mts_header_icon_hover_color'   => '#1c2534',
				'mts_header_icon_margin'        => array(
					'top'    => '0',
					'right'  => '10px',
					'bottom' => '0',
					'left'   => '10px',
				),
				'mts_header_icon_padding'       => array(
					'top'    => '15px',
					'right'  => '0',
					'bottom' => '15px',
					'left'   => '0',
				),
				'mts_header_icon_border_radius' => '0',
				'mts_header_icon_border'        => array(
					'direction' => 'all',
					'size'      => '0',
					'style'     => 'solid',
					'color'     => '#777',
				),
			),
			'youtube'   => array(
				'group_title'                   => 'YouTube',
				'group_sort'                    => '4',
				'mts_header_icon_title'         => 'YouTube',
				'mts_header_icon'               => 'youtube-play',
				'mts_header_icon_link'          => '#',
				'mts_header_icon_bgcolor'       => '',
				'mts_header_icon_hover_bgcolor' => '',
				'mts_header_icon_color'         => magnus_get_settings( 'mts_color_scheme' ),
				'mts_header_icon_hover_color'   => '#1c2534',
				'mts_header_icon_margin'        => array(
					'top'    => '0',
					'right'  => '10px',
					'bottom' => '0',
					'left'   => '10px',
				),
				'mts_header_icon_padding'       => array(
					'top'    => '15px',
					'right'  => '0',
					'bottom' => '15px',
					'left'   => '0',
				),
				'mts_header_icon_border_radius' => '0',
				'mts_header_icon_border'        => array(
					'direction' => 'all',
					'size'      => '0',
					'style'     => 'solid',
					'color'     => '#777',
				),
			),
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_header_social_icons',
				'value'      => '1',
				'comparison' => '==',
			),
			array(
				'field'      => 'mts_show_primary_nav',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'         => 'mts_header_search',
		'type'       => 'switch',
		'title'      => esc_html__( 'Show Header Search Form', 'magnus' ),
		'sub_desc'   => wp_kses( __( 'Use this button to Show or Hide the <strong>Header Search Form</strong> completely.', 'magnus' ), array( 'strong' => '' ) ),
		'std'        => '1',
		'dependency' => array(
			'relation' => 'or',
			array(
				'field'      => 'mts_header_style',
				'value'      => 'header-layout3',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'         => 'header_search_position',
		'type'       => 'text',
		'class'      => 'small-text',
		'title'      => esc_html__( 'Search Position from Top', 'schema' ),
		'sub_desc'   => esc_html__( 'Enter search position from top in px.', 'schema' ),
		'std'        => '88',
		'args'       => array( 'type' => 'number' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_header_style',
				'value'      => 'header-layout3',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'       => 'mts_header_section2',
		'type'     => 'switch',
		'title'    => esc_html__( 'Show Logo', 'magnus' ),
		'sub_desc' => wp_kses( __( 'Use this button to Show or Hide the <strong>Logo</strong> completely.', 'magnus' ), array( 'strong' => '' ) ),
		'std'      => '1',
	),

	array(
		'id'         => 'mts_header_background',
		'type'       => 'background',
		'title'      => esc_html__( 'Header Background', 'magnus' ),
		'sub_desc'   => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
		'options'    => array(
			'color'         => '',            // false to disable, not needed otherwise.
			'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
			'image_upload'  => '',            // false to disable, not needed otherwise.
			'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
			'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
			'position'      => array(),       // false to disable, array of options to override default ( optional ).
			'size'          => array(),       // false to disable, array of options to override default ( optional ).
			'gradient'      => '',            // false to disable, not needed otherwise.
			'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
		),
		'std'        => array(
			'color'         => '#ffffff',
			'use'           => 'pattern',
			'image_pattern' => 'nobg',
			'image_upload'  => '',
			'repeat'        => 'repeat',
			'attachment'    => 'scroll',
			'position'      => 'left top',
			'size'          => 'cover',
			'gradient'      => array(
				'from'      => '#ffffff',
				'to'        => '#000000',
				'direction' => '0deg',
			),
			'parallax'      => '0',
		),
		'dependency' => array(
			'relation' => 'or',
			array(
				'field'      => 'mts_header_style',
				'value'      => 'header-default',
				'comparison' => '==',
			),
			array(
				'field'      => 'mts_header_style',
				'value'      => '5',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'       => 'mts_main_navigation_background',
		'type'     => 'background',
		'title'    => esc_html__( 'Main Navigation Background', 'magnus' ),
		'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
		'options'  => array(
			'color'         => '',            // false to disable, not needed otherwise.
			'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
			'image_upload'  => '',            // false to disable, not needed otherwise.
			'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
			'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
			'position'      => array(),       // false to disable, array of options to override default ( optional ).
			'size'          => array(),       // false to disable, array of options to override default ( optional ).
			'gradient'      => '',            // false to disable, not needed otherwise.
			'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
		),
		'std'      => array(
			'color'         => '#ffffff',
			'use'           => 'pattern',
			'image_pattern' => 'nobg',
			'image_upload'  => '',
			'repeat'        => 'repeat',
			'attachment'    => 'scroll',
			'position'      => 'left top',
			'size'          => 'cover',
			'gradient'      => array(
				'from'      => '#ffffff',
				'to'        => '#000000',
				'direction' => '0deg',
			),
			'parallax'      => '0',
		),
	),
	array(
		'id'       => 'main_navigation_dropdown_color',
		'type'     => 'color',
		'title'    => esc_html__( 'Dropdown Text Color', 'magnus' ),
		'sub_desc' => esc_html__( 'Select dropdown text color for main navigation from here.', 'magnus' ),
		'std'      => '#3f4770',
	),
	array(
		'id'       => 'main_navigation_dropdown_hover_color',
		'type'     => 'color',
		'title'    => esc_html__( 'Dropdown Text Hover Color', 'magnus' ),
		'sub_desc' => esc_html__( 'Select dropdown text color for main navigation from here.', 'magnus' ),
		'std'      => magnus_get_settings( 'mts_color_scheme' ),
	),

);
