function etheme_top_cart() { global $woocommerce; ?> <div class="shopping-cart-widget a-right" <?php if (etheme_get_option('favicon_badge')) { echo 'data-fav-badge="enable"'; } ?> > <div class="cart-summ" data-items-count="<?php echo $woocommerce->cart->cart_contents_count; ?> "> <a href="<?php echo $woocommerce->cart->get_cart_url(); ?> "><?php _e('Cart', ETHEME_DOMAIN); ?> <span class="items"><?php echo $woocommerce->cart->cart_contents_count; ?> <?php echo $woocommerce->cart->cart_contents_count != 1 ? __('items', ETHEME_DOMAIN) : __('item', ETHEME_DOMAIN); ?> </span> <span class="for-label"><?php _e('for', ETHEME_DOMAIN); ?> </span> <span class="price-summ"><?php echo $woocommerce->cart->get_cart_subtotal(); ?> </span></a> </div> <div class="cart-popup-container"> <div class="cart-popup"> <?php etheme_cart_items(3); ?> </div> </div> </div> <?php }
* Contains the markup for the mini-cart, used by the cart widget * * @author WooThemes * @package WooCommerce/Templates * @version 2.1.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly global $woocommerce; ?> <?php do_action('woocommerce_before_mini_cart'); ?> <div class="cart_list product_list_widget <?php echo $args['list_class']; ?> "> <?php etheme_cart_items(3); ?> </div><!-- end product list --> <?php do_action('woocommerce_after_mini_cart');
function etheme_top_cart() { global $woocommerce; ?> <div class="shopping-cart-widget a-right" <?php if (etheme_get_option('favicon_badge')) { echo 'data-fav-badge="enable"'; } ?> > <div class="cart-summ" data-items-count="<?php echo $woocommerce->cart->cart_contents_count; ?> "> <a style="padding-left: 0px; padding-bottom: 0px;" href="<?php echo $woocommerce->cart->get_cart_url(); ?> "><img src="./wp-content/themes/legenda/framework/dT6ao7obc-copy-90x90.png" alt="" style="width:20px;height:20px;"></a> </div> <div class="cart-popup-container"> <div class="cart-popup"> <?php etheme_cart_items(3); ?> </div> </div> </div> <?php }