<?php
/**
 * The Template for displaying single event page.
 *
 * Override this template by copying it to yourtheme/wp-events-manager/single-event.php
 *
 * @version     2.1
 * @package     WPEMS/Templates
 * @category    Templates
 * @author      Thimpress, leehld
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit;
?>

<?php get_header(); ?>

<?php
/**
 * tp_event_before_main_content hook
 */
do_action( 'tp_event_before_main_content' );
?>

<?php while ( have_posts() ) : the_post(); ?>

	<?php wpems_get_template_part( 'content', 'single-event' ); ?>

<?php endwhile; // end of the loop. ?>

<?php
/**
 * tp_event_after_main_content hook
 *
 * @hooked tp_event_after_main_content - 10 (outputs closing divs for the content)
 */
do_action( 'tp_event_after_main_content' );
?>

<?php get_footer();