Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class="cart">
<a href="/store/shopping-cart/">
<img src="<?php echo esc_attr( get_bloginfo( 'stylesheet_directory' ) ); ?>/img/cart.png" />
<div id="cart-contents"><?php _e( 'Cart:', TEMPLATE_DOMAIN ) ?> <span><?php echo sprintf(__('%s item(s)', TEMPLATE_DOMAIN ), mp_items_count_in_cart()); ?></span></div>
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment