<?php
/**
 * The template for displaying Archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package sparkling
 */

get_header(); ?>

	<section id="primary" class="content-area container my-product-main">
		<main id="main" class="site-main" role="main">

		<?php if ( have_posts() ) : ?>
			
				<div class="container">
		          <div class="row">
		            <div class="breadcrumbs">
		              <?php if(function_exists('bcn_display'))
		              {
		                bcn_display();
		              }?>
		            </div>
		          </div>
		        </div>

			<?php /* Start the Loop */ ?>
			<?php //while ( have_posts() ) : the_post(); ?>

				<?php
					/* Include the Post-Format-specific template for the content.
					 * If you want to override this in a child theme, then include a file
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
					 */
					get_template_part( 'content', 'product' );
				?>

			<?php //endwhile; ?>

			<?php //sparkling_paging_nav(); ?>

		<?php else : ?>

			<div class="container">
		          <div class="row">
		            <div class="breadcrumbs">
		              <?php if(function_exists('bcn_display'))
		              {
		                bcn_display();
		              }?>
		            </div>
		          </div>
		        </div>

			<?php get_template_part( 'content', 'product' ); ?>

		<?php endif; ?>

		</main><!-- #main -->
	</section><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>