<?php
/**
* The template for rendering the product archive page content, customized for facetwp compatibility
* save to your child theme - childthemename/bigcommerce/components/catalog/product-archive.php
*
* @var string[] $posts
* @var string $no_results
* @var string $title
* @var string $description
* @var string $refinery
* @var string $pagination
* @var string $columns
* @version 1.0.0
*/
?>
<div class="bc-product-archive">
<header class="bc-product-archive__header">
<h2 class="bc-product-archive__title"><?php echo esc_html( $title ); ?></h2>
<div><?php echo wp_kses_post( $description ); ?></div>
</header>
<?php echo $refinery; ?>
<section class="facetwp-template bc-product-grid bc-product-grid--archive bc-product-grid--<?php echo esc_attr( $columns ); ?>col">
<?php
if ( ! empty( $posts ) ) {
foreach ( $posts as $post ) {
echo $post;
}
} else {
echo $no_results;
}
?>
<?php echo $pagination; ?>
</section>
</div>