<?php
/**
 * The template for displaying all pages
 *
 * @package ClubFitness
 */

get_header(); ?>

<section id="content" class="content content-page">
	<div class="container-fluid px-0">
		<div class="row g-0">
			<div class="col-12 col-lg-7 order-1 order-lg-0">
				<div class="content-left p-4">
			<?php if ( have_posts() ) : ?>
				<?php while ( have_posts() ) : ?>
					<?php the_post(); ?>	
					<div class="page-title">
						<h1><?php the_title(); ?></h1>
					</div>
					<div class="page-message mb-4">
						<?php the_content(); ?>
						<?php
						wp_link_pages(
							array(
								'before' => '<div class="page-link">' . __( 'Pages:', 'clubfitness' ),
								'after'  => '</div>',
							)
						);
						?>
					</div>
					<div class="page-edit mb-4 clearfix">
						<?php edit_post_link( __( 'Edit', 'clubfitness' ), '<span class="edit-link">', '</span>' ); ?>
					</div>
					<?php if ( comments_open() || '0' !== get_comments_number() ) : ?>
						<?php comments_template( '', true ); ?>
					<?php endif; ?>
				<?php endwhile; ?>
			<?php endif; ?>
				</div>
			</div>
			<div class="col-12 col-lg-5 order-0 order-lg-1">
				<div class="content-right position-fixed">
					<?php get_template_part( 'inc/content-right' ); ?>
				</div>
			</div>
		</div>
	</div>
</section>

<?php get_footer(); ?>
