Version Description
- 30/05/2013 =
- Improved i18n
- Added languages folder
- Added default .po file for translators
- Added full German translations for v0.3.2 (including the above enhancements)
- Kudos deckerweb for all the above :-)
- Stripped object pass by reference
Download this release
Release Info
Developer | jameskoster |
Plugin | WooCommerce Grid / List toggle |
Version | 0.3.3 |
Comparing to | |
See all releases |
Code changes from version 0.3.2 to 0.3.3
- README.md +4 -0
- grid-list-toggle.php +15 -13
- languages/index.html +0 -0
- languages/wc_list_grid_toggle-de_DE.mo +0 -0
- languages/wc_list_grid_toggle-de_DE.po +94 -0
- languages/wc_list_grid_toggle.po +58 -0
- readme.txt +15 -6
README.md
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
woocommerce-grid-list-toggle
|
2 |
+
============================
|
3 |
+
|
4 |
+
Adds a grid/list view toggle to product archives in WooCommerce
|
grid-list-toggle.php
CHANGED
@@ -3,13 +3,15 @@
|
|
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
|
10 |
-
Tested up to: 3.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
13 |
*/
|
14 |
|
15 |
/**
|
@@ -20,7 +22,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
20 |
/**
|
21 |
* Localisation
|
22 |
**/
|
23 |
-
load_plugin_textdomain('wc_list_grid_toggle', false, dirname( plugin_basename( __FILE__ ) ) . '/');
|
24 |
|
25 |
/**
|
26 |
* WC_List_Grid class
|
@@ -31,7 +33,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
31 |
|
32 |
public function __construct() {
|
33 |
// Hooks
|
34 |
-
add_action( 'wp' , array(
|
35 |
|
36 |
// Init settings
|
37 |
$this->settings = array(
|
@@ -57,8 +59,8 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
57 |
add_option( 'wc_glt_default', 'grid' );
|
58 |
|
59 |
// Admin
|
60 |
-
add_action( 'woocommerce_settings_image_options_after', array(
|
61 |
-
add_action( 'woocommerce_update_options_catalog', array(
|
62 |
}
|
63 |
|
64 |
/*-----------------------------------------------------------------------------------*/
|
@@ -76,14 +78,14 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
76 |
// Setup
|
77 |
function setup_gridlist() {
|
78 |
if ( is_shop() || is_product_category() || is_product_tag() ) {
|
79 |
-
add_action( 'wp_enqueue_scripts', array(
|
80 |
-
add_action( 'wp_enqueue_scripts', array(
|
81 |
-
add_action( 'woocommerce_before_shop_loop', array(
|
82 |
-
add_action( 'woocommerce_after_shop_loop_item', array(
|
83 |
-
add_action( 'woocommerce_after_shop_loop_item', array(
|
84 |
-
add_action( 'woocommerce_after_shop_loop_item', array(
|
85 |
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);
|
86 |
-
add_action( 'woocommerce_after_subcategory', array(
|
87 |
}
|
88 |
}
|
89 |
|
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
|
14 |
+
Domain Path: /languages/
|
15 |
*/
|
16 |
|
17 |
/**
|
22 |
/**
|
23 |
* Localisation
|
24 |
**/
|
25 |
+
load_plugin_textdomain( 'wc_list_grid_toggle', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
26 |
|
27 |
/**
|
28 |
* WC_List_Grid class
|
33 |
|
34 |
public function __construct() {
|
35 |
// Hooks
|
36 |
+
add_action( 'wp' , array( $this, 'setup_gridlist' ) , 20);
|
37 |
|
38 |
// Init settings
|
39 |
$this->settings = array(
|
59 |
add_option( 'wc_glt_default', 'grid' );
|
60 |
|
61 |
// Admin
|
62 |
+
add_action( 'woocommerce_settings_image_options_after', array( $this, 'admin_settings' ), 20);
|
63 |
+
add_action( 'woocommerce_update_options_catalog', array( $this, 'save_admin_settings' ) );
|
64 |
}
|
65 |
|
66 |
/*-----------------------------------------------------------------------------------*/
|
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);
|
84 |
+
add_action( 'woocommerce_after_shop_loop_item', array( $this, 'gridlist_buttonwrap_open' ), 9);
|
85 |
+
add_action( 'woocommerce_after_shop_loop_item', array( $this, 'gridlist_buttonwrap_close' ), 11);
|
86 |
+
add_action( 'woocommerce_after_shop_loop_item', array( $this, 'gridlist_hr' ), 30);
|
87 |
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);
|
88 |
+
add_action( 'woocommerce_after_subcategory', array( $this, 'gridlist_cat_desc' ) );
|
89 |
}
|
90 |
}
|
91 |
|
languages/index.html
ADDED
File without changes
|
languages/wc_list_grid_toggle-de_DE.mo
ADDED
Binary file
|
languages/wc_list_grid_toggle-de_DE.po
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This German Language File: Copyright (C) 2013 by David Decker of deckerweb.de & genesisthemes.de
|
2 |
+
# This file is distributed under the same license as the WooCommerce Grid / List Toogle Plugin package.
|
3 |
+
#
|
4 |
+
# Weitere deutsche Sprachdateien fuer WooCommerce und Extensions (Erweiterungen)
|
5 |
+
# sowie fuer WordPress-Plugins und -Themes sind hier zu finden:
|
6 |
+
# --> http://deckerweb.de/sprachdateien/
|
7 |
+
#
|
8 |
+
msgid ""
|
9 |
+
msgstr ""
|
10 |
+
"Project-Id-Version: WooCommerce Grid / List toggle v0.3.2\n"
|
11 |
+
"Report-Msgid-Bugs-To: http://deckerweb.de/kontakt/\n"
|
12 |
+
"POT-Creation-Date: 2013-03-27 21:36:20+0000\n"
|
13 |
+
"PO-Revision-Date: 2013-03-27 22:40+0100\n"
|
14 |
+
"Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
|
15 |
+
"Language-Team: DECKERWEB -- http://deckerweb.de/kontakt/\n"
|
16 |
+
"MIME-Version: 1.0\n"
|
17 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
18 |
+
"Content-Transfer-Encoding: 8bit\n"
|
19 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
20 |
+
"X-Generator: CSL v1.x\n"
|
21 |
+
"X-Poedit-Language: German\n"
|
22 |
+
"X-Poedit-Country: GERMANY\n"
|
23 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
24 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
25 |
+
"X-Textdomain-Support: yes\n"
|
26 |
+
"X-Poedit-SearchPath-0: .\n"
|
27 |
+
|
28 |
+
#@ wc_list_grid_toggle
|
29 |
+
#: grid-list-toggle.php:41
|
30 |
+
#: grid-list-toggle.php:46
|
31 |
+
msgid "Default catalog view"
|
32 |
+
msgstr "Standard-Katalogansicht"
|
33 |
+
|
34 |
+
#@ wc_list_grid_toggle
|
35 |
+
#: grid-list-toggle.php:47
|
36 |
+
msgid "Display products in grid or list view by default"
|
37 |
+
msgstr "Produkte standardmäßig in Raster- oder Listenansicht darstellen"
|
38 |
+
|
39 |
+
#@ wc_list_grid_toggle
|
40 |
+
#: grid-list-toggle.php:51
|
41 |
+
msgid "Grid"
|
42 |
+
msgstr "Raster"
|
43 |
+
|
44 |
+
#@ wc_list_grid_toggle
|
45 |
+
#: grid-list-toggle.php:52
|
46 |
+
msgid "List"
|
47 |
+
msgstr "Liste"
|
48 |
+
|
49 |
+
#@ wc_list_grid_toggle
|
50 |
+
#: grid-list-toggle.php:111
|
51 |
+
msgid "Grid view"
|
52 |
+
msgstr "Rasteransicht"
|
53 |
+
|
54 |
+
#@ wc_list_grid_toggle
|
55 |
+
#: grid-list-toggle.php:111
|
56 |
+
msgid "List view"
|
57 |
+
msgstr "Listenansicht"
|
58 |
+
|
59 |
+
#@ wc_list_grid_toggle
|
60 |
+
#. translators: plugin header field 'Name'
|
61 |
+
#: grid-list-toggle.php:0
|
62 |
+
msgid "WooCommerce Grid / List toggle"
|
63 |
+
msgstr "WooCommerce Raster / Listen Schalter"
|
64 |
+
|
65 |
+
#@ wc_list_grid_toggle
|
66 |
+
#. translators: plugin header field 'PluginURI'
|
67 |
+
#: grid-list-toggle.php:0
|
68 |
+
msgid "http://jameskoster.co.uk/tag/grid-list-toggle/"
|
69 |
+
msgstr "http://jameskoster.co.uk/tag/grid-list-toggle/"
|
70 |
+
|
71 |
+
#@ wc_list_grid_toggle
|
72 |
+
#. translators: plugin header field 'Description'
|
73 |
+
#: grid-list-toggle.php:0
|
74 |
+
msgid "Adds a grid/list view toggle to product archives"
|
75 |
+
msgstr "Fügt den Produktarchiv-Ansichten in WooCommerce einen Raster-/ Listen-Schalter hinzu."
|
76 |
+
|
77 |
+
#@ wc_list_grid_toggle
|
78 |
+
#. translators: plugin header field 'Author'
|
79 |
+
#: grid-list-toggle.php:0
|
80 |
+
msgid "jameskoster"
|
81 |
+
msgstr "James Koster"
|
82 |
+
|
83 |
+
#@ wc_list_grid_toggle
|
84 |
+
#. translators: plugin header field 'AuthorURI'
|
85 |
+
#: grid-list-toggle.php:0
|
86 |
+
msgid "http://jameskoster.co.uk"
|
87 |
+
msgstr "http://jameskoster.co.uk/"
|
88 |
+
|
89 |
+
#@ wc_list_grid_toggle
|
90 |
+
#. translators: plugin header field 'Version'
|
91 |
+
#: grid-list-toggle.php:0
|
92 |
+
msgid "0.3.2"
|
93 |
+
msgstr "0.3.2"
|
94 |
+
|
languages/wc_list_grid_toggle.po
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file is distributed under the same license as the WooCommerce Grid / List Toggle package.
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"PO-Revision-Date: 2013-03-27 21:39:48+0000\n"
|
5 |
+
"MIME-Version: 1.0\n"
|
6 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
7 |
+
"Content-Transfer-Encoding: 8bit\n"
|
8 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
9 |
+
"X-Generator: GlotPress/0.1\n"
|
10 |
+
"Project-Id-Version: WooCommerce Grid / List Toggle\n"
|
11 |
+
|
12 |
+
#: grid-list-toggle.php:41 grid-list-toggle.php:46
|
13 |
+
msgid "Default catalog view"
|
14 |
+
msgstr ""
|
15 |
+
|
16 |
+
#: grid-list-toggle.php:47
|
17 |
+
msgid "Display products in grid or list view by default"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: grid-list-toggle.php:51
|
21 |
+
msgid "Grid"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: grid-list-toggle.php:52
|
25 |
+
msgid "List"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: grid-list-toggle.php:111
|
29 |
+
msgid "Grid view"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: grid-list-toggle.php:111
|
33 |
+
msgid "List view"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: grid-list-toggle.php:0
|
37 |
+
msgid "WooCommerce Grid / List toggle"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: grid-list-toggle.php:0
|
41 |
+
msgid "http://jameskoster.co.uk/tag/grid-list-toggle/"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: grid-list-toggle.php:0
|
45 |
+
msgid "Adds a grid/list view toggle to product archives"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: grid-list-toggle.php:0
|
49 |
+
msgid "jameskoster"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: grid-list-toggle.php:0
|
53 |
+
msgid "http://jameskoster.co.uk"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: grid-list-toggle.php:0
|
57 |
+
msgid "0.3.2"
|
58 |
+
msgstr ""
|
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.
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 0.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,13 +11,13 @@ Adds a grid/list view toggle to product archives
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
WooCommerce Grid / List toggle is a simple plugin which adds a Grid / List toggle to your product archives allowing users to,
|
15 |
|
16 |
The list view arranges products in a vertical list and pulls in the excerpt to give a more detailed overview.
|
17 |
|
18 |
The grid view you will be familiar with as this is WooCommerce's default layout for product archives.
|
19 |
|
20 |
-
The store owner can choose whether grid or list view be set as the default.
|
21 |
|
22 |
Please feel free to contribute on <a href="https://github.com/jameskoster/woocommerce-grid-list-toggle">github</a>.
|
23 |
|
@@ -25,7 +25,8 @@ Please feel free to contribute on <a href="https://github.com/jameskoster/woocom
|
|
25 |
|
26 |
1. Upload `woocommerce-grid-list-toggle` to the `/wp-content/plugins/` directory
|
27 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
28 |
-
3.
|
|
|
29 |
|
30 |
== Frequently Asked Questions ==
|
31 |
|
@@ -64,6 +65,14 @@ function remove_gridlist_styles() {
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
= 0.3.2 - 08/02/2013 =
|
68 |
* Product category descriptions now displayed in list view
|
69 |
|
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 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
WooCommerce Grid / List toggle is a simple plugin which adds a Grid / List toggle button to your product archives allowing users to, toggle between grid / list views of your products on your WooCommerce store.
|
15 |
|
16 |
The list view arranges products in a vertical list and pulls in the excerpt to give a more detailed overview.
|
17 |
|
18 |
The grid view you will be familiar with as this is WooCommerce's default layout for product archives.
|
19 |
|
20 |
+
The store owner can choose whether grid or list view be set as the default via the Catalog tab of the WooCommerce settings screen.
|
21 |
|
22 |
Please feel free to contribute on <a href="https://github.com/jameskoster/woocommerce-grid-list-toggle">github</a>.
|
23 |
|
25 |
|
26 |
1. Upload `woocommerce-grid-list-toggle` to the `/wp-content/plugins/` directory
|
27 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
28 |
+
3. Choose the default setting on the catalog tab of the WooCommerce settings screen
|
29 |
+
4. Done!
|
30 |
|
31 |
== Frequently Asked Questions ==
|
32 |
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
= 0.3.3 - 30/05/2013 =
|
69 |
+
* Improved i18n
|
70 |
+
* Added languages folder
|
71 |
+
* Added default .po file for translators
|
72 |
+
* Added full German translations for v0.3.2 (including the above enhancements)
|
73 |
+
* Kudos deckerweb for all the above :-)
|
74 |
+
* Stripped object pass by reference
|
75 |
+
|
76 |
= 0.3.2 - 08/02/2013 =
|
77 |
* Product category descriptions now displayed in list view
|
78 |
|