<?php
/**
 * Displaying all pages.
 * @package Hotel Resort
*/

get_header(); ?>

<?php do_action( 'hotel_resort_page_header' ); ?>
    <main id="main" role="main" class="main-content">
        <div class="container">
            <div class="wrapper">
                <?php while ( have_posts() ) : the_post(); ?>
                    <?php the_post_thumbnail(); ?>
                    <h1><?php the_title(); ?></h1>
                    <div class="entry-content"><?php the_content();?></div>
                    <?php
                    wp_link_pages( array(
                        'before' => '<div class="page-links">' . __( 'Pages:', 'hotel-resort' ),
                        'after'  => '</div>',
                    ) );
                    
                    //If comments are open or we have at least one comment, load up the comment template
                        if ( comments_open() || '0' != get_comments_number() )
                            comments_template();
                    ?>
                <?php endwhile; // end of the loop. ?>    
                <div class="clear"></div>    
            </div>
        </div>
    </main>    
<?php do_action( 'hotel_resort_page_footer' ); ?>

<?php get_footer(); ?>