| @@ -1,36 +1,36 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Quick view button | |
| 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 | -defined( 'ABSPATH' ) || die( 'Keep Silent' ); | |
| 23 | - | |
| 24 | -use RadiusTheme\SB\Helpers\Fns; | |
| 25 | -?> | |
| 26 | - | |
| 27 | -<a class="rtsb-quick-view-btn tipsy <?php echo esc_attr( implode( ' ', $classes ) ); ?>" rel="nofollow" | |
| 28 | - data-product_id="<?php echo esc_attr( $product_id ); ?>" | |
| 29 | - title="<?php echo esc_attr( $button_text ); ?>" | |
| 30 | - data-title="<?php echo esc_attr( $button_text ); ?>" href="<?php echo get_permalink( $product_id ); ?>" aria-label="<?php echo esc_attr__('Quick view', 'shopbuilder');?>" > | |
| 31 | - <span class="icon"> | |
| 32 | - <?php echo wp_kses( $left_text, Fns::get_kses_array() ); ?> | |
| 33 | - <?php Fns::print_html( $icon_html ); ?> | |
| 34 | - <?php echo wp_kses( $right_text, Fns::get_kses_array() ); ?> | |
| 35 | - </span> | |
| 36 | -</a> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Quick view button | |
| 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 | +defined( 'ABSPATH' ) || die( 'Keep Silent' ); | |
| 23 | + | |
| 24 | +use RadiusTheme\SB\Helpers\Fns; | |
| 25 | +?> | |
| 26 | + | |
| 27 | +<a class="rtsb-quick-view-btn tipsy <?php echo esc_attr( implode( ' ', $classes ) ); ?>" rel="nofollow" | |
| 28 | + data-product_id="<?php echo esc_attr( $product_id ); ?>" | |
| 29 | + title="<?php echo esc_attr( $button_text ); ?>" | |
| 30 | + data-title="<?php echo esc_attr( $button_text ); ?>" href="<?php echo get_permalink( $product_id ); ?>"> | |
| 31 | + <span class="icon"> | |
| 32 | + <?php echo wp_kses( $left_text, Fns::get_kses_array() ); ?> | |
| 33 | + <?php Fns::print_html( $icon_html ); ?> | |
| 34 | + <?php echo wp_kses( $right_text, Fns::get_kses_array() ); ?> | |
| 35 | + </span> | |
| 36 | +</a> | |