Skip to content

Commit

Permalink
0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Jul 6, 2016
1 parent 74b5e5d commit f9d8c05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cart-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: WooCommerce Cart Tab
* Plugin URI: http://jameskoster.co.uk/tag/cart-tab/
* Version: 0.4.0
* Version: 0.5.0
* Description: Displays a sitewide link to the cart which reveals the cart contents on hover.
* Author: jameskoster
* Tested up to: 4.5.2
Expand Down Expand Up @@ -172,7 +172,7 @@ function woocommerce_cart_tab() {
}

if ( ! is_cart() && ! is_checkout() ) {
if ( 'yes' == $widget && !wp_is_mobile() ) {
if ( 'yes' == $widget && ! wp_is_mobile() ) {
echo '<div class="' . esc_attr( $position ) . ' cart-tab ' . esc_attr( $skin ) . ' ' . esc_attr( $visibility ) . '">';
} else {
echo '<div class="' . esc_attr( $position ) . ' cart-tab no-animation ' . esc_attr( $skin ) . ' ' . esc_attr( $visibility ) . '">';
Expand All @@ -181,7 +181,7 @@ function woocommerce_cart_tab() {
wcct_cart_button();

// Display the widget if specified.
if ( 'yes' == $widget && !wp_is_mobile() ) {
if ( 'yes' == $widget && ! wp_is_mobile() ) {
// Check for WooCommerce 2.0 and display the cart widget.
if ( version_compare( WOOCOMMERCE_VERSION, '2.0.0' ) >= 0 ) {
the_widget( 'WC_Widget_Cart', 'title=' );
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: jameskoster
Tags: woocommerce, ecommerce, cart
Requires at least: 4.4
Tested up to: 4.5.2
Stable tag: 0.4.0
Tested up to: 4.5.3
Stable tag: 0.5.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -46,6 +46,9 @@ Thanks! Please fork the repo on <a href="https://github.com/jameskoster/woocomme

== Changelog ==

= 0.5.0 - 06/07/2016 =
* New - Cart tab no longer displayed on handheld devices.

= 0.4.0 - 23/05/2016 =
* New - Cart tab widget now has a max-height and will scroll if the contents are larger than the container.
* New - Option to display cart total or subtotal. Props @craigtracey
Expand Down

0 comments on commit f9d8c05

Please sign in to comment.