<?php //Template Name: Page Left Sidebar

/**

 * The template for displaying all pages.

 *

 * This is the template that displays all pages by default.

 * Please note that this is the WordPress construct of pages

 * and that other 'pages' on your WordPress site may use a

 * different template.

 *

 * @link https://codex.wordpress.org/Template_Hierarchy

 *

 * @package materialise

 */



get_header(); 

get_template_part('breadcrumbs'); ?>

<!-- Blog Start -->

	<div class="container-fluid bs-margin bs-blogs">

		<div class="container blog_gallery">

			<div class="row bs-blog-page">

			<?php get_sidebar(); ?>

				<div class="col-md-8 col-sm-12 col-xs-12">

				<?php if ( have_posts() ) : 

				while ( have_posts() ) : the_post(); ?>

					<div class="row bs-blog">

						<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

							<div class="blog-detail">

								<?php if(has_post_thumbnail()): ?>

									<div class="img-thumbnail">

										<?php $data= array('class' =>'img-responsive post_image'); 

										the_post_thumbnail('materialise_page_thumb', $data); ?>

									</div>

								<?php endif; ?>

								<h2 class="entry-title"><?php the_title(); ?></h2>

								<?php the_content();

								materialise_link_pages(); ?>

							</div>

							<?php if ( comments_open() || get_comments_number() ) :

									comments_template();

								endif; ?>

						</div>

					</div>

					<?php endwhile;

					endif; ?>

				</div>

			</div>

		</div>

	</div>

	<!-- Blog End -->

<?php

get_footer();

?>