<?php

if (! defined('ABSPATH')) {
    exit;
} require PUFFERGO_PLUGIN_DIR . '/templates/data/class-puffergo-archive-data.php';
$data = PufferGo_Archive_Data::from_current_query();
$variant_id = PufferGo_Template_Loader::get_active_content_template('product-archive');
$template_file = PufferGo_Template_Loader::get_content_template_file('product-archive', $variant_id);
PufferGo_Template_Loader::render_layout_header();

if ($template_file) {
    require $template_file;
} else {
    echo '<main class="puffergo-fullpage-layout puffergo-product-archive"><p>' . esc_html__('Template not found.', 'puffergo') . '</p></main>';
} PufferGo_Template_Loader::render_layout_footer();
