<?php

if ( ! function_exists( 'theaisle_elated_map_post_gallery_meta' ) ) {
	
	function theaisle_elated_map_post_gallery_meta() {
		$gallery_post_format_meta_box = theaisle_elated_create_meta_box(
			array(
				'scope' => array( 'post' ),
				'title' => esc_html__( 'Gallery Post Format', 'theaisle' ),
				'name'  => 'post_format_gallery_meta'
			)
		);
		
		theaisle_elated_add_multiple_images_field(
			array(
				'name'        => 'eltdf_post_gallery_images_meta',
				'label'       => esc_html__( 'Gallery Images', 'theaisle' ),
				'description' => esc_html__( 'Choose your gallery images', 'theaisle' ),
				'parent'      => $gallery_post_format_meta_box,
			)
		);
	}
	
	add_action( 'theaisle_elated_action_meta_boxes_map', 'theaisle_elated_map_post_gallery_meta', 21 );
}
