| @@ -6,9 +6,8 @@ | ||
| 6 | 6 | * @package ShopBuilder QuickView |
| 7 | 7 | * @version 1.0.0 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | - | |
| 11 | 10 | /** |
| 12 | 11 | * Template variables: |
| 13 | 12 | * |
| 14 | 13 | * @var $product_id int Current product id |
| @@ -18,22 +17,15 @@ | ||
| 18 | 17 | * @var $left_text string Html allowed |
| 19 | 18 | * @var $right_text string Html allowed |
| 20 | 19 | */ |
| 21 | 20 | |
| 22 | -/** | |
| 23 | - * Quick view content. | |
| 24 | - * | |
| 25 | - * @author YITH | |
| 26 | - * @package YITH WooCommerce Quick View | |
| 27 | - * @version 1.0.0 | |
| 28 | - */ | |
| 21 | +defined( 'ABSPATH' ) || exit; // Exit if accessed directly. | |
| 29 | 22 | |
| 30 | -defined( 'ABSPATH' ) || exit; // Exit if accessed directly. | |
| 23 | +use RadiusTheme\SB\Helpers\Fns; | |
| 31 | 24 | |
| 32 | 25 | while ( have_posts() ) : |
| 33 | - the_post(); | |
| 34 | - ?> | |
| 35 | - <div class="quick-view-product-wrapper"> | |
| 26 | + the_post(); ?> | |
| 27 | + <div class="quick-view-product-wrapper <?php echo esc_attr( implode( ' ', apply_filters( 'rtsb/wcqv/modal/wrapper/classes', [] ) ) ); ?>"> | |
| 36 | 28 | <div id="product-<?php the_ID(); ?>" <?php post_class( 'product' ); ?>> |
| 37 | 29 | <?php ob_start(); ?> |
| 38 | 30 | <?php do_action( 'rtsb/wcqv/product/image' ); ?> |
| 39 | 31 | <div class="summary entry-summary"> |
| @@ -41,9 +33,9 @@ | ||
| 41 | 33 | <?php do_action( 'rtsb/wcqv/product/summary' ); ?> |
| 42 | 34 | </div> |
| 43 | 35 | </div> |
| 44 | 36 | <?php $content = ob_get_clean(); ?> |
| 45 | - <?php echo apply_filters( 'rtsb/wcqv/product/content', $content ); ?> | |
| 37 | + <?php echo apply_filters( 'rtsb/wcqv/product/content', $content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 46 | 38 | </div> |
| 47 | 39 | </div> |
| 48 | 40 | <?php |
| 49 | 41 | endwhile; // end of the loop. |