Version Description
- 08/02/2013 =
- Product category descriptions now displayed in list view
Download this release
Release Info
Developer | jameskoster |
Plugin | WooCommerce Grid / List toggle |
Version | 0.3.2 |
Comparing to | |
See all releases |
Code changes from version 0.3.1 to 0.3.2
- grid-list-toggle.php +10 -1
- readme.txt +5 -2
grid-list-toggle.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.
|
7 |
Author: jameskoster
|
8 |
Author URI: http://jameskoster.co.uk
|
9 |
Requires at least: 3.1
|
@@ -83,6 +83,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
83 |
add_action( 'woocommerce_after_shop_loop_item', array(&$this, 'gridlist_buttonwrap_close'), 11);
|
84 |
add_action( 'woocommerce_after_shop_loop_item', array(&$this, 'gridlist_hr'), 30);
|
85 |
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);
|
|
|
86 |
}
|
87 |
}
|
88 |
|
@@ -140,6 +141,14 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
140 |
</script>
|
141 |
<?php
|
142 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
}
|
144 |
$WC_List_Grid = new WC_List_Grid();
|
145 |
}
|
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.2
|
7 |
Author: jameskoster
|
8 |
Author URI: http://jameskoster.co.uk
|
9 |
Requires at least: 3.1
|
83 |
add_action( 'woocommerce_after_shop_loop_item', array(&$this, 'gridlist_buttonwrap_close'), 11);
|
84 |
add_action( 'woocommerce_after_shop_loop_item', array(&$this, 'gridlist_hr'), 30);
|
85 |
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);
|
86 |
+
add_action( 'woocommerce_after_subcategory', array(&$this, 'gridlist_cat_desc' ));
|
87 |
}
|
88 |
}
|
89 |
|
141 |
</script>
|
142 |
<?php
|
143 |
}
|
144 |
+
|
145 |
+
function gridlist_cat_desc( $category ) {
|
146 |
+
global $woocommerce;
|
147 |
+
echo '<div itemprop="description">';
|
148 |
+
echo $category->description;
|
149 |
+
echo '</div>';
|
150 |
+
|
151 |
+
}
|
152 |
}
|
153 |
$WC_List_Grid = new WC_List_Grid();
|
154 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jameskoster
|
|
3 |
Tags: woocommerce, grid, list, products, ecommerce
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.5
|
6 |
-
Stable tag: 0.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -51,7 +51,7 @@ That will remove the button styles but keep the layout styles which will allow y
|
|
51 |
To remove the layout styles as well use:
|
52 |
|
53 |
`
|
54 |
-
add_action('
|
55 |
function remove_gridlist_styles() {
|
56 |
wp_dequeue_style( 'grid-list-button' );
|
57 |
wp_dequeue_style( 'grid-list-layout' );
|
@@ -64,6 +64,9 @@ function remove_gridlist_styles() {
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
67 |
= 0.3.1 - 07/02/2013 =
|
68 |
* Removed unnecessary default options
|
69 |
|
3 |
Tags: woocommerce, grid, list, products, ecommerce
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.5
|
6 |
+
Stable tag: 0.3.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
51 |
To remove the layout styles as well use:
|
52 |
|
53 |
`
|
54 |
+
add_action('wp_enqueue_scripts', 'remove_gridlist_styles', 30);
|
55 |
function remove_gridlist_styles() {
|
56 |
wp_dequeue_style( 'grid-list-button' );
|
57 |
wp_dequeue_style( 'grid-list-layout' );
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 0.3.2 - 08/02/2013 =
|
68 |
+
* Product category descriptions now displayed in list view
|
69 |
+
|
70 |
= 0.3.1 - 07/02/2013 =
|
71 |
* Removed unnecessary default options
|
72 |
|