Version Description
- Fix - Notices in debug mode
Download this release
Release Info
Developer | sormano |
Plugin | WooCommerce Products Per Page |
Version | 1.0.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.0.10
- admin/options-page.php +1 -1
- languages/wppp-fa_IR.mo +0 -0
- languages/wppp-fa_IR.po +90 -0
- objects/wppp-dropdown.php +6 -3
- readme.txt +8 -4
- woocommerce-products-per-page.php +1 -1
admin/options-page.php
CHANGED
@@ -136,7 +136,7 @@ class wppp_options extends woocommerce_products_per_page {
|
|
136 |
|
137 |
?>
|
138 |
<label for="behaviour">
|
139 |
-
<input type="checkbox" id="behaviour" name="wppp_settings[behaviour]" value="1" <?php checked( $this->options['behaviour'], 1 ); ?>>
|
140 |
<?php _e( 'When checked and a new number of PPP is selected, the visitor will be send to the first page of the product category', 'wppp' ); ?>
|
141 |
</label>
|
142 |
<style>
|
136 |
|
137 |
?>
|
138 |
<label for="behaviour">
|
139 |
+
<input type="checkbox" id="behaviour" name="wppp_settings[behaviour]" value="1" <?php @checked( $this->options['behaviour'], 1 ); ?>>
|
140 |
<?php _e( 'When checked and a new number of PPP is selected, the visitor will be send to the first page of the product category', 'wppp' ); ?>
|
141 |
</label>
|
142 |
<style>
|
languages/wppp-fa_IR.mo
ADDED
Binary file
|
languages/wppp-fa_IR.po
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WooCommerce Products Per Page 1.0.1\n"
|
4 |
+
"POT-Creation-Date: 2014-03-15 14:13+0100\n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: Jeroen Sormani <jeroen.sormani@gmail.com>\n"
|
8 |
+
"Language: French\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.3\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
+
"X-Poedit-Basepath: /Users/Jeroen/plugins/woocommerce-products-per-page/"
|
15 |
+
"trunk/\n"
|
16 |
+
"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-SearchPath-0: /Users/Jeroen/plugins/woocommerce-products-per-page/"
|
19 |
+
"trunk\n"
|
20 |
+
|
21 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:27
|
22 |
+
msgid "Dropdown location"
|
23 |
+
msgstr "محل لیست کشویی"
|
24 |
+
|
25 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:35
|
26 |
+
msgid "List of dropdown options"
|
27 |
+
msgstr "لیست تنظیمات منوی کشویی"
|
28 |
+
|
29 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:43
|
30 |
+
msgid "Default products per page"
|
31 |
+
msgstr "تنظیم پیش فرض برای نشان دادن تعداد محصولات در هر صفحه"
|
32 |
+
|
33 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:51
|
34 |
+
msgid "Shop columns"
|
35 |
+
msgstr "ستونهای فروشگاه"
|
36 |
+
|
37 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:59
|
38 |
+
msgid "First category page"
|
39 |
+
msgstr "اولین صفحهی دسته"
|
40 |
+
|
41 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:73
|
42 |
+
msgid "WooCommerce Products Per Page"
|
43 |
+
msgstr "نمایش تعداد محصول در هر صفحه برای افزونه ووکامرس"
|
44 |
+
|
45 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:92
|
46 |
+
msgid "Top"
|
47 |
+
msgstr "بالا"
|
48 |
+
|
49 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:93
|
50 |
+
msgid "Bottom"
|
51 |
+
msgstr "پایین"
|
52 |
+
|
53 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:94
|
54 |
+
msgid "Top/Bottom"
|
55 |
+
msgstr "بالا/پایین"
|
56 |
+
|
57 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:95
|
58 |
+
msgid "None"
|
59 |
+
msgstr "هیچکدام"
|
60 |
+
|
61 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:107
|
62 |
+
msgid "Seperated by spaces <em>(-1 for all products)</em>"
|
63 |
+
msgstr "جدا شده توسط فضا <em>(-1 برای همه محصولات)</em>"
|
64 |
+
|
65 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:118
|
66 |
+
msgid "-1 for all products"
|
67 |
+
msgstr "-1 برای همه محصولات"
|
68 |
+
|
69 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:140
|
70 |
+
msgid ""
|
71 |
+
"When checked and a new number of PPP is selected, the visitor will be send "
|
72 |
+
"to the first page of the product category"
|
73 |
+
msgstr ""
|
74 |
+
"اگر تیک زده شود و یک شماره جدید PPP انتخاب شود، خریدار به صحفه اول دسته بندی "
|
75 |
+
"محصول فرستاده میشود"
|
76 |
+
|
77 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:187
|
78 |
+
msgid "Configure the WooCommerce Product Per Page settings here."
|
79 |
+
msgstr ""
|
80 |
+
"تنظیمات نمایش تعداد محصول در هر صفحه برای افزونه ووکامرس را از اینجا تغییر "
|
81 |
+
"دهید"
|
82 |
+
|
83 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/objects/wppp-dropdown.php:49
|
84 |
+
#, php-format
|
85 |
+
msgid "%s products per page"
|
86 |
+
msgstr "%s محصول در هر صفحه"
|
87 |
+
|
88 |
+
#: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/objects/wppp-dropdown.php:50
|
89 |
+
msgid "All"
|
90 |
+
msgstr "همه"
|
objects/wppp-dropdown.php
CHANGED
@@ -22,17 +22,20 @@ class wppp_dropdown extends woocommerce_products_per_page {
|
|
22 |
|
23 |
global $wp_query;
|
24 |
|
|
|
25 |
$cat = $wp_query->get_queried_object();
|
26 |
|
27 |
// Set action url if option behaviour is true
|
28 |
// Paste QUERY string after for filter and orderby support
|
29 |
$query_string = !empty( $_SERVER['QUERY_STRING'] ) ? '?' . $_SERVER['QUERY_STRING'] : null;
|
30 |
-
|
|
|
|
|
31 |
$action = ' action="' . get_term_link( $cat->term_id, 'product_cat' ) . $query_string . '"';
|
32 |
-
elseif ( true == $this->options['behaviour'] ) :
|
33 |
$action = 'action="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . $query_string . '"';
|
34 |
endif;
|
35 |
-
|
36 |
// Only show on product categories
|
37 |
if ( woocommerce_products_will_display() ) :
|
38 |
?>
|
22 |
|
23 |
global $wp_query;
|
24 |
|
25 |
+
$cat = '';
|
26 |
$cat = $wp_query->get_queried_object();
|
27 |
|
28 |
// Set action url if option behaviour is true
|
29 |
// Paste QUERY string after for filter and orderby support
|
30 |
$query_string = !empty( $_SERVER['QUERY_STRING'] ) ? '?' . $_SERVER['QUERY_STRING'] : null;
|
31 |
+
|
32 |
+
$action = '';
|
33 |
+
if ( isset( $cat->term_id ) && isset( $cat->taxonomy ) && isset( $this->options['behaviour'] ) && true == $cat->term_id && true == $this->options['behaviour'] && 'product_cat' == $cat->taxonomy ) :
|
34 |
$action = ' action="' . get_term_link( $cat->term_id, 'product_cat' ) . $query_string . '"';
|
35 |
+
elseif ( isset( $this->options['behaviour'] ) && true == $this->options['behaviour'] ) :
|
36 |
$action = 'action="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . $query_string . '"';
|
37 |
endif;
|
38 |
+
|
39 |
// Only show on product categories
|
40 |
if ( woocommerce_products_will_display() ) :
|
41 |
?>
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: sormano
|
3 |
Donate link: http://www.jeroensormani.nl/donate/
|
4 |
Tags: Products per page, woocommerce, woocommerce products, woocommerce products per page, woocommerce displayed products, woocommerce quantity products, woocommerce amount of products, woocommerce number of products, woocommerce shown products
|
5 |
-
Requires at least: 3.0
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -24,7 +24,8 @@ Options like:
|
|
24 |
|
25 |
### Translations ###
|
26 |
- Dutch
|
27 |
-
- French [whoaloic](http://profiles.wordpress.org/whoaloic)
|
|
|
28 |
|
29 |
|
30 |
== Installation ==
|
@@ -42,6 +43,9 @@ Options like:
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 1.0.9 =
|
46 |
* Improvement - For dropdown on product showing pages only
|
47 |
* Improvement - Compatibility for WC 2.1.X
|
2 |
Contributors: sormano
|
3 |
Donate link: http://www.jeroensormani.nl/donate/
|
4 |
Tags: Products per page, woocommerce, woocommerce products, woocommerce products per page, woocommerce displayed products, woocommerce quantity products, woocommerce amount of products, woocommerce number of products, woocommerce shown products
|
5 |
+
Requires at least: 3.6.0
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 1.0.10
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
24 |
|
25 |
### Translations ###
|
26 |
- Dutch
|
27 |
+
- French [(whoaloic)](http://profiles.wordpress.org/whoaloic)
|
28 |
+
- Persian [(amir_tara67)](http://profiles.wordpress.org/amir_tara67)
|
29 |
|
30 |
|
31 |
== Installation ==
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 1.0.10 =
|
47 |
+
* Fix - Notices in debug mode
|
48 |
+
|
49 |
= 1.0.9 =
|
50 |
* Improvement - For dropdown on product showing pages only
|
51 |
* Improvement - Compatibility for WC 2.1.X
|
woocommerce-products-per-page.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Woocommerce Products Per Page
|
4 |
Plugin URI: http://www.jeroensormani.nl/
|
5 |
Description: Integrate a 'products per page' dropdown on your WooCommerce website! Set-up in <strong>seconds</strong>!
|
6 |
-
Version: 1.0.
|
7 |
Author: Jeroen Sormani
|
8 |
Author URI: http://www.jeroensormani.nl
|
9 |
|
3 |
Plugin Name: Woocommerce Products Per Page
|
4 |
Plugin URI: http://www.jeroensormani.nl/
|
5 |
Description: Integrate a 'products per page' dropdown on your WooCommerce website! Set-up in <strong>seconds</strong>!
|
6 |
+
Version: 1.0.10
|
7 |
Author: Jeroen Sormani
|
8 |
Author URI: http://www.jeroensormani.nl
|
9 |
|