<?php

if ( ! function_exists( 'calla_elated_get_hide_dep_for_header_standard_meta_boxes' ) ) {
	function calla_elated_get_hide_dep_for_header_standard_meta_boxes() {
		$hide_dep_options = apply_filters( 'calla_elated_header_standard_hide_meta_boxes', $hide_dep_options = array() );
		
		return $hide_dep_options;
	}
}

if ( ! function_exists( 'calla_elated_header_standard_meta_map' ) ) {
	function calla_elated_header_standard_meta_map( $parent ) {
		$hide_dep_options = calla_elated_get_hide_dep_for_header_standard_meta_boxes();
		
		calla_elated_create_meta_box_field(
			array(
				'parent'          => $parent,
				'type'            => 'select',
				'name'            => 'eltdf_set_menu_area_position_meta',
				'default_value'   => '',
				'label'           => esc_html__( 'Choose Menu Area Position', 'calla' ),
				'description'     => esc_html__( 'Select menu area position in your header', 'calla' ),
				'options'         => array(
					''       => esc_html__( 'Default', 'calla' ),
					'left'   => esc_html__( 'Left', 'calla' ),
					'right'  => esc_html__( 'Right', 'calla' ),
					'center' => esc_html__( 'Center', 'calla' )
				),
				'dependency' => array(
					'hide' => array(
						'eltdf_header_type_meta'  => $hide_dep_options
					)
				)
			)
		);
	}
	
	add_action( 'calla_elated_additional_header_area_meta_boxes_map', 'calla_elated_header_standard_meta_map' );
}