WooCommerce Grid / List toggle - Version 0.3.4

Version Description

  • 10/12/2013 =
  • Grid list toggle now appears on custom product taxonomies. Kudos dariodev.
Download this release

Release Info

Developer jameskoster
Plugin Icon 128x128 WooCommerce Grid / List toggle
Version 0.3.4
Comparing to
See all releases

Code changes from version 0.3.3 to 0.3.4

README.md CHANGED
File without changes
assets/css/button.css CHANGED
File without changes
assets/css/button.less CHANGED
File without changes
assets/js/jquery.cookie.js CHANGED
File without changes
assets/js/jquery.cookie.min.js CHANGED
File without changes
assets/js/jquery.gridlistview.js CHANGED
File without changes
assets/js/jquery.gridlistview.min.js CHANGED
File without changes
grid-list-toggle.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: WooCommerce Grid / List toggle
4
  Plugin URI: http://jameskoster.co.uk/tag/grid-list-toggle/
5
  Description: Adds a grid/list view toggle to product archives
6
- Version: 0.3.3
7
  Author: jameskoster
8
  Author URI: http://jameskoster.co.uk
9
- Requires at least: 3.1
10
- Tested up to: 3.6
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
  Text Domain: wc_list_grid_toggle
@@ -77,7 +77,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
77
 
78
  // Setup
79
  function setup_gridlist() {
80
- if ( is_shop() || is_product_category() || is_product_tag() ) {
81
  add_action( 'wp_enqueue_scripts', array( $this, 'setup_scripts_styles' ), 20);
82
  add_action( 'wp_enqueue_scripts', array( $this, 'setup_scripts_script' ), 20);
83
  add_action( 'woocommerce_before_shop_loop', array( $this, 'gridlist_toggle_button' ), 30);
@@ -91,13 +91,13 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
91
 
92
  // Scripts & styles
93
  function setup_scripts_styles() {
94
- if ( is_shop() || is_product_category() || is_product_tag() ) {
95
  wp_enqueue_style( 'grid-list-layout', plugins_url( '/assets/css/style.css', __FILE__ ) );
96
  wp_enqueue_style( 'grid-list-button', plugins_url( '/assets/css/button.css', __FILE__ ) );
97
  }
98
  }
99
  function setup_scripts_script() {
100
- if ( is_shop() || is_product_category() || is_product_tag() ) {
101
  wp_enqueue_script( 'cookie', plugins_url( '/assets/js/jquery.cookie.min.js', __FILE__ ), array( 'jquery' ) );
102
  wp_enqueue_script( 'grid-list-scripts', plugins_url( '/assets/js/jquery.gridlistview.min.js', __FILE__ ), array( 'jquery' ) );
103
  add_action( 'wp_footer', array(&$this, 'gridlist_set_default_view') );
@@ -154,4 +154,4 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
154
  }
155
  $WC_List_Grid = new WC_List_Grid();
156
  }
157
- }
3
  Plugin Name: WooCommerce Grid / List toggle
4
  Plugin URI: http://jameskoster.co.uk/tag/grid-list-toggle/
5
  Description: Adds a grid/list view toggle to product archives
6
+ Version: 0.3.4
7
  Author: jameskoster
8
  Author URI: http://jameskoster.co.uk
9
+ Requires at least: 3.3
10
+ Tested up to: 3.8
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
  Text Domain: wc_list_grid_toggle
77
 
78
  // Setup
79
  function setup_gridlist() {
80
+ if ( is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy() ) {
81
  add_action( 'wp_enqueue_scripts', array( $this, 'setup_scripts_styles' ), 20);
82
  add_action( 'wp_enqueue_scripts', array( $this, 'setup_scripts_script' ), 20);
83
  add_action( 'woocommerce_before_shop_loop', array( $this, 'gridlist_toggle_button' ), 30);
91
 
92
  // Scripts & styles
93
  function setup_scripts_styles() {
94
+ if ( is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy() ) {
95
  wp_enqueue_style( 'grid-list-layout', plugins_url( '/assets/css/style.css', __FILE__ ) );
96
  wp_enqueue_style( 'grid-list-button', plugins_url( '/assets/css/button.css', __FILE__ ) );
97
  }
98
  }
99
  function setup_scripts_script() {
100
+ if ( is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy() ) {
101
  wp_enqueue_script( 'cookie', plugins_url( '/assets/js/jquery.cookie.min.js', __FILE__ ), array( 'jquery' ) );
102
  wp_enqueue_script( 'grid-list-scripts', plugins_url( '/assets/js/jquery.gridlistview.min.js', __FILE__ ), array( 'jquery' ) );
103
  add_action( 'wp_footer', array(&$this, 'gridlist_set_default_view') );
154
  }
155
  $WC_List_Grid = new WC_List_Grid();
156
  }
157
+ }
languages/index.html CHANGED
File without changes
languages/wc_list_grid_toggle-de_DE.mo CHANGED
File without changes
languages/wc_list_grid_toggle-de_DE.po CHANGED
File without changes
languages/wc_list_grid_toggle.po CHANGED
File without changes
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WooCommerce Grid / List toggle ===
2
  Contributors: jameskoster
3
  Tags: woocommerce, grid, list, products, ecommerce
4
- Requires at least: 3.6
5
- Tested up to: 3.6
6
- Stable tag: 0.3.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -65,6 +65,9 @@ function remove_gridlist_styles() {
65
 
66
  == Changelog ==
67
 
 
 
 
68
  = 0.3.3 - 30/05/2013 =
69
  * Improved i18n
70
  * Added languages folder
1
  === WooCommerce Grid / List toggle ===
2
  Contributors: jameskoster
3
  Tags: woocommerce, grid, list, products, ecommerce
4
+ Requires at least: 3.3
5
+ Tested up to: 3.8
6
+ Stable tag: 0.3.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
65
 
66
  == Changelog ==
67
 
68
+ = 0.3.4 - 10/12/2013 =
69
+ * Grid list toggle now appears on custom product taxonomies. Kudos dariodev.
70
+
71
  = 0.3.3 - 30/05/2013 =
72
  * Improved i18n
73
  * Added languages folder
screenshot-1.jpg CHANGED
File without changes