<?php
/**
 * The Template for displaying single event
 *
 * @see         
 * @package     Eventin\Templates
 * @version     2.3.2
 */

use Etn\Utils\Helper;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

Helper::etn_template_include();
?>
	<?php
		/**
		 * etn_event_content_before hook.
		 */
        do_action( "etn_event_content_before" );

        // it is for testing purpose , will remove after finish work

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

        <?php
        the_post();

        // Check if password is required
        if ( post_password_required() ) {
            echo get_the_password_form();
            continue;
        }

        //show woocommerce notice
        if ( class_exists( 'WooCommerce' ) ) {
            wc_print_notices();
        }

        ?>

        <?php do_action( "etn_single_event_template" ); ?>

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

    <?php
		/**
		 * etn_event_content_after hook.
		 */
        do_action( "etn_event_content_after" );

    ?>

<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */