<?php
/**
 * Tattoopress navigation
 *
 * @package WordPress
 * @subpackage Tattoopress
 * @version 3.3.4
 */

defined( 'ABSPATH' ) || exit;

/**
 * Navigation mods
 *
 * @param array $mods Array of mods.
 * @return array
 */
function tattoopress_set_navigation_mods( $mods ) {

	$mods['navigation'] = array(
		'id'      => 'navigation',
		'icon'    => 'menu',
		'title'   => esc_html__( 'Navigation', 'tattoopress' ),
		'options' => array(

			'menu_layout'           => array(
				'id'      => 'menu_layout',
				'label'   => esc_html__( 'Main Menu Layout', 'tattoopress' ),
				'type'    => 'select',
				'default' => 'top-justify',
				'choices' => array(
					'top-right'        => esc_html__( 'Top Right', 'tattoopress' ),
					'top-justify'      => esc_html__( 'Top Justify', 'tattoopress' ),
					'top-justify-left' => esc_html__( 'Top Justify Left', 'tattoopress' ),
					'centered-logo'    => esc_html__( 'Centered', 'tattoopress' ),
					'top-left'         => esc_html__( 'Top Left', 'tattoopress' ),
					'offcanvas'        => esc_html__( 'Off Canvas', 'tattoopress' ),
					'overlay'          => esc_html__( 'Overlay', 'tattoopress' ),
					'lateral'          => esc_html__( 'Lateral', 'tattoopress' ),
				),
			),

			'menu_width'            => array(
				'id'        => 'menu_width',
				'label'     => esc_html__( 'Main Menu Width', 'tattoopress' ),
				'type'      => 'select',
				'choices'   => array(
					'wide'  => esc_html__( 'Wide', 'tattoopress' ),
					'boxed' => esc_html__( 'Boxed', 'tattoopress' ),
				),
				'transport' => 'postMessage',
			),

			'menu_style'            => array(
				'id'        => 'menu_style',
				'label'     => esc_html__( 'Main Menu Style', 'tattoopress' ),
				'type'      => 'select',
				'choices'   => array(
					'semi-transparent-white' => esc_html__( 'Semi-transparent White', 'tattoopress' ),
					'semi-transparent-black' => esc_html__( 'Semi-transparent Black', 'tattoopress' ),
					'solid'                  => esc_html__( 'Solid', 'tattoopress' ),
					'transparent'            => esc_html__( 'Transparent', 'tattoopress' ),
				),
				'transport' => 'postMessage',
			),

			'menu_hover_style'      => array(
				'id'        => 'menu_hover_style',
				'label'     => esc_html__( 'Main Menu Hover Style', 'tattoopress' ),
				'type'      => 'select',
				'choices'   => apply_filters(
					'tattoopress_main_menu_hover_style_options',
					array(
						'none'               => esc_html__( 'None', 'tattoopress' ),
						'opacity'            => esc_html__( 'Opacity', 'tattoopress' ),
						'underline'          => esc_html__( 'Underline', 'tattoopress' ),
						'underline-centered' => esc_html__( 'Underline Centered', 'tattoopress' ),
						'border-top'         => esc_html__( 'Border Top', 'tattoopress' ),
						'plain'              => esc_html__( 'Plain', 'tattoopress' ),
					)
				),
				'transport' => 'postMessage',
			),

			'mega_menu_width'       => array(
				'id'        => 'mega_menu_width',
				'label'     => esc_html__( 'Mega Menu Width', 'tattoopress' ),
				'type'      => 'select',
				'choices'   => array(
					'boxed'     => esc_html__( 'Boxed', 'tattoopress' ),
					'wide'      => esc_html__( 'Wide', 'tattoopress' ),
					'fullwidth' => esc_html__( 'Full Width', 'tattoopress' ),
				),
				'transport' => 'postMessage',
			),

			'menu_breakpoint'       => array(
				'id'          => 'menu_breakpoint',
				'label'       => esc_html__( 'Main Menu Breakpoint', 'tattoopress' ),
				'type'        => 'text',
				'description' => esc_html__( 'Below each width would you like to display the mobile menu? 0 will always show the desktop menu and 99999 will always show the mobile menu.', 'tattoopress' ),
			),

			'menu_sticky_type'      => array(
				'id'        => 'menu_sticky_type',
				'label'     => esc_html__( 'Sticky Menu', 'tattoopress' ),
				'type'      => 'select',
				'choices'   => array(
					'none' => esc_html__( 'Disabled', 'tattoopress' ),
					'soft' => esc_html__( 'Sticky on scroll up', 'tattoopress' ),
					'hard' => esc_html__( 'Always sticky', 'tattoopress' ),
				),
				'transport' => 'postMessage',
			),

			'menu_skin'             => array(
				'id'          => 'menu_skin',
				'label'       => esc_html__( 'Menu Skin', 'tattoopress' ),
				'type'        => 'select',
				'choices'     => array(
					'light' => esc_html__( 'Light', 'tattoopress' ),
					'dark'  => esc_html__( 'Dark', 'tattoopress' ),
				),
				'transport'   => 'postMessage',
				'description' => esc_html__( 'Can be overwite on single page.', 'tattoopress' ),
			),

			'menu_cta_content_type' => array(
				'id'      => 'menu_cta_content_type',
				'label'   => esc_html__( 'Additional Content', 'tattoopress' ),
				'type'    => 'select',
				'default' => 'icons',
				'choices' => apply_filters(
					'tattoopress_menu_cta_content_type_options',
					array(
						'search_icon'    => esc_html__( 'Search Icon', 'tattoopress' ),
						'secondary-menu' => esc_html__( 'Secondary Menu', 'tattoopress' ),
						'none'           => esc_html__( 'None', 'tattoopress' ),
					)
				),
			),
		),
	);

	$mods['navigation']['options']['menu_socials'] = array(
		'id'          => 'menu_socials',
		'label'       => esc_html__( 'Menu Socials', 'tattoopress' ),
		'type'        => 'text',
		'description' => esc_html__( 'The list of social services to display in the menu. (eg: facebook,twitter,instagram)', 'tattoopress' ),
	);

	$mods['navigation']['options']['side_panel_position'] = array(
		'id'          => 'side_panel_position',
		'label'       => esc_html__( 'Side Panel', 'tattoopress' ),
		'type'        => 'select',
		'choices'     => array(
			'none'  => esc_html__( 'None', 'tattoopress' ),
			'right' => esc_html__( 'At Right', 'tattoopress' ),
			'left'  => esc_html__( 'At Left', 'tattoopress' ),
		),
		'description' => esc_html__( 'Note that it will be disable with a vertical menu layout (offcanvas and lateral layout).', 'tattoopress' ),
	);

	return $mods;
}
add_filter( 'tattoopress_customizer_mods', 'tattoopress_set_navigation_mods' );
