Version Description
- 14/01/2014 =
- Sanitized some outputs (kudos colegeissinger).
Download this release
Release Info
| Developer | jameskoster |
| Plugin | |
| Version | 0.2.2 |
| Comparing to | |
| See all releases | |
Code changes from version 0.2.1 to 0.2.2
- cart-tab.php +6 -6
- readme.txt +4 -1
cart-tab.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/*
|
| 3 |
Plugin Name: WooCommerce Cart Tab
|
| 4 |
Plugin URI: http://jameskoster.co.uk/tag/cart-tab/
|
| 5 |
-
Version: 0.2.
|
| 6 |
Description: Displays a sitewide link to the cart which reveals the cart contents on hover.
|
| 7 |
Author: jameskoster
|
| 8 |
Tested up to: 3.6.1
|
|
@@ -138,9 +138,9 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
| 138 |
|
| 139 |
if ( ! is_cart() && ! is_checkout() ) {
|
| 140 |
if ( $widget == 'yes' ) {
|
| 141 |
-
echo '<div class="' . $position . ' cart-tab ' . $skin . '">';
|
| 142 |
} else {
|
| 143 |
-
echo '<div class="' . $position . ' cart-tab no-animation ' . $skin . '">';
|
| 144 |
}
|
| 145 |
wcct_cart_button();
|
| 146 |
// Display the widget if specified
|
|
@@ -170,10 +170,10 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
| 170 |
$visibility = 'visible';
|
| 171 |
}
|
| 172 |
?>
|
| 173 |
-
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart', 'woocommerce-cart-tab' ); ?>" class="cart-parent <?php echo $visibility; ?>">
|
| 174 |
<?php
|
| 175 |
-
echo $woocommerce->cart->get_cart_total();
|
| 176 |
-
echo '<span class="contents">' . sprintf( _n( '%d item', '%d items', $woocommerce->cart->get_cart_contents_count(), 'woocommerce-cart-tab' ), $woocommerce->cart->get_cart_contents_count() ) . '</span>';
|
| 177 |
?>
|
| 178 |
</a>
|
| 179 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: WooCommerce Cart Tab
|
| 4 |
Plugin URI: http://jameskoster.co.uk/tag/cart-tab/
|
| 5 |
+
Version: 0.2.2
|
| 6 |
Description: Displays a sitewide link to the cart which reveals the cart contents on hover.
|
| 7 |
Author: jameskoster
|
| 8 |
Tested up to: 3.6.1
|
| 138 |
|
| 139 |
if ( ! is_cart() && ! is_checkout() ) {
|
| 140 |
if ( $widget == 'yes' ) {
|
| 141 |
+
echo '<div class="' . esc_attr( $position ) . ' cart-tab ' . esc_attr( $skin ) . '">';
|
| 142 |
} else {
|
| 143 |
+
echo '<div class="' . esc_attr( $position ) . ' cart-tab no-animation ' . esc_attr( $skin ) . '">';
|
| 144 |
}
|
| 145 |
wcct_cart_button();
|
| 146 |
// Display the widget if specified
|
| 170 |
$visibility = 'visible';
|
| 171 |
}
|
| 172 |
?>
|
| 173 |
+
<a href="<?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?>" title="<?php _e( 'View your shopping cart', 'woocommerce-cart-tab' ); ?>" class="cart-parent <?php echo esc_attr( $visibility ); ?>">
|
| 174 |
<?php
|
| 175 |
+
echo wp_kses_post( $woocommerce->cart->get_cart_total() );
|
| 176 |
+
echo '<span class="contents">' . sprintf( _n( '%d item', '%d items', intval( $woocommerce->cart->get_cart_contents_count() ), 'woocommerce-cart-tab' ), intval( $woocommerce->cart->get_cart_contents_count() ) ) . '</span>';
|
| 177 |
?>
|
| 178 |
</a>
|
| 179 |
<?php
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: jameskoster
|
|
| 3 |
Tags: woocommerce, ecommerce, cart
|
| 4 |
Requires at least: 3.5
|
| 5 |
Tested up to: 3.6.1
|
| 6 |
-
Stable tag: 0.2.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -46,6 +46,9 @@ Thanks! Please fork the repo on <a href="https://github.com/jameskoster/woocomme
|
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
= 0.2.1 - 16/09/2013 =
|
| 50 |
* Better way of hiding the cart. Compatible with WP Super Cache as long as "late init" is enabled. Kudos bigbrowncow.
|
| 51 |
|
| 3 |
Tags: woocommerce, ecommerce, cart
|
| 4 |
Requires at least: 3.5
|
| 5 |
Tested up to: 3.6.1
|
| 6 |
+
Stable tag: 0.2.2
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
+
= 0.2.2 - 14/01/2014 =
|
| 50 |
+
* Sanitized some outputs (kudos colegeissinger).
|
| 51 |
+
|
| 52 |
= 0.2.1 - 16/09/2013 =
|
| 53 |
* Better way of hiding the cart. Compatible with WP Super Cache as long as "late init" is enabled. Kudos bigbrowncow.
|
| 54 |
|
