<?php
/**
 * Template file for WP Travel gallery tab.
 *
 * @package WP_Travel
 */

global $post;
?>

<div class="wp-travel-post-tab-content-section">
	<h3 class="wp-travel-post-tab-content-section-title"><?php esc_html_e( 'Upload Gallery images', 'wp-travel' ); ?></h3>
	<div class="wp-travel-open-upload-area">
		<div id="wp-travel-upload-error"></div>
		<?php
		media_upload_form();
		?>
		<script type="text/javascript">
				var post_id = <?php echo esc_attr( $post->ID ); ?>, shortform = 3;
		</script>
	</div>
	<div class="wp-travel-open-uploaded-images">
		<h3 class="wp-travel-post-tab-content-section-title"><?php esc_html_e( 'Gallery images', 'wp-travel' ); ?></h3>
		<ul>
		</ul>
	</div>
	<input type="hidden" name="wp_travel_gallery_ids" id="wp_travel_gallery_ids" value="" />
	<input type="hidden" name="wp_travel_thumbnail_id" id="wp_travel_thumbnail_id" value="" />
</div>
