<?php 
/*
 *The main page template file
 */
get_header(); ?>
<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<?php while ( have_posts() ) : the_post(); ?>
	<!--breadcrumb start-->
	<div class="royals-container container">
		<div class="site-breadcumb">
			<?php the_title( '<h1>', '</h1>' ); ?>
			<ol class="breadcrumb breadcrumb-menubar">
				<?php if (function_exists('rider_custom_breadcrumbs')) rider_custom_breadcrumbs(); ?>                    
			</ol>
		</div>  
	</div>
	<!--breadcrumb end-->
	<!--blog start-->
	<div class="royals-container container">
		<div class="row">
			<div class="col-md-8 col-sm-7 blog-box">
				<div class="blog-wrap">
					<div class="blog-content">
					<?php if ( has_post_thumbnail() ) : 
					the_post_thumbnail( 'rider-blog-image', array( 'alt' => get_the_title(), 'class' => 'img-responsive') ); ?>
					<?php endif;
						the_content();
						wp_link_pages( array(
							'before'      => '<div class="col-md-6 col-xs-6">' . __( 'Pages', 'rider' ) . ':',
							'after'       => '</div>',
							'link_before' => '<span>',
							'link_after'  => '</span>',
							) ); ?>
					</div>
					<?php edit_post_link( __( 'Edit', 'rider' ), '' ); ?>
					<div class="comments-area">  
						<?php comments_template( '', true ); ?>                             
					</div>
				</div>   
			</div>
			<?php endwhile; ?>
			<div class="col-md-4 col-sm-5">
				<?php get_sidebar(); ?>
			</div>
		</div>
	</div>
	<!--blog end-->
</section>
<?php get_footer(); ?>
