PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.4.0
ShopBuilder – WooCommerce Builder For Elementor v3.4.0
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / wishlist / button.php

button.php in ShopBuilder – WooCommerce Builder For Elementor 3.4.0, at templates/wishlist/button.php

52 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Add to wishlist template
4 *
5 * @author RadiusTheme
6 * @package RTSB_ABSPATH\Templates\Wishlist\Button
7 * @version 1.0.0
8 */
9
10
11 /**
12 * Template variables:
13 *
14 * @var $exists bool
15 * @var $product_id int
16 * @var $parent_product_id int
17 * @var $button_text string
18 * @var $icon_html string
19 * @var $show_button_text bool
20 * @var $classes string
21 * @var $left_text string
22 * @var $right_text string
23 */
24
25 use RadiusTheme\SB\Helpers\Fns;
26
27 defined( 'ABSPATH' ) || die( 'Keep Silent' );
28 ?>
29
30 <a class="rtsb-wishlist-btn tipsy <?php echo esc_attr( implode( ' ', $classes ) ); ?>" rel="nofollow"
31 data-product_id="<?php echo esc_attr( $product_id ); ?>"
32 title="<?php echo esc_attr( $button_text ); ?>"
33 data-title="<?php echo esc_attr( $button_text ); ?>"
34 data-original-product_id="<?php echo esc_attr( $parent_product_id ); ?>"
35 href="#" aria-label="<?php echo esc_attr__( 'Wishlist', 'shopbuilder' ); ?>">
36
37 <span class="icon">
38 <?php echo wp_kses( $left_text, Fns::get_kses_array() ); ?>
39 <?php Fns::print_html( $icon_html, true ); ?>
40 <?php echo wp_kses( $right_text, Fns::get_kses_array() ); ?>
41 </span>
42 <?php
43 if ( $show_button_text ) {
44 ?>
45 <span class="button-text">
46 <?php echo esc_attr( $button_text ); ?>
47 </span>
48 <?php
49 }
50 ?>
51 </a>
52