<?php
/*
 * Template Name: One Page Template
 */
get_header(); ?>

<div id="content-wrap" class="agrios-container">
    <div id="site-content" class="site-content clearfix">
    	<div id="inner-content" class="inner-content-wrap">
		<?php while ( have_posts() ) : the_post(); ?>
			<article <?php post_class( 'page-content' ); ?>>
				<?php
				the_content();
				
				wp_link_pages( array(
					'before'      => '<p class="page-links">'. esc_html__( 'Pages:', 'agrios' ),
					'after'       => '</p>',
					'link_before' => '<span>',
					'link_after'  => '</span>',
				) );
				?>
			</article>

			<?php
			// If comments are open or we have at least one comment, load up the comment template.
			if ( comments_open() || get_comments_number() ) {
				comments_template();
			}
			?>
		<?php endwhile; ?>
		</div>
    </div><!-- /#site-content -->

    <?php get_sidebar(); ?>
</div><!-- /#content-wrap -->

<?php get_footer(); ?>
