| 1 |
<?php |
| 2 |
|
| 3 |
namespace StoreEngine\Shortcode; |
| 4 |
|
| 5 |
use StoreEngine\Utils\Helper; |
| 6 |
use StoreEngine\Utils\Template; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
|
| 13 |
class ProductsArchive { |
| 14 |
|
| 15 |
public function __construct() { |
| 16 |
add_shortcode( 'storeengine_products_archive', [ $this, 'render' ] ); |
| 17 |
} |
| 18 |
|
| 19 |
public function render() { |
| 20 |
ob_start(); |
| 21 |
Template::get_template( 'shortcode/products-archive.php' ); |
| 22 |
|
| 23 |
return ob_get_clean(); |
| 24 |
} |
| 25 |
|
| 26 |
} |
| 27 |
|