Version Description
- 12/12/16 =
- Outputs are now filterable. Kudos joshuadavidnelson.
Download this release
Release Info
| Developer | jameskoster |
| Plugin | |
| Version | 1.1.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.1.0
- README.md +0 -0
- assets/css/button.css +0 -0
- assets/css/button.less +0 -0
- assets/js/jquery.cookie.js +0 -0
- assets/js/jquery.cookie.min.js +0 -0
- assets/js/jquery.gridlistview.js +0 -0
- assets/js/jquery.gridlistview.min.js +0 -0
- languages/woocommerce-grid-list-toggle-de_DE.mo +0 -0
- languages/woocommerce-grid-list-toggle-de_DE.po +0 -0
- languages/woocommerce-grid-list-toggle.pot +7 -6
- readme.txt +5 -2
- woocommerce-grid-list-toggle.php +14 -18
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
|
languages/woocommerce-grid-list-toggle-de_DE.mo
CHANGED
|
File without changes
|
languages/woocommerce-grid-list-toggle-de_DE.po
CHANGED
|
File without changes
|
languages/woocommerce-grid-list-toggle.pot
CHANGED
|
@@ -1,14 +1,15 @@
|
|
| 1 |
-
# Copyright (C)
|
| 2 |
# This file is distributed under the same license as the WooCommerce Grid / List toggle package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Grid / List toggle 1.
|
| 6 |
-
"Report-Msgid-Bugs-To:
|
| 7 |
-
"
|
|
|
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
-
"PO-Revision-Date:
|
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 14 |
|
|
@@ -28,7 +29,7 @@ msgstr ""
|
|
| 28 |
msgid "List"
|
| 29 |
msgstr ""
|
| 30 |
|
| 31 |
-
#: woocommerce-grid-list-toggle.php:
|
| 32 |
msgid "Grid view"
|
| 33 |
msgstr ""
|
| 34 |
|
| 1 |
+
# Copyright (C) 2016 WooCommerce Grid / List toggle
|
| 2 |
# This file is distributed under the same license as the WooCommerce Grid / List toggle package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce Grid / List toggle 1.1.0\n"
|
| 6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-grid-"
|
| 7 |
+
"list-toggle\n"
|
| 8 |
+
"POT-Creation-Date: 2016-12-12 10:08:40+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
+
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
|
| 13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 15 |
|
| 29 |
msgid "List"
|
| 30 |
msgstr ""
|
| 31 |
|
| 32 |
+
#: woocommerce-grid-list-toggle.php:109
|
| 33 |
msgid "Grid view"
|
| 34 |
msgstr ""
|
| 35 |
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: jameskoster
|
| 3 |
Tags: woocommerce, grid, list, products, ecommerce
|
| 4 |
Requires at least: 4.0
|
| 5 |
-
Tested up to: 4.
|
| 6 |
-
Stable tag: 1.
|
| 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 |
= 1.0.0 - 19/06/2015 =
|
| 69 |
* Revamped button styles.
|
| 70 |
* Updated textdomain to 'woocommerce-grid-list-toggle'.
|
| 2 |
Contributors: jameskoster
|
| 3 |
Tags: woocommerce, grid, list, products, ecommerce
|
| 4 |
Requires at least: 4.0
|
| 5 |
+
Tested up to: 4.7
|
| 6 |
+
Stable tag: 1.1.0
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 65 |
|
| 66 |
== Changelog ==
|
| 67 |
|
| 68 |
+
= 1.1.0 - 12/12/16 =
|
| 69 |
+
* Outputs are now filterable. Kudos joshuadavidnelson.
|
| 70 |
+
|
| 71 |
= 1.0.0 - 19/06/2015 =
|
| 72 |
* Revamped button styles.
|
| 73 |
* Updated textdomain to 'woocommerce-grid-list-toggle'.
|
woocommerce-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: 1.
|
| 7 |
Author: jameskoster
|
| 8 |
Author URI: http://jameskoster.co.uk
|
| 9 |
Requires at least: 4.0
|
| 10 |
-
Tested up to: 4.
|
| 11 |
License: GPLv2 or later
|
| 12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 13 |
Text Domain: woocommerce-grid-list-toggle
|
|
@@ -105,30 +105,26 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
| 105 |
|
| 106 |
// Toggle button
|
| 107 |
function gridlist_toggle_button() {
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
| 113 |
}
|
| 114 |
|
| 115 |
// Button wrap
|
| 116 |
function gridlist_buttonwrap_open() {
|
| 117 |
-
|
| 118 |
-
<div class="gridlist-buttonwrap">
|
| 119 |
-
<?php
|
| 120 |
}
|
| 121 |
function gridlist_buttonwrap_close() {
|
| 122 |
-
|
| 123 |
-
</div>
|
| 124 |
-
<?php
|
| 125 |
}
|
| 126 |
|
| 127 |
// hr
|
| 128 |
function gridlist_hr() {
|
| 129 |
-
|
| 130 |
-
<hr />
|
| 131 |
-
<?php
|
| 132 |
}
|
| 133 |
|
| 134 |
function gridlist_set_default_view() {
|
|
@@ -145,9 +141,9 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
| 145 |
|
| 146 |
function gridlist_cat_desc( $category ) {
|
| 147 |
global $woocommerce;
|
| 148 |
-
echo '<div itemprop="description">';
|
| 149 |
echo $category->description;
|
| 150 |
-
echo '</div>';
|
| 151 |
|
| 152 |
}
|
| 153 |
}
|
| 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: 1.1.0
|
| 7 |
Author: jameskoster
|
| 8 |
Author URI: http://jameskoster.co.uk
|
| 9 |
Requires at least: 4.0
|
| 10 |
+
Tested up to: 4.7
|
| 11 |
License: GPLv2 or later
|
| 12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 13 |
Text Domain: woocommerce-grid-list-toggle
|
| 105 |
|
| 106 |
// Toggle button
|
| 107 |
function gridlist_toggle_button() {
|
| 108 |
+
|
| 109 |
+
$grid_view = __( 'Grid view', 'woocommerce-grid-list-toggle' );
|
| 110 |
+
$list_view = __( 'List view', 'woocommerce-grid-list-toggle' );
|
| 111 |
+
|
| 112 |
+
$output = sprintf( '<nav class="gridlist-toggle"><a href="#" id="grid" title="%1$s"><span class="dashicons dashicons-grid-view"></span> <em>%1$s</em></a><a href="#" id="list" title="%2$s"><span class="dashicons dashicons-exerpt-view"></span> <em>%2$s</em></a></nav>', $grid_view, $list_view );
|
| 113 |
+
|
| 114 |
+
echo apply_filters( 'gridlist_toggle_button_output', $output, $grid_view, $list_view );
|
| 115 |
}
|
| 116 |
|
| 117 |
// Button wrap
|
| 118 |
function gridlist_buttonwrap_open() {
|
| 119 |
+
echo apply_filters( 'gridlist_button_wrap_start', '<div class="gridlist-buttonwrap">' );
|
|
|
|
|
|
|
| 120 |
}
|
| 121 |
function gridlist_buttonwrap_close() {
|
| 122 |
+
echo apply_filters( 'gridlist_button_wrap_end', '</div>' );
|
|
|
|
|
|
|
| 123 |
}
|
| 124 |
|
| 125 |
// hr
|
| 126 |
function gridlist_hr() {
|
| 127 |
+
echo apply_filters( 'gridlist_hr', '<hr />' );
|
|
|
|
|
|
|
| 128 |
}
|
| 129 |
|
| 130 |
function gridlist_set_default_view() {
|
| 141 |
|
| 142 |
function gridlist_cat_desc( $category ) {
|
| 143 |
global $woocommerce;
|
| 144 |
+
echo apply_filters( 'gridlist_cat_desc_wrap_start', '<div itemprop="description">' );
|
| 145 |
echo $category->description;
|
| 146 |
+
echo apply_filters( 'gridlist_cat_desc_wrap_end', '</div>' );
|
| 147 |
|
| 148 |
}
|
| 149 |
}
|
