<?php

if ( ! function_exists( 'theaisle_elated_map_post_quote_meta' ) ) {
	function theaisle_elated_map_post_quote_meta() {
		$quote_post_format_meta_box = theaisle_elated_create_meta_box(
			array(
				'scope' => array( 'post' ),
				'title' => esc_html__( 'Quote Post Format', 'theaisle' ),
				'name'  => 'post_format_quote_meta'
			)
		);
		
		theaisle_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_post_quote_text_meta',
				'type'        => 'text',
				'label'       => esc_html__( 'Quote Text', 'theaisle' ),
				'description' => esc_html__( 'Enter Quote text', 'theaisle' ),
				'parent'      => $quote_post_format_meta_box
			)
		);
		
		theaisle_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_post_quote_author_meta',
				'type'        => 'text',
				'label'       => esc_html__( 'Quote Author', 'theaisle' ),
				'description' => esc_html__( 'Enter Quote author', 'theaisle' ),
				'parent'      => $quote_post_format_meta_box
			)
		);
	}
	
	add_action( 'theaisle_elated_action_meta_boxes_map', 'theaisle_elated_map_post_quote_meta', 25 );
}