geno/wp-content/plugins/ti-woocommerce-wishlist/templates/ti-addtowishlist.php

23 lines
826 B
PHP
Raw Normal View History

2024-02-01 17:24:18 +05:30
<?php
/**
* The Template for displaying add to wishlist product button.
*
* This template can be overridden by copying it to yourtheme/woocommerce/ti-addtowishlist.php.
*
* @version 2.4.3
* @package TInvWishlist\Template
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
wp_enqueue_script( 'tinvwl' );
?>
<div class="tinv-wraper woocommerce tinv-wishlist <?php echo esc_attr( $class_postion ) ?>"
data-tinvwl_product_id="<?php echo $product->get_id(); ?>">
<?php do_action( 'tinvwl_wishlist_addtowishlist_button', $product, $loop ); ?>
<?php do_action( 'tinvwl_wishlist_addtowishlist_dialogbox', $product, $loop ); ?>
<div
class="tinvwl-tooltip"><?php echo wp_kses_post( tinv_get_option( 'add_to_wishlist' . ( $loop ? '_catalog' : '' ), 'text' ) ); ?></div>
</div>