# shopbuilder/3.2.6/templates/wishlist/button.php

ShopBuilder – WooCommerce Builder For Elementor, version 3.2.6. 52 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/3.2.6/code/templates/wishlist/button.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/3.2.6/raw/templates/wishlist/button.php
- Modified: 2026-04-12T06:42:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shopbuilder/3.2.6/code/templates/wishlist/button.php#L10-L20`.

```php
<?php
/**
 * Add to wishlist template
 *
 * @author  RadiusTheme
 * @package RTSB_ABSPATH\Templates\Wishlist\Button
 * @version 1.0.0
 */


/**
 * Template variables:
 *
 * @var $exists                    bool
 * @var $product_id                int
 * @var $parent_product_id         int
 * @var $button_text               string
 * @var $icon_html                 string
 * @var $show_button_text          bool
 * @var $classes                   string
 * @var $left_text                 string
 * @var $right_text                string
 */

use RadiusTheme\SB\Helpers\Fns;

defined( 'ABSPATH' ) || die( 'Keep Silent' );
?>

<a class="rtsb-wishlist-btn tipsy <?php echo esc_attr( implode( ' ', $classes ) ); ?>" rel="nofollow"
   data-product_id="<?php echo esc_attr( $product_id ); ?>"
   title="<?php echo esc_attr( $button_text ); ?>"
   data-title="<?php echo esc_attr( $button_text ); ?>"
   data-original-product_id="<?php echo esc_attr( $parent_product_id ); ?>"
   href="#" aria-label="<?php echo esc_attr__( 'Wishlist', 'shopbuilder' ); ?>">

	<span class="icon">
		<?php echo wp_kses( $left_text, Fns::get_kses_array() ); ?>
		<?php Fns::print_html( $icon_html, true ); ?>
		<?php echo wp_kses( $right_text, Fns::get_kses_array() ); ?>
	</span>
	<?php
	if ( $show_button_text ) {
		?>
		<span class="button-text">
			<?php echo esc_attr( $button_text ); ?>
		</span>
		<?php
	}
	?>
</a>

```
