Version Description
- Added: Persian translation by Khalil Delavaran
- Added: Compare table title option
- Added: Compatibility with WPML plugin
- Added: Brazilian Portuguese translation by hotelwww
- Updated: Dutch translation by Frans Pronk
- Fixed: Responsive features
- Fixed: Dequeued wrong JS scripts
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Compare |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- README.txt +14 -1
- assets/js/woocompare.js +5 -3
- class.yith-woocompare-admin.php +1 -1
- class.yith-woocompare-frontend.php +1 -1
- class.yith-woocompare-helper.php +1 -1
- class.yith-woocompare.php +1 -1
- functions.yith-woocompare.php +1 -1
- init.php +2 -2
- languages/yit-fa_IR.mo +0 -0
- languages/yit-fa_IR.po +3 -4
- languages/yit-nl_NL.mo +0 -0
- languages/yit-nl_NL.po +56 -64
- languages/yit-pt_BR.mo +0 -0
- languages/yit-pt_BR.po +239 -0
- templates/compare.php +104 -98
- widgets/class.yith-woocompare-widget.php +1 -1
- wpml-config.xml +4 -0
- yith-woocompare-options.php +9 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce, compare, compare products, product compare, widget
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -26,6 +26,9 @@ Working demos are available here:
|
|
26 |
Full documentation is available [here](http://yithemes.com/docs-plugins/yith_woocommerce_compare/).
|
27 |
|
28 |
|
|
|
|
|
|
|
29 |
= Installation =
|
30 |
|
31 |
Once you have installed the plugin, you just need to activate the plugin in order to enable it.
|
@@ -79,6 +82,16 @@ Yes, you can sort the fields in the compare table. You can do it in Woocommerce
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
= 1.0.4 =
|
83 |
|
84 |
* Added: complete Dutch translation. Thanks to Frans Pronk
|
4 |
Tags: woocommerce, compare, compare products, product compare, widget
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 1.0.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
26 |
Full documentation is available [here](http://yithemes.com/docs-plugins/yith_woocommerce_compare/).
|
27 |
|
28 |
|
29 |
+
This plugin is 100% compatible with [WPML](http://wpml.org/?aid=24889&affiliate_key=Qn1wDeBNTcZV)
|
30 |
+
|
31 |
+
|
32 |
= Installation =
|
33 |
|
34 |
Once you have installed the plugin, you just need to activate the plugin in order to enable it.
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 1.0.5 =
|
86 |
+
|
87 |
+
* Added: Persian translation by Khalil Delavaran
|
88 |
+
* Added: Compare table title option
|
89 |
+
* Added: Compatibility with WPML plugin
|
90 |
+
* Added: Brazilian Portuguese translation by hotelwww
|
91 |
+
* Updated: Dutch translation by Frans Pronk
|
92 |
+
* Fixed: Responsive features
|
93 |
+
* Fixed: Dequeued wrong JS scripts
|
94 |
+
|
95 |
= 1.0.4 =
|
96 |
|
97 |
* Added: complete Dutch translation. Thanks to Frans Pronk
|
assets/js/woocompare.js
CHANGED
@@ -77,13 +77,15 @@ jQuery(document).ready(function($) {
|
|
77 |
if (urlparts.length >= 2) {
|
78 |
var prefix = encodeURIComponent(parameter) + '=';
|
79 |
var pars = urlparts[1].split(/[&;]/g);
|
80 |
-
for (var i = pars.length; i-- > 0;)
|
81 |
-
if (pars[i].lastIndexOf(prefix, 0) !== -1)
|
82 |
pars.splice(i, 1);
|
|
|
|
|
83 |
response = urlparts[0] + '?' + pars.join('&');
|
84 |
}
|
85 |
|
86 |
-
window.open(response, yith_woocompare.table_title);
|
87 |
}
|
88 |
});
|
89 |
|
77 |
if (urlparts.length >= 2) {
|
78 |
var prefix = encodeURIComponent(parameter) + '=';
|
79 |
var pars = urlparts[1].split(/[&;]/g);
|
80 |
+
for (var i = pars.length; i-- > 0;) {
|
81 |
+
if (pars[i].lastIndexOf(prefix, 0) !== -1) {
|
82 |
pars.splice(i, 1);
|
83 |
+
}
|
84 |
+
}
|
85 |
response = urlparts[0] + '?' + pars.join('&');
|
86 |
}
|
87 |
|
88 |
+
window.open( response, yith_woocompare.table_title);
|
89 |
}
|
90 |
});
|
91 |
|
class.yith-woocompare-admin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Magnifier
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Magnifier
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
class.yith-woocompare-frontend.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
class.yith-woocompare-helper.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Compare
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Compare
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
class.yith-woocompare.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
functions.yith-woocompare.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH Woocommerce Compare
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Your Inspiration Themes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
@@ -11,7 +11,7 @@
|
|
11 |
*
|
12 |
* @author Your Inspiration Themes
|
13 |
* @package YITH Woocommerce Compare
|
14 |
-
* @version 1.0.
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
3 |
* Plugin Name: YITH Woocommerce Compare
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
|
6 |
+
* Version: 1.0.5
|
7 |
* Author: Your Inspiration Themes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
11 |
*
|
12 |
* @author Your Inspiration Themes
|
13 |
* @package YITH Woocommerce Compare
|
14 |
+
* @version 1.0.5
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
languages/yit-fa_IR.mo
CHANGED
Binary file
|
languages/yit-fa_IR.po
CHANGED
@@ -2,14 +2,14 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
"POT-Creation-Date: 2013-09-04 15:57+0100\n"
|
5 |
-
"PO-Revision-Date: 2013-09-
|
6 |
"Last-Translator: Khalil Delavaran <khalil.delavaran@gmail.com>\n"
|
7 |
"Language-Team: Qooqnos <khalil.delavaran@gmail.com>\n"
|
8 |
"Language: Persian\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.
|
13 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
14 |
"X-Poedit-Basepath: ./\n"
|
15 |
"X-Poedit-SearchPath-0: ..\n"
|
@@ -89,13 +89,12 @@ msgid "Button"
|
|
89 |
msgstr "دکمه"
|
90 |
|
91 |
#: ../yith-woocompare-options.php:35
|
92 |
-
#, fuzzy
|
93 |
msgid "Link/Button text"
|
94 |
msgstr "لینک یا دکمه"
|
95 |
|
96 |
#: ../yith-woocompare-options.php:36
|
97 |
msgid "Type the text to use for the button or the link of the compare."
|
98 |
-
msgstr ""
|
99 |
|
100 |
#: ../yith-woocompare-options.php:43
|
101 |
msgid "Show button in single product page"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
"POT-Creation-Date: 2013-09-04 15:57+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-09-26 02:27+0330\n"
|
6 |
"Last-Translator: Khalil Delavaran <khalil.delavaran@gmail.com>\n"
|
7 |
"Language-Team: Qooqnos <khalil.delavaran@gmail.com>\n"
|
8 |
"Language: Persian\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.7\n"
|
13 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
14 |
"X-Poedit-Basepath: ./\n"
|
15 |
"X-Poedit-SearchPath-0: ..\n"
|
89 |
msgstr "دکمه"
|
90 |
|
91 |
#: ../yith-woocompare-options.php:35
|
|
|
92 |
msgid "Link/Button text"
|
93 |
msgstr "لینک یا دکمه"
|
94 |
|
95 |
#: ../yith-woocompare-options.php:36
|
96 |
msgid "Type the text to use for the button or the link of the compare."
|
97 |
+
msgstr "نوشته ای برای بکار بردن دکمه یا لینک مقایسه بنویسید"
|
98 |
|
99 |
#: ../yith-woocompare-options.php:43
|
100 |
msgid "Show button in single product page"
|
languages/yit-nl_NL.mo
CHANGED
Binary file
|
languages/yit-nl_NL.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
-
"POT-Creation-Date: 2013-
|
5 |
-
"PO-Revision-Date: 2013-
|
6 |
"Last-Translator: Frans Pronk <beheer@ifra.nl>\n"
|
7 |
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
8 |
"Language: English\n"
|
@@ -14,60 +14,63 @@ msgstr ""
|
|
14 |
"X-Poedit-Basepath: ./\n"
|
15 |
"X-Poedit-SearchPath-0: ..\n"
|
16 |
|
17 |
-
#: ../class.yith-woocompare-admin.php:
|
18 |
msgid "Products Compare"
|
19 |
msgstr "Product vergelijk"
|
20 |
|
21 |
-
#: ../class.yith-woocompare-admin.php:
|
|
|
22 |
msgid "General Settings"
|
23 |
msgstr "Algemene instellingen"
|
24 |
|
25 |
-
#: ../class.yith-woocompare-frontend.php:
|
26 |
msgid "Added"
|
27 |
msgstr "Toegevoegd"
|
28 |
|
29 |
-
#: ../class.yith-woocompare-frontend.php:
|
|
|
30 |
msgid "Product Comparison"
|
31 |
msgstr "Product vergelijk"
|
32 |
|
33 |
-
#: ../class.yith-woocompare-frontend.php:
|
34 |
msgid "In stock"
|
35 |
msgstr "Op voorraad"
|
36 |
|
37 |
-
#: ../class.yith-woocompare-frontend.php:
|
38 |
#: ../widgets/class.yith-woocompare-widget.php:38
|
39 |
msgid "Compare"
|
40 |
msgstr "Vergelijk"
|
41 |
|
42 |
-
#: ../class.yith-woocompare-frontend.php:
|
43 |
msgid "No products to compare"
|
44 |
msgstr "Geen producten om te vergelijken"
|
45 |
|
46 |
-
#: ../class.yith-woocompare-frontend.php:
|
|
|
47 |
msgid "Remove"
|
48 |
msgstr "Verwijder"
|
49 |
|
50 |
#: ../class.yith-woocompare-helper.php:38
|
51 |
-
msgid "Image"
|
52 |
-
msgstr "Afbeelding"
|
53 |
-
|
54 |
-
#: ../class.yith-woocompare-helper.php:39
|
55 |
#: ../widgets/class.yith-woocompare-widget.php:55
|
56 |
msgid "Title"
|
57 |
msgstr "Titel"
|
58 |
|
|
|
|
|
|
|
|
|
59 |
#: ../class.yith-woocompare-helper.php:40
|
|
|
|
|
|
|
|
|
60 |
msgid "Price"
|
61 |
msgstr "Prijs"
|
62 |
|
63 |
-
#: ../class.yith-woocompare-helper.php:
|
64 |
msgid "Add to cart"
|
65 |
msgstr "Bestellen"
|
66 |
|
67 |
-
#: ../class.yith-woocompare-helper.php:42
|
68 |
-
msgid "Description"
|
69 |
-
msgstr "Omschrijving"
|
70 |
-
|
71 |
#: ../class.yith-woocompare-helper.php:43
|
72 |
msgid "Availability"
|
73 |
msgstr "Beschikbaarheid"
|
@@ -89,69 +92,56 @@ msgid "Button"
|
|
89 |
msgstr "Button"
|
90 |
|
91 |
#: ../yith-woocompare-options.php:35
|
92 |
-
#, fuzzy
|
93 |
-
msgid "Link/Button text"
|
94 |
-
msgstr "Link of Button"
|
95 |
-
|
96 |
-
#: ../yith-woocompare-options.php:36
|
97 |
-
msgid "Type the text to use for the button or the link of the compare."
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: ../yith-woocompare-options.php:43
|
101 |
msgid "Show button in single product page"
|
102 |
msgstr "Toon button op product pagina"
|
103 |
|
104 |
-
#: ../yith-woocompare-options.php:
|
105 |
msgid "Say if you want to show the button in the single product page."
|
106 |
msgstr "Selecteer wanneer je een button op de product pagina wilt tonen."
|
107 |
|
108 |
-
#: ../yith-woocompare-options.php:
|
109 |
msgid "Show button in products list"
|
110 |
msgstr "Toon button op producten overzicht"
|
111 |
|
112 |
-
#: ../yith-woocompare-options.php:
|
113 |
msgid "Say if you want to show the button in the products list."
|
114 |
-
msgstr ""
|
115 |
-
"Selecteer wanneer een button op de productenoverzichts pagina wilt tonen."
|
116 |
|
117 |
-
#: ../yith-woocompare-options.php:
|
118 |
msgid "Open automatically lightbox"
|
119 |
msgstr "Open automatisch in lightbox"
|
120 |
|
121 |
-
#: ../yith-woocompare-options.php:
|
122 |
msgid "Open link after click into \"Compare\" button\"."
|
123 |
msgstr "Open de link direct na aanklikken van \"Vergelijk\" button\"."
|
124 |
|
125 |
-
#: ../yith-woocompare-options.php:
|
126 |
msgid "Table Settings"
|
127 |
msgstr "Tabel instellingen"
|
128 |
|
129 |
-
#: ../yith-woocompare-options.php:
|
130 |
msgid "Fields to show"
|
131 |
msgstr "Velden tonen"
|
132 |
|
133 |
-
#: ../yith-woocompare-options.php:
|
134 |
-
#: ../yith-woocompare-options.php:
|
135 |
-
|
136 |
-
"Select the fields to show in the comparison table and order them by "
|
137 |
-
"
|
138 |
-
msgstr ""
|
139 |
-
"Selecteer de velden die je in de vergelijkings tabel wilt tonen. Sleep ze "
|
140 |
-
"met je muis in de gewenste volgorde."
|
141 |
|
142 |
-
#: ../yith-woocompare-options.php:
|
143 |
msgid "Repeat \"Price\" field at the end of the table"
|
144 |
msgstr "Toon \"Prijs\" veld aan het einde van de tabel"
|
145 |
|
146 |
-
#: ../yith-woocompare-options.php:
|
147 |
msgid "Repeat \"Add to cart\" field at the end of the table"
|
148 |
msgstr "Toon \"Bestel\" veld aan het einde van de tabel"
|
149 |
|
150 |
-
#: ../yith-woocompare-options.php:
|
151 |
msgid "Image size"
|
152 |
msgstr "Afbeelding formaat"
|
153 |
|
154 |
-
#: ../yith-woocompare-options.php:
|
155 |
msgid "Set the size for the images"
|
156 |
msgstr "Stel afbeeldings formaat in "
|
157 |
|
@@ -179,62 +169,64 @@ msgstr "Een YITH Woocommerce Vergelijk Widget"
|
|
179 |
msgid "Clear all"
|
180 |
msgstr "Wis alles"
|
181 |
|
182 |
-
#: ../yit-common/yith-panel.php:
|
183 |
msgid "Select a date"
|
184 |
msgstr "Selecteer een datum"
|
185 |
|
186 |
-
#: ../yit-common/yith-panel.php:
|
187 |
msgid "Hours"
|
188 |
msgstr "Uren"
|
189 |
|
190 |
-
#: ../yit-common/yith-panel.php:
|
|
|
191 |
msgid "Minutes"
|
192 |
msgstr "Minuten"
|
193 |
|
194 |
-
#: ../yit-common/yith-panel.php:
|
195 |
msgid "Upload"
|
196 |
msgstr "Upload"
|
197 |
|
198 |
-
#: ../yit-common/yith-panel.php:
|
199 |
msgid "px"
|
200 |
msgstr "px"
|
201 |
|
202 |
-
#: ../yit-common/yith-panel.php:
|
203 |
msgid "em"
|
204 |
msgstr "em"
|
205 |
|
206 |
-
#: ../yit-common/yith-panel.php:
|
207 |
msgid "pt"
|
208 |
msgstr "pt"
|
209 |
|
210 |
-
#: ../yit-common/yith-panel.php:
|
211 |
msgid "rem"
|
212 |
msgstr "rem"
|
213 |
|
214 |
-
#: ../yit-common/yith-panel.php:
|
215 |
msgid "Select a font family"
|
216 |
msgstr "Kies een font type"
|
217 |
|
218 |
-
#: ../yit-common/yith-panel.php:
|
219 |
msgid "Regular"
|
220 |
msgstr "Normaal"
|
221 |
|
222 |
-
#: ../yit-common/yith-panel.php:
|
223 |
msgid "Bold"
|
224 |
msgstr "Vet"
|
225 |
|
226 |
-
#: ../yit-common/yith-panel.php:
|
227 |
msgid "Extra bold"
|
228 |
msgstr "Extra vet"
|
229 |
|
230 |
-
#: ../yit-common/yith-panel.php:
|
231 |
msgid "Italic"
|
232 |
msgstr "Cursief"
|
233 |
|
234 |
-
#: ../yit-common/yith-panel.php:
|
235 |
msgid "Italic bold"
|
236 |
msgstr "Cursief vet"
|
237 |
|
238 |
-
#: ../yit-common/yith-panel.php:
|
239 |
msgid "Click to preview"
|
240 |
msgstr "Klik voor voorvertoning"
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
+
"POT-Creation-Date: 2013-06-19 18:25+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-08-26 15:18+0100\n"
|
6 |
"Last-Translator: Frans Pronk <beheer@ifra.nl>\n"
|
7 |
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
8 |
"Language: English\n"
|
14 |
"X-Poedit-Basepath: ./\n"
|
15 |
"X-Poedit-SearchPath-0: ..\n"
|
16 |
|
17 |
+
#: ../class.yith-woocompare-admin.php:118
|
18 |
msgid "Products Compare"
|
19 |
msgstr "Product vergelijk"
|
20 |
|
21 |
+
#: ../class.yith-woocompare-admin.php:132
|
22 |
+
#: ../yith-woocompare-options.php:15
|
23 |
msgid "General Settings"
|
24 |
msgstr "Algemene instellingen"
|
25 |
|
26 |
+
#: ../class.yith-woocompare-frontend.php:133
|
27 |
msgid "Added"
|
28 |
msgstr "Toegevoegd"
|
29 |
|
30 |
+
#: ../class.yith-woocompare-frontend.php:134
|
31 |
+
#: ../templates/compare.php:47
|
32 |
msgid "Product Comparison"
|
33 |
msgstr "Product vergelijk"
|
34 |
|
35 |
+
#: ../class.yith-woocompare-frontend.php:238
|
36 |
msgid "In stock"
|
37 |
msgstr "Op voorraad"
|
38 |
|
39 |
+
#: ../class.yith-woocompare-frontend.php:314
|
40 |
#: ../widgets/class.yith-woocompare-widget.php:38
|
41 |
msgid "Compare"
|
42 |
msgstr "Vergelijk"
|
43 |
|
44 |
+
#: ../class.yith-woocompare-frontend.php:467
|
45 |
msgid "No products to compare"
|
46 |
msgstr "Geen producten om te vergelijken"
|
47 |
|
48 |
+
#: ../class.yith-woocompare-frontend.php:476
|
49 |
+
#: ../templates/compare.php:102
|
50 |
msgid "Remove"
|
51 |
msgstr "Verwijder"
|
52 |
|
53 |
#: ../class.yith-woocompare-helper.php:38
|
|
|
|
|
|
|
|
|
54 |
#: ../widgets/class.yith-woocompare-widget.php:55
|
55 |
msgid "Title"
|
56 |
msgstr "Titel"
|
57 |
|
58 |
+
#: ../class.yith-woocompare-helper.php:39
|
59 |
+
msgid "Image"
|
60 |
+
msgstr "Afbeelding"
|
61 |
+
|
62 |
#: ../class.yith-woocompare-helper.php:40
|
63 |
+
msgid "Description"
|
64 |
+
msgstr "Omschrijving"
|
65 |
+
|
66 |
+
#: ../class.yith-woocompare-helper.php:41
|
67 |
msgid "Price"
|
68 |
msgstr "Prijs"
|
69 |
|
70 |
+
#: ../class.yith-woocompare-helper.php:42
|
71 |
msgid "Add to cart"
|
72 |
msgstr "Bestellen"
|
73 |
|
|
|
|
|
|
|
|
|
74 |
#: ../class.yith-woocompare-helper.php:43
|
75 |
msgid "Availability"
|
76 |
msgstr "Beschikbaarheid"
|
92 |
msgstr "Button"
|
93 |
|
94 |
#: ../yith-woocompare-options.php:35
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
msgid "Show button in single product page"
|
96 |
msgstr "Toon button op product pagina"
|
97 |
|
98 |
+
#: ../yith-woocompare-options.php:36
|
99 |
msgid "Say if you want to show the button in the single product page."
|
100 |
msgstr "Selecteer wanneer je een button op de product pagina wilt tonen."
|
101 |
|
102 |
+
#: ../yith-woocompare-options.php:44
|
103 |
msgid "Show button in products list"
|
104 |
msgstr "Toon button op producten overzicht"
|
105 |
|
106 |
+
#: ../yith-woocompare-options.php:45
|
107 |
msgid "Say if you want to show the button in the products list."
|
108 |
+
msgstr "Selecteer wanneer een button op de productenoverzichts pagina wilt tonen."
|
|
|
109 |
|
110 |
+
#: ../yith-woocompare-options.php:53
|
111 |
msgid "Open automatically lightbox"
|
112 |
msgstr "Open automatisch in lightbox"
|
113 |
|
114 |
+
#: ../yith-woocompare-options.php:54
|
115 |
msgid "Open link after click into \"Compare\" button\"."
|
116 |
msgstr "Open de link direct na aanklikken van \"Vergelijk\" button\"."
|
117 |
|
118 |
+
#: ../yith-woocompare-options.php:66
|
119 |
msgid "Table Settings"
|
120 |
msgstr "Tabel instellingen"
|
121 |
|
122 |
+
#: ../yith-woocompare-options.php:73
|
123 |
msgid "Fields to show"
|
124 |
msgstr "Velden tonen"
|
125 |
|
126 |
+
#: ../yith-woocompare-options.php:74
|
127 |
+
#: ../yith-woocompare-options.php:83
|
128 |
+
#: ../yith-woocompare-options.php:92
|
129 |
+
msgid "Select the fields to show in the comparison table and order them by drag&drop (are included also the woocommerce attributes)"
|
130 |
+
msgstr "Selecteer de velden die je in de vergelijkings tabel wilt tonen. Sleep ze met je muis in de gewenste volgorde."
|
|
|
|
|
|
|
131 |
|
132 |
+
#: ../yith-woocompare-options.php:82
|
133 |
msgid "Repeat \"Price\" field at the end of the table"
|
134 |
msgstr "Toon \"Prijs\" veld aan het einde van de tabel"
|
135 |
|
136 |
+
#: ../yith-woocompare-options.php:91
|
137 |
msgid "Repeat \"Add to cart\" field at the end of the table"
|
138 |
msgstr "Toon \"Bestel\" veld aan het einde van de tabel"
|
139 |
|
140 |
+
#: ../yith-woocompare-options.php:100
|
141 |
msgid "Image size"
|
142 |
msgstr "Afbeelding formaat"
|
143 |
|
144 |
+
#: ../yith-woocompare-options.php:101
|
145 |
msgid "Set the size for the images"
|
146 |
msgstr "Stel afbeeldings formaat in "
|
147 |
|
169 |
msgid "Clear all"
|
170 |
msgstr "Wis alles"
|
171 |
|
172 |
+
#: ../yit-common/yith-panel.php:396
|
173 |
msgid "Select a date"
|
174 |
msgstr "Selecteer een datum"
|
175 |
|
176 |
+
#: ../yit-common/yith-panel.php:397
|
177 |
msgid "Hours"
|
178 |
msgstr "Uren"
|
179 |
|
180 |
+
#: ../yit-common/yith-panel.php:398
|
181 |
+
#: ../yit-common/yith-panel.php:399
|
182 |
msgid "Minutes"
|
183 |
msgstr "Minuten"
|
184 |
|
185 |
+
#: ../yit-common/yith-panel.php:407
|
186 |
msgid "Upload"
|
187 |
msgstr "Upload"
|
188 |
|
189 |
+
#: ../yit-common/yith-panel.php:434
|
190 |
msgid "px"
|
191 |
msgstr "px"
|
192 |
|
193 |
+
#: ../yit-common/yith-panel.php:435
|
194 |
msgid "em"
|
195 |
msgstr "em"
|
196 |
|
197 |
+
#: ../yit-common/yith-panel.php:436
|
198 |
msgid "pt"
|
199 |
msgstr "pt"
|
200 |
|
201 |
+
#: ../yit-common/yith-panel.php:437
|
202 |
msgid "rem"
|
203 |
msgstr "rem"
|
204 |
|
205 |
+
#: ../yit-common/yith-panel.php:447
|
206 |
msgid "Select a font family"
|
207 |
msgstr "Kies een font type"
|
208 |
|
209 |
+
#: ../yit-common/yith-panel.php:455
|
210 |
msgid "Regular"
|
211 |
msgstr "Normaal"
|
212 |
|
213 |
+
#: ../yit-common/yith-panel.php:456
|
214 |
msgid "Bold"
|
215 |
msgstr "Vet"
|
216 |
|
217 |
+
#: ../yit-common/yith-panel.php:457
|
218 |
msgid "Extra bold"
|
219 |
msgstr "Extra vet"
|
220 |
|
221 |
+
#: ../yit-common/yith-panel.php:458
|
222 |
msgid "Italic"
|
223 |
msgstr "Cursief"
|
224 |
|
225 |
+
#: ../yit-common/yith-panel.php:459
|
226 |
msgid "Italic bold"
|
227 |
msgstr "Cursief vet"
|
228 |
|
229 |
+
#: ../yit-common/yith-panel.php:471
|
230 |
msgid "Click to preview"
|
231 |
msgstr "Klik voor voorvertoning"
|
232 |
+
|
languages/yit-pt_BR.mo
ADDED
Binary file
|
languages/yit-pt_BR.po
ADDED
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
+
"POT-Creation-Date: 2013-09-04 15:57+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-09-20 11:54-0300\n"
|
6 |
+
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
|
7 |
+
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
8 |
+
"Language: English\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.5\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e;_x\n"
|
14 |
+
"X-Poedit-Basepath: ./\n"
|
15 |
+
"X-Poedit-SearchPath-0: ..\n"
|
16 |
+
|
17 |
+
#: ../class.yith-woocompare-admin.php:129
|
18 |
+
msgid "Products Compare"
|
19 |
+
msgstr "Comparar Produtos"
|
20 |
+
|
21 |
+
#: ../class.yith-woocompare-admin.php:143 ../yith-woocompare-options.php:15
|
22 |
+
msgid "General Settings"
|
23 |
+
msgstr "Opções Gerais"
|
24 |
+
|
25 |
+
#: ../class.yith-woocompare-frontend.php:142
|
26 |
+
msgid "Added"
|
27 |
+
msgstr "Adicionado"
|
28 |
+
|
29 |
+
#: ../class.yith-woocompare-frontend.php:143 ../templates/compare.php:47
|
30 |
+
msgid "Product Comparison"
|
31 |
+
msgstr "Comparação de Produtos"
|
32 |
+
|
33 |
+
#: ../class.yith-woocompare-frontend.php:247
|
34 |
+
msgid "In stock"
|
35 |
+
msgstr "No estoque"
|
36 |
+
|
37 |
+
#: ../class.yith-woocompare-frontend.php:330 ../yith-woocompare-options.php:38
|
38 |
+
#: ../widgets/class.yith-woocompare-widget.php:38
|
39 |
+
msgid "Compare"
|
40 |
+
msgstr "Comparar"
|
41 |
+
|
42 |
+
#: ../class.yith-woocompare-frontend.php:483
|
43 |
+
msgid "No products to compare"
|
44 |
+
msgstr "Não há produtos à comparar"
|
45 |
+
|
46 |
+
#: ../class.yith-woocompare-frontend.php:493 ../templates/compare.php:102
|
47 |
+
msgid "Remove"
|
48 |
+
msgstr "Remover"
|
49 |
+
|
50 |
+
#: ../class.yith-woocompare-helper.php:38
|
51 |
+
msgid "Image"
|
52 |
+
msgstr "Imagem"
|
53 |
+
|
54 |
+
#: ../class.yith-woocompare-helper.php:39
|
55 |
+
#: ../widgets/class.yith-woocompare-widget.php:55
|
56 |
+
msgid "Title"
|
57 |
+
msgstr "Título"
|
58 |
+
|
59 |
+
#: ../class.yith-woocompare-helper.php:40
|
60 |
+
msgid "Price"
|
61 |
+
msgstr "Preço"
|
62 |
+
|
63 |
+
#: ../class.yith-woocompare-helper.php:41
|
64 |
+
msgid "Add to cart"
|
65 |
+
msgstr "Adicionar ao carrinho"
|
66 |
+
|
67 |
+
#: ../class.yith-woocompare-helper.php:42
|
68 |
+
msgid "Description"
|
69 |
+
msgstr "Descrição"
|
70 |
+
|
71 |
+
#: ../class.yith-woocompare-helper.php:43
|
72 |
+
msgid "Availability"
|
73 |
+
msgstr "Disponibilidade"
|
74 |
+
|
75 |
+
#: ../yith-woocompare-options.php:22
|
76 |
+
msgid "Link or Button"
|
77 |
+
msgstr "Link ou Botão"
|
78 |
+
|
79 |
+
#: ../yith-woocompare-options.php:23
|
80 |
+
msgid "Choose if you want to use a link or a button for the action button."
|
81 |
+
msgstr "Seleciona se deseja usar link ou botão para a ação do botão"
|
82 |
+
|
83 |
+
#: ../yith-woocompare-options.php:29
|
84 |
+
msgid "Link"
|
85 |
+
msgstr "Link"
|
86 |
+
|
87 |
+
#: ../yith-woocompare-options.php:30
|
88 |
+
msgid "Button"
|
89 |
+
msgstr "Botão"
|
90 |
+
|
91 |
+
#: ../yith-woocompare-options.php:35
|
92 |
+
msgid "Link/Button text"
|
93 |
+
msgstr "Texto Link/Botão"
|
94 |
+
|
95 |
+
#: ../yith-woocompare-options.php:36
|
96 |
+
msgid "Type the text to use for the button or the link of the compare."
|
97 |
+
msgstr "Insira o texto usado no botão de comparação."
|
98 |
+
|
99 |
+
#: ../yith-woocompare-options.php:43
|
100 |
+
msgid "Show button in single product page"
|
101 |
+
msgstr "Mostrar na página de produto único"
|
102 |
+
|
103 |
+
#: ../yith-woocompare-options.php:44
|
104 |
+
msgid "Say if you want to show the button in the single product page."
|
105 |
+
msgstr "Marque para mostrar na página de produto único"
|
106 |
+
|
107 |
+
#: ../yith-woocompare-options.php:52
|
108 |
+
msgid "Show button in products list"
|
109 |
+
msgstr "Mostrar na lista de produtos"
|
110 |
+
|
111 |
+
#: ../yith-woocompare-options.php:53
|
112 |
+
msgid "Say if you want to show the button in the products list."
|
113 |
+
msgstr "Marque para mostrar na lista de produtos"
|
114 |
+
|
115 |
+
#: ../yith-woocompare-options.php:61
|
116 |
+
msgid "Open automatically lightbox"
|
117 |
+
msgstr "Abrir lightbox automaticamente"
|
118 |
+
|
119 |
+
#: ../yith-woocompare-options.php:62
|
120 |
+
msgid "Open link after click into \"Compare\" button\"."
|
121 |
+
msgstr "Abre link após clicar no botão de comparação."
|
122 |
+
|
123 |
+
#: ../yith-woocompare-options.php:74
|
124 |
+
msgid "Table Settings"
|
125 |
+
msgstr "Opções de tabela"
|
126 |
+
|
127 |
+
#: ../yith-woocompare-options.php:81
|
128 |
+
msgid "Fields to show"
|
129 |
+
msgstr "Campos a mostrar"
|
130 |
+
|
131 |
+
#: ../yith-woocompare-options.php:82 ../yith-woocompare-options.php:91
|
132 |
+
#: ../yith-woocompare-options.php:100
|
133 |
+
msgid ""
|
134 |
+
"Select the fields to show in the comparison table and order them by "
|
135 |
+
"drag&drop (are included also the woocommerce attributes)"
|
136 |
+
msgstr ""
|
137 |
+
"Selecione os campos a mostrar na tabela de comparação e organize-os "
|
138 |
+
"arrastando e soltando (atributos do Woocommerce também são incluídos)"
|
139 |
+
|
140 |
+
#: ../yith-woocompare-options.php:90
|
141 |
+
msgid "Repeat \"Price\" field at the end of the table"
|
142 |
+
msgstr "Repetir campo \"Preço\" no final da tabela"
|
143 |
+
|
144 |
+
#: ../yith-woocompare-options.php:99
|
145 |
+
msgid "Repeat \"Add to cart\" field at the end of the table"
|
146 |
+
msgstr "Repetir campo \"Adicionar ao carrinho\" no final da tabela"
|
147 |
+
|
148 |
+
#: ../yith-woocompare-options.php:108
|
149 |
+
msgid "Image size"
|
150 |
+
msgstr "Tamanho da imagem"
|
151 |
+
|
152 |
+
#: ../yith-woocompare-options.php:109
|
153 |
+
msgid "Set the size for the images"
|
154 |
+
msgstr "Especifique um tamanho para as imagens"
|
155 |
+
|
156 |
+
#: ../templates/compare.php:68
|
157 |
+
msgid "Compare products"
|
158 |
+
msgstr "Comparar produtos"
|
159 |
+
|
160 |
+
#: ../templates/compare.php:69
|
161 |
+
msgid "Close window [X]"
|
162 |
+
msgstr "Fechar janela [X]"
|
163 |
+
|
164 |
+
#: ../templates/compare.php:94
|
165 |
+
msgid "No products added in the compare table."
|
166 |
+
msgstr "Não foram adicionados produtos na tabela de comparação"
|
167 |
+
|
168 |
+
#: ../widgets/class.yith-woocompare-widget.php:21
|
169 |
+
msgid "The widget show the list of products added in the compare table."
|
170 |
+
msgstr ""
|
171 |
+
"O widget mostra a lista de produtos adicionados na tabela de comparação."
|
172 |
+
|
173 |
+
#: ../widgets/class.yith-woocompare-widget.php:22
|
174 |
+
msgid "YITH Woocommerce Compare Widget"
|
175 |
+
msgstr "Widget de Comparação"
|
176 |
+
|
177 |
+
#: ../widgets/class.yith-woocompare-widget.php:37
|
178 |
+
msgid "Clear all"
|
179 |
+
msgstr "Limpar tudo"
|
180 |
+
|
181 |
+
#: ../yit-common/yith-panel.php:406
|
182 |
+
msgid "Select a date"
|
183 |
+
msgstr "Selecione uma data"
|
184 |
+
|
185 |
+
#: ../yit-common/yith-panel.php:407
|
186 |
+
msgid "Hours"
|
187 |
+
msgstr "Horas"
|
188 |
+
|
189 |
+
#: ../yit-common/yith-panel.php:408 ../yit-common/yith-panel.php:409
|
190 |
+
msgid "Minutes"
|
191 |
+
msgstr "Minutos"
|
192 |
+
|
193 |
+
#: ../yit-common/yith-panel.php:417
|
194 |
+
msgid "Upload"
|
195 |
+
msgstr "Enviar"
|
196 |
+
|
197 |
+
#: ../yit-common/yith-panel.php:444
|
198 |
+
msgid "px"
|
199 |
+
msgstr "px"
|
200 |
+
|
201 |
+
#: ../yit-common/yith-panel.php:445
|
202 |
+
msgid "em"
|
203 |
+
msgstr "em"
|
204 |
+
|
205 |
+
#: ../yit-common/yith-panel.php:446
|
206 |
+
msgid "pt"
|
207 |
+
msgstr "pt"
|
208 |
+
|
209 |
+
#: ../yit-common/yith-panel.php:447
|
210 |
+
msgid "rem"
|
211 |
+
msgstr "rem"
|
212 |
+
|
213 |
+
#: ../yit-common/yith-panel.php:457
|
214 |
+
msgid "Select a font family"
|
215 |
+
msgstr "Seleciona uma família de fontes"
|
216 |
+
|
217 |
+
#: ../yit-common/yith-panel.php:465
|
218 |
+
msgid "Regular"
|
219 |
+
msgstr "Normal"
|
220 |
+
|
221 |
+
#: ../yit-common/yith-panel.php:466
|
222 |
+
msgid "Bold"
|
223 |
+
msgstr "Negrito"
|
224 |
+
|
225 |
+
#: ../yit-common/yith-panel.php:467
|
226 |
+
msgid "Extra bold"
|
227 |
+
msgstr "Extra-negrito"
|
228 |
+
|
229 |
+
#: ../yit-common/yith-panel.php:468
|
230 |
+
msgid "Italic"
|
231 |
+
msgstr "Itálico"
|
232 |
+
|
233 |
+
#: ../yit-common/yith-panel.php:469
|
234 |
+
msgid "Italic bold"
|
235 |
+
msgstr "Negrito itálico"
|
236 |
+
|
237 |
+
#: ../yit-common/yith-panel.php:481
|
238 |
+
msgid "Click to preview"
|
239 |
+
msgstr "Clique para pré-visualizar"
|
templates/compare.php
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
global $product;
|
11 |
|
12 |
// remove the style of woocommerce
|
13 |
-
if
|
14 |
|
15 |
$is_iframe = (bool)( isset( $_REQUEST['iframe'] ) && $_REQUEST['iframe'] );
|
16 |
|
@@ -53,7 +53,7 @@ foreach( $products as $product ) $widths[] = '{ "sWidth": "205px", resizeable:tr
|
|
53 |
<link rel="stylesheet" href="<?php echo YITH_WOOCOMPARE_URL ?>assets/css/jquery.dataTables.css"/>
|
54 |
|
55 |
<?php wp_head() ?>
|
56 |
-
|
57 |
<style type="text/css">
|
58 |
body.loading {
|
59 |
background: url("<?php echo YITH_WOOCOMPARE_URL ?>assets/images/colorbox/loading.gif") no-repeat scroll center center transparent;
|
@@ -64,56 +64,56 @@ foreach( $products as $product ) $widths[] = '{ "sWidth": "205px", resizeable:tr
|
|
64 |
<!-- START BODY -->
|
65 |
<body <?php body_class('woocommerce') ?>>
|
66 |
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
<td></td>
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
|
91 |
-
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
|
107 |
-
|
108 |
|
109 |
-
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
|
116 |
-
|
117 |
<td class="<?php echo $product_class; ?>"><?php
|
118 |
switch( $field ) {
|
119 |
|
@@ -131,48 +131,50 @@ foreach( $products as $product ) $widths[] = '{ "sWidth": "205px", resizeable:tr
|
|
131 |
}
|
132 |
?>
|
133 |
</td>
|
134 |
-
|
135 |
-
|
136 |
-
</tr>
|
137 |
|
138 |
-
|
139 |
|
140 |
-
|
141 |
-
<tr class="price repeated">
|
142 |
-
<th><?php echo $fields['price'] ?></th>
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
|
148 |
-
|
149 |
-
|
|
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
<th><?php echo $fields['add-to-cart'] ?></th>
|
154 |
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
|
159 |
-
|
160 |
-
|
|
|
161 |
|
|
|
162 |
<?php endif; ?>
|
163 |
|
164 |
-
|
165 |
-
</table>
|
166 |
|
167 |
-
|
|
|
168 |
|
169 |
-
|
|
|
170 |
|
171 |
-
|
172 |
-
|
|
|
|
|
173 |
|
174 |
-
|
175 |
-
|
|
|
176 |
oTable = $('table.compare-list').dataTable( {
|
177 |
"sScrollX": "100%",
|
178 |
//"sScrollXInner": "150%",
|
@@ -184,37 +186,41 @@ foreach( $products as $product ) $widths[] = '{ "sWidth": "205px", resizeable:tr
|
|
184 |
"bFilter": false,
|
185 |
"bAutoWidth": false
|
186 |
} );
|
|
|
187 |
new FixedColumns( oTable );
|
188 |
$('<table class="compare-list" />').insertAfter( $('h1') ).hide();
|
189 |
-
}
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
});
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
// close window
|
205 |
-
$(document).on( 'click', 'a.close', function(e){
|
206 |
-
e.preventDefault();
|
207 |
-
window.close();
|
208 |
-
});
|
209 |
-
|
210 |
-
$(window).on( 'yith_woocompare_product_removed', function(){
|
211 |
-
oTable.fnDestroy(true);
|
212 |
-
$('body').trigger('yith_woocompare_render_table');
|
213 |
-
});
|
214 |
|
|
|
|
|
|
|
|
|
215 |
});
|
216 |
|
217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
</body>
|
220 |
</html>
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
global $product;
|
11 |
|
12 |
// remove the style of woocommerce
|
13 |
+
if( defined('WOOCOMMERCE_USE_CSS') && WOOCOMMERCE_USE_CSS ) wp_dequeue_style('woocommerce_frontend_styles');
|
14 |
|
15 |
$is_iframe = (bool)( isset( $_REQUEST['iframe'] ) && $_REQUEST['iframe'] );
|
16 |
|
53 |
<link rel="stylesheet" href="<?php echo YITH_WOOCOMPARE_URL ?>assets/css/jquery.dataTables.css"/>
|
54 |
|
55 |
<?php wp_head() ?>
|
56 |
+
|
57 |
<style type="text/css">
|
58 |
body.loading {
|
59 |
background: url("<?php echo YITH_WOOCOMPARE_URL ?>assets/images/colorbox/loading.gif") no-repeat scroll center center transparent;
|
64 |
<!-- START BODY -->
|
65 |
<body <?php body_class('woocommerce') ?>>
|
66 |
|
67 |
+
<h1>
|
68 |
+
<?php echo get_option( 'yith_woocompare_table_text' ) ?>
|
69 |
+
<?php if ( ! $is_iframe ) : ?><a class="close" href="#"><?php _e( 'Close window [X]', 'yit' ) ?></a><?php endif; ?>
|
70 |
+
</h1>
|
71 |
|
72 |
+
<table class="compare-list" cellpadding="0" cellspacing="0"<?php if ( empty( $products ) ) echo ' style="width:100%"' ?>>
|
73 |
+
<thead>
|
74 |
+
<tr>
|
75 |
+
<th> </th>
|
76 |
+
<?php foreach( $products as $i => $product ) : ?>
|
77 |
<td></td>
|
78 |
+
<?php endforeach; ?>
|
79 |
+
</tr>
|
80 |
+
</thead>
|
81 |
+
<tfoot>
|
82 |
+
<tr>
|
83 |
+
<th> </th>
|
84 |
+
<?php foreach( $products as $i => $product ) : ?>
|
85 |
+
<td></td>
|
86 |
+
<?php endforeach; ?>
|
87 |
+
</tr>
|
88 |
+
</tfoot>
|
89 |
+
<tbody>
|
90 |
|
91 |
+
<?php if ( empty( $products ) ) : ?>
|
92 |
|
93 |
+
<tr class="no-products">
|
94 |
+
<td><?php _e( 'No products added in the compare table.', 'yit' ) ?></td>
|
95 |
+
</tr>
|
96 |
|
97 |
+
<?php else : ?>
|
98 |
+
<tr class="remove">
|
99 |
+
<th> </th>
|
100 |
+
<?php foreach( $products as $i => $product ) : $product_class = ( $i % 2 == 0 ? 'odd' : 'even' ) . ' product_' . $product->id ?>
|
101 |
+
<td class="<?php echo $product_class; ?>">
|
102 |
+
<a href="<?php echo add_query_arg( 'redirect', 'view', $this->remove_product_url( $product->id ) ) ?>" data-product_id="<?php echo $product->id; ?>"><?php _e( 'Remove', 'yit' ) ?> <span class="remove">x</span></a>
|
103 |
+
</td>
|
104 |
+
<?php endforeach ?>
|
105 |
+
</tr>
|
106 |
|
107 |
+
<?php foreach ( $fields as $field => $name ) : ?>
|
108 |
|
109 |
+
<tr class="<?php echo $field ?>">
|
110 |
|
111 |
+
<th>
|
112 |
+
<?php echo $name ?>
|
113 |
+
<?php if ( $field == 'image' ) echo '<div class="fixed-th"></div>'; ?>
|
114 |
+
</th>
|
115 |
|
116 |
+
<?php foreach( $products as $i => $product ) : $product_class = ( $i % 2 == 0 ? 'odd' : 'even' ) . ' product_' . $product->id ?>
|
117 |
<td class="<?php echo $product_class; ?>"><?php
|
118 |
switch( $field ) {
|
119 |
|
131 |
}
|
132 |
?>
|
133 |
</td>
|
134 |
+
<?php endforeach ?>
|
|
|
|
|
135 |
|
136 |
+
</tr>
|
137 |
|
138 |
+
<?php endforeach; ?>
|
|
|
|
|
139 |
|
140 |
+
<?php if ( $repeat_price == 'yes' && isset( $fields['price'] ) ) : ?>
|
141 |
+
<tr class="price repeated">
|
142 |
+
<th><?php echo $fields['price'] ?></th>
|
143 |
|
144 |
+
<?php foreach( $products as $i => $product ) : $product_class = ( $i % 2 == 0 ? 'odd' : 'even' ) . ' product_' . $product->id ?>
|
145 |
+
<td class="<?php echo $product_class ?>"><?php echo $product->fields['price'] ?></td>
|
146 |
+
<?php endforeach; ?>
|
147 |
|
148 |
+
</tr>
|
149 |
+
<?php endif; ?>
|
|
|
150 |
|
151 |
+
<?php if ( $repeat_add_to_cart == 'yes' && isset( $fields['add-to-cart'] ) ) : ?>
|
152 |
+
<tr class="add-to-cart repeated">
|
153 |
+
<th><?php echo $fields['add-to-cart'] ?></th>
|
154 |
|
155 |
+
<?php foreach( $products as $i => $product ) : $product_class = ( $i % 2 == 0 ? 'odd' : 'even' ) . ' product_' . $product->id ?>
|
156 |
+
<td class="<?php echo $product_class ?>"><?php woocommerce_get_template( 'loop/add-to-cart.php' ); ?></td>
|
157 |
+
<?php endforeach; ?>
|
158 |
|
159 |
+
</tr>
|
160 |
<?php endif; ?>
|
161 |
|
162 |
+
<?php endif; ?>
|
|
|
163 |
|
164 |
+
</tbody>
|
165 |
+
</table>
|
166 |
|
167 |
+
<?php if( wp_script_is( 'responsive-theme', 'enqueued' ) ) wp_dequeue_script( 'responsive-theme' ) ?><?php if( wp_script_is( 'responsive-theme', 'enqueued' ) ) wp_dequeue_script( 'responsive-theme' ) ?>
|
168 |
+
<?php do_action('wp_print_footer_scripts'); ?>
|
169 |
|
170 |
+
<script type="text/javascript">
|
171 |
+
|
172 |
+
jQuery(document).ready(function($){
|
173 |
+
<?php if ( $is_iframe ) : ?>$('a').attr('target', '_parent');<?php endif; ?>
|
174 |
|
175 |
+
var oTable;
|
176 |
+
$('body').on( 'yith_woocompare_render_table', function(){
|
177 |
+
if( $( window ).width() > 767 ) {
|
178 |
oTable = $('table.compare-list').dataTable( {
|
179 |
"sScrollX": "100%",
|
180 |
//"sScrollXInner": "150%",
|
186 |
"bFilter": false,
|
187 |
"bAutoWidth": false
|
188 |
} );
|
189 |
+
|
190 |
new FixedColumns( oTable );
|
191 |
$('<table class="compare-list" />').insertAfter( $('h1') ).hide();
|
192 |
+
}
|
193 |
+
}).trigger('yith_woocompare_render_table');
|
194 |
+
|
195 |
+
// add to cart
|
196 |
+
var button_clicked;
|
197 |
+
$(document).on('click', 'a.add_to_cart_button', function(){
|
198 |
+
button_clicked = $(this);
|
199 |
+
button_clicked.block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url + ') no-repeat center', backgroundSize: '16px 16px', opacity: 0.6}});
|
200 |
+
});
|
201 |
+
|
202 |
+
// remove add to cart button after added
|
203 |
+
$('body').on('added_to_cart', function(){
|
204 |
+
button_clicked.hide();
|
205 |
+
<?php if ( $is_iframe ) : ?>$('a').attr('target', '_parent');<?php endif; ?>
|
206 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
|
208 |
+
// close window
|
209 |
+
$(document).on( 'click', 'a.close', function(e){
|
210 |
+
e.preventDefault();
|
211 |
+
window.close();
|
212 |
});
|
213 |
|
214 |
+
$(window).on( 'yith_woocompare_product_removed', function(){
|
215 |
+
if( $( window ).width() > 767 ) {
|
216 |
+
oTable.fnDestroy(true);
|
217 |
+
}
|
218 |
+
$('body').trigger('yith_woocompare_render_table');
|
219 |
+
});
|
220 |
+
|
221 |
+
});
|
222 |
+
|
223 |
+
</script>
|
224 |
|
225 |
</body>
|
226 |
</html>
|
widgets/class.yith-woocompare-widget.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
wpml-config.xml
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<admin-texts>
|
2 |
+
<key name="yith_woocompare_button_text">
|
3 |
+
<key name="yith_woocompare_table_text">
|
4 |
+
</admin-texts>
|
yith-woocompare-options.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
@@ -77,6 +77,14 @@ $options = array(
|
|
77 |
'id' => 'yith_woocompare_general'
|
78 |
),
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
array(
|
81 |
'name' => __( 'Fields to show', 'yit' ),
|
82 |
'desc' => __( 'Select the fields to show in the comparison table and order them by drag&drop (are included also the woocommerce attributes)', 'yit' ),
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.0.5
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
77 |
'id' => 'yith_woocompare_general'
|
78 |
),
|
79 |
|
80 |
+
array(
|
81 |
+
'name' => __( 'Table title', 'yit' ),
|
82 |
+
'desc' => __( 'Type the text to use for the table title.', 'yit' ),
|
83 |
+
'id' => 'yith_woocompare_table_text',
|
84 |
+
'std' => __( 'Compare products', 'yit' ),
|
85 |
+
'type' => 'text'
|
86 |
+
),
|
87 |
+
|
88 |
array(
|
89 |
'name' => __( 'Fields to show', 'yit' ),
|
90 |
'desc' => __( 'Select the fields to show in the comparison table and order them by drag&drop (are included also the woocommerce attributes)', 'yit' ),
|