<?php
/**
 * Template Name:Page with Right Sidebar
 */

get_header(); ?>

<main role="main" class="middle-align">
    <?php do_action( 'hotel_resort_pageright_header' ); ?>
        <div class="container">
            <div class="wrapper">
                <div class="row">
            		<div class="col-lg-8 col-md-8 py-3" id="main-content">
                        <?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>
                    <div id="sidebar" class="col-lg-4 col-md-4 mt-5">
            			<?php dynamic_sidebar('sidebar-2'); ?>
            		</div>
                </div>
                <div class="clearfix"></div>    
            </div>
        </div>
    <?php do_action( 'hotel_resort_pageright_header' ); ?>
</main>

<?php get_footer(); ?>