| 1 |
<?php |
| 2 |
|
| 3 |
namespace StoreEngine\Shortcode; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
class ProductsSidebar { |
| 10 |
|
| 11 |
public function __construct() { |
| 12 |
add_shortcode( 'storeengine_products_sidebar', [ $this, 'render' ] ); |
| 13 |
} |
| 14 |
|
| 15 |
public function render() { |
| 16 |
ob_start(); |
| 17 |
do_action( 'storeengine/templates/archive_product_sidebar' ); |
| 18 |
return ob_get_clean(); |
| 19 |
} |
| 20 |
|
| 21 |
} |
| 22 |
|