<?php
/**
 * Event Edit Meta box Other Data
 * @version 5.0.3
 */


	// subtitle
	echo EVO()->elements->get_element( array(
		'type'=>'input',
		'name'=> __('Event Subtitle','eventon'),
		'field_class'=> 'evodata_subtitle',
		'id'=>'evcal_subtitle',
		'value'=> $EVENT->get_prop('evcal_subtitle'),
	));

	// excerpt @added 5.0.3
	echo EVO()->elements->get_element( array(
		'type'=>'textarea',
		'name'=> __('Event Excerpt','eventon'),
		'field_class'=> 'evodata_excerpt',
		'tooltip'=> __('Excerpt for event, that can be used to show in eventtop.'),
		'id'=>'evo_excerpt',
		'value'=> $EVENT->get_prop('evo_excerpt'),
	));
?>

				
<div class='evodata_status evcal_data_block_style1 event_status_settings evomarb10'>
	<p class=""><?php _e('Event Status','eventon');?></p>
	<div class='evcal_db_data'>
		<?php
		$_status = $EVENT->get_event_status();
		echo EVO()->elements->get_element( array(
			'type'=>'select_row',
			'row_class'=>'es_values',
			'id'=>'_status',
			'value'=>$_status,
			'options'=>$EVENT->get_status_array()
		));
		?>
		<div class='cancelled_extra' style="display:<?php echo $_status =='cancelled'? 'block':'none';?>">
			<p><label><?php _e('Reason for cancelling','eventon');?></label><textarea name='_cancel_reason'><?php echo $EVENT->get_prop('_cancel_reason');?></textarea>
		</div>
		<div class='movedonline_extra' style="display:<?php echo $_status =='movedonline'? 'block':'none';?>">
			<p><label><?php _e('More details for online event','eventon');?></label><textarea name='_movedonline_reason'><?php echo $EVENT->get_prop('_movedonline_reason');?></textarea>
		</div>
		<div class='postponed_extra' style="display:<?php echo $_status =='postponed'? 'block':'none';?>">
			<p><label><?php _e('More details about postpone','eventon');?></label><textarea name='_postponed_reason'><?php echo $EVENT->get_prop('_postponed_reason');?></textarea>
		</div>
		<div class='rescheduled_extra' style="display:<?php echo $_status =='rescheduled'? 'block':'none';?>">
			<p><label><?php _e('More details about reschedule','eventon');?></label><textarea name='_rescheduled_reason'><?php echo $EVENT->get_prop('_rescheduled_reason');?></textarea>

			<?php /*
			<p>
				<label><?php _e('Previous start date (for SEO)','eventon');?></label></p>
			<div class='prev_start_date' style='background-color: #c3c3c3;padding: 10px; border-radius: 10px;'>
			<?php

				$wp_time_format = get_option('time_format');

				echo EVO()->elements->print_date_time_selector( array(
					'type'=>'prev',
					'unix'=> $EVENT->get_prop('_prevstartdate'),
					'time_format'=>$wp_time_format
				));

			?>	
			</div>
			*/?>
		</div>
	</div>
</div>
<div class='evcal_data_block_style1 event_attendance_settings'>
	<p class=""><?php _e('Event Attendance Mode','eventon');?></p>
	<div class='evcal_db_data'>
		<?php
		
		echo EVO()->elements->get_element( array(
			'type'=>'select_row',
			'row_class'=>'eatt_values',
			'name'=>'_attendance_mode',
			'value'=>	$EVENT->get_attendance_mode(),
			'options'=>	EVO()->cal->get_attendance_modes()
		));
		?>		
	</div>
</div>
