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