<?php
/**
 * The format used to show all individual posts
 *
 * @package Pixel Transport
 */

get_header();
?>

<div id="content" class="site-content">
	<div class="container">
		<div class="pixel-transport-breadcrumb">
            <?php pixel_transport_breadcrumb_function(); ?>
        </div>
		<section class="wrap-detail-page">
			<div class="row">
				<div class="col-lg-8">
					<div id="primary" class="content-area">
						<main id="main" class="site-main">
							<?php
								if( has_post_thumbnail() ){ ?>
							    <figure class="feature-image single-feature-image">
	    						    <?php pixel_transport_image_size( 'pixel-transport-1370-550' ); ?>
	    						</figure>
							<?php } ?>
							<?php
								while ( have_posts() ) : the_post();

									get_template_part( 'template-parts/content', 'single' );
									
									if ( is_single() ){
										?>
											<div class="author-info">
												<?php
												    get_template_part( 'template-parts/content', 'author' );
												?>
											</div>
										<?php
									}

									the_post_navigation();

									// If comments are open or we have at least one comment, load up the comment template.
									if ( comments_open() || get_comments_number() ) :
										comments_template();
									endif;

								endwhile; // End of the loop.
							?>
						</main>
					</div>
				</div>
				<div class="col-lg-4">
					<div id="secondary" class="sidebar left-sidebar">
						<?php get_sidebar('sidebar-1'); ?>
					</div>
				</div>
			</div>
		</section>
	</div>
</div>
<?php
get_footer();