<?php
/**
 * 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.
 *
 * @package transportex
 */
get_header(); 
get_template_part('index','banner'); ?>
<main id="content">
    <div class="container">
		<div class="row">
		<!-- Blog Area -->
			<?php if( class_exists('woocommerce') && (is_account_page() || is_cart() || is_checkout())) { ?>
			<div class="col-md-12" >
			<?php if (have_posts()) {  while (have_posts()) : the_post(); ?>
			<?php the_content(); endwhile; } } else {?>
			<div class="col-md-9">
				<div class="transportex-card-box">
				<?php while (have_posts()) : the_post();
              		if(has_post_thumbnail()) {
					if ( is_single() ) { ?>
						<figure class="post-thumbnail">
						<?php the_post_thumbnail('full',['class' => 'attachment-full size-full img-fluid']); ?>         
						</figure>
					<?php } else { ?>
						<figure class="post-thumbnail">
						<a href="<?php the_permalink(); ?>" >
							<?php the_post_thumbnail('full',['class' => 'attachment-full size-full img-fluid']); ?>
						</a>        
						</figure>
					<?php }
					}   
					the_content();
					
					endwhile;

					if (comments_open() || get_comments_number()) :
					comments_template();
					endif;
					transportex_edit_link();
				?>	
				</div>
			</div>
			<!--Sidebar Area-->
			<aside class="col-md-3">
				<?php get_sidebar(); ?>
			</aside>
			<?php } ?>
			<!--Sidebar Area-->
			</div>
		</div>
	</div>
</main>
<?php
get_footer();