| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The Template for displaying product archives, including the main shop page which is a post type archive |
| 5 |
* |
| 6 |
* This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php. |
| 7 |
* |
| 8 |
* HOWEVER, on occasion WooCommerce will need to update template files and you |
| 9 |
* (the theme developer) will need to copy the new files to your theme to |
| 10 |
* maintain compatibility. We try to do this as little as possible, but it does |
| 11 |
* happen. When this occurs the version of the template file will be bumped and |
| 12 |
* the readme will list any important changes. |
| 13 |
* |
| 14 |
* @see https://docs.woocommerce.com/document/template-structure/ |
| 15 |
* @package WooCommerce\Templates |
| 16 |
* @version 3.4.0 |
| 17 |
*/ |
| 18 |
|
| 19 |
defined('ABSPATH') || exit; |
| 20 |
|
| 21 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- usk_ / BDTUSK_ / ultimate-store-kit- are this plugin's established public prefixes. Ultimate Store Kit Pro calls into these names, as does third-party integration code, so renaming them is a breaking change. Plugin Check only recognises prefixes derived verbatim from the slug and so reports them as unprefixed. |
| 22 |
|
| 23 |
use UltimateStoreKit\Builder\Builder_Integration; |
| 24 |
|
| 25 |
get_header(); |
| 26 |
|
| 27 |
do_action('ultimate-store-kit-builder/woocommerce/before-main-content'); |
| 28 |
|
| 29 |
if (class_exists('Elementor\Plugin')) { |
| 30 |
echo Elementor\Plugin::instance()->frontend->get_builder_content(Builder_Integration::instance()->current_template_id, false); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor renders and escapes the builder content itself. |
| 31 |
} |
| 32 |
|
| 33 |
do_action('ultimate-store-kit-builder/woocommerce/after-main-content'); |
| 34 |
|
| 35 |
get_footer(); |
| 36 |
|