Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

0.3.2

  • Loading branch information...
commit dce9b00bec22d4dbabfaae93d70d2f6b44d575ee 1 parent 21e1d3a
@jameskoster authored
Showing with 17 additions and 6 deletions.
  1. +10 −5 grid-list-toggle.php
  2. +7 −1 readme.txt
View
15 grid-list-toggle.php
@@ -3,7 +3,7 @@
Plugin Name: WooCommerce Grid / List toggle
Plugin URI: http://jameskoster.co.uk/tag/grid-list-toggle/
Description: Adds a grid/list view toggle to product archives
-Version: 0.3
+Version: 0.3.2
Author: jameskoster
Author URI: http://jameskoster.co.uk
Requires at least: 3.1
@@ -55,10 +55,6 @@ public function __construct() {
// Default options
add_option( 'wc_glt_default', 'grid' );
- add_option( 'wc_apm_google', 'no' );
- add_option( 'wc_apm_mastercard', 'no' );
- add_option( 'wc_apm_paypal', 'no' );
- add_option( 'wc_apm_visa', 'no' );
// Admin
add_action( 'woocommerce_settings_image_options_after', array( &$this, 'admin_settings' ), 20);
@@ -87,6 +83,7 @@ function setup_gridlist() {
add_action( 'woocommerce_after_shop_loop_item', array(&$this, 'gridlist_buttonwrap_close'), 11);
add_action( 'woocommerce_after_shop_loop_item', array(&$this, 'gridlist_hr'), 30);
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);
+ add_action( 'woocommerce_after_subcategory', array(&$this, 'gridlist_cat_desc' ));
}
}
@@ -144,6 +141,14 @@ function gridlist_set_default_view() {
</script>
<?php
}
+
+ function gridlist_cat_desc( $category ) {
+ global $woocommerce;
+ echo '<div itemprop="description">';
+ echo $category->description;
+ echo '</div>';
+
+ }
}
$WC_List_Grid = new WC_List_Grid();
}
View
8 readme.txt
@@ -3,7 +3,7 @@ Contributors: jameskoster
Tags: woocommerce, grid, list, products, ecommerce
Requires at least: 3.3
Tested up to: 3.5
-Stable tag: 0.3
+Stable tag: 0.3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -64,6 +64,12 @@ function remove_gridlist_styles() {
== Changelog ==
+= 0.3.2 - 08/02/2013 =
+* Product category descriptions now displayed in list view
+
+= 0.3.1 - 07/02/2013 =
+* Removed unnecessary default options
+
= 0.3 - 30/01/2013 =
* Added option to choose default view
Please sign in to comment.
Something went wrong with that request. Please try again.