| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/add-to-cart.php.tar |
home/xbodynamge/lebauwcentre/wp-content/themes/customify/woocommerce/loop/add-to-cart.php 0000644 00000001627 15114515703 0026026 0 ustar 00 <?php
/**
* Loop Add to Cart
*
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 3.3.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $product;
$text = $product->add_to_cart_text();
if ( ! isset( $args['class'] ) ) {
$args['class'] = 'button';
}
if ( strpos( $args['class'], 'add_to_cart_button' ) === false ) {
$args['class'] .= ' add_to_cart_button';
}
echo apply_filters(
'woocommerce_loop_add_to_cart_link', // WPCS: XSS ok.
sprintf(
'<a href="%1$s" data-quantity="%2$s" class="%3$s" %4$s><span class="button-label">%5$s</span></a>',
esc_url( $product->add_to_cart_url() ),
esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ),
esc_attr( $args['class'] ),
isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '',
$text
),
$product,
$args
);
home/xbodynamge/www/wp-content/themes/hestia/inc/compatibility/woocommerce/add-to-cart.php 0000644 00000001605 15114635550 0026075 0 ustar 00 <?php
/**
* Custom add to cart for the homepage shop section.
*
* @package Hestia
* @since Hestia 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $product;
if ( function_exists( 'method_exists' ) && method_exists( $product, 'get_id' ) ) {
$prod_id = $product->get_id();
} else {
$prod_id = $product->id;
}
echo apply_filters(
'woocommerce_loop_add_to_cart_link',
sprintf(
'<a rel="nofollow" href="%1$s" data-quantity="%2$s" data-product_id="%3$s" data-product_sku="%4$s" class="%5$s btn btn-just-icon btn-simple btn-default" title="%6$s"><i rel="tooltip" data-original-title="%6$s" class="fa fa-cart-plus"></i></a>',
esc_url( $product->add_to_cart_url() ),
esc_attr( isset( $quantity ) ? $quantity : 1 ),
esc_attr( $prod_id ),
esc_attr( $product->get_sku() ),
esc_attr( isset( $class ) ? $class : 'button' ),
esc_attr( $product->add_to_cart_text() )
),
$product
);