Version Description
- Improved: Site/user locale detection
- Improved: Textdomain fallback
- Translations: Included POT & Updated Dutch
- Tested up to WooCommerce 4.0 & WP5.4
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce Menu Cart |
Version | 2.7.8 |
Comparing to | |
See all releases |
Code changes from version 2.7.7 to 2.7.8
- README.md +51 -0
- images/wpo-helper.png +0 -0
- includes/wpmenucart-settings.php +3 -3
- languages/wp-menu-cart-nl_NL.mo +0 -0
- languages/wp-menu-cart-nl_NL.po +179 -246
- languages/wp-menu-cart-nl_NL_formal.mo +0 -0
- languages/wp-menu-cart-nl_NL_formal.po +303 -0
- languages/wp-menu-cart.pot +253 -0
- readme.txt +315 -309
- wp-menu-cart.php +643 -618
README.md
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# WP Menu Cart
|
2 |
+
** Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop **
|
3 |
+
|
4 |
+
If you are not a developer, please use the [WP Menu Cart support forum](http://wordpress.org/support/plugin/wp-menu-cart) on WordPress.org.
|
5 |
+
|
6 |
+
## Support
|
7 |
+
This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core issues only. Support can take place in the appropriate channels:
|
8 |
+
|
9 |
+
* The [WP Menu Cart support forum](http://wordpress.org/support/plugin/wp-menu-cart) on WordPress.org.
|
10 |
+
* [WP Overnight Premium support](https://wpovernight.com/contact/) for customers who have purchased themes or plugins.
|
11 |
+
|
12 |
+
Support requests in issues on this repository will be closed on sight.
|
13 |
+
|
14 |
+
## Description
|
15 |
+
|
16 |
+
This plugin installs a shopping cart button in the navigation bar. The plugin takes less than a minute to setup,
|
17 |
+
and includes the following options:
|
18 |
+
|
19 |
+
* Display cart icon, or only items/prices.
|
20 |
+
* Display items only, price only, or both.
|
21 |
+
* Display always, or only when there are items in the cart.
|
22 |
+
* Float left, float right, or use your menu's default settings.
|
23 |
+
* Customize your own CSS
|
24 |
+
|
25 |
+
Finally, the cart automatically conforms to your site's styles, leaving you with no extra work.
|
26 |
+
|
27 |
+
Compatibility:
|
28 |
+
|
29 |
+
* WooCommerce
|
30 |
+
* Easy Digital Downloads
|
31 |
+
* Eshop
|
32 |
+
* WP-Ecommerce
|
33 |
+
* Jigoshop
|
34 |
+
|
35 |
+
Translations:
|
36 |
+
|
37 |
+
* Brazilian Portuguese
|
38 |
+
* Danish
|
39 |
+
* Dutch
|
40 |
+
* English
|
41 |
+
* French
|
42 |
+
* German
|
43 |
+
* Italian
|
44 |
+
* Polish
|
45 |
+
* Portuguese
|
46 |
+
* Russian
|
47 |
+
* Spanish[1]
|
48 |
+
* Swedish
|
49 |
+
* Persian
|
50 |
+
|
51 |
+
[1] WebHostingHub
|
images/wpo-helper.png
CHANGED
Binary file
|
includes/wpmenucart-settings.php
CHANGED
@@ -394,7 +394,7 @@ class WpMenuCart_Settings {
|
|
394 |
margin-top: 15px;
|
395 |
min-height: 90px;
|
396 |
position: relative;
|
397 |
-
padding-left:
|
398 |
}
|
399 |
.menucart-pro-ad-small {
|
400 |
position: absolute;
|
@@ -403,8 +403,8 @@ class WpMenuCart_Settings {
|
|
403 |
}
|
404 |
img.wpo-helper {
|
405 |
position: absolute;
|
406 |
-
|
407 |
-
left:
|
408 |
}
|
409 |
</style>
|
410 |
<div class="menucart-pro-ad menucart-pro-ad-small">
|
394 |
margin-top: 15px;
|
395 |
min-height: 90px;
|
396 |
position: relative;
|
397 |
+
padding-left: 120px;
|
398 |
}
|
399 |
.menucart-pro-ad-small {
|
400 |
position: absolute;
|
403 |
}
|
404 |
img.wpo-helper {
|
405 |
position: absolute;
|
406 |
+
bottom: 64px;
|
407 |
+
left: -10px;
|
408 |
}
|
409 |
</style>
|
410 |
<div class="menucart-pro-ad menucart-pro-ad-small">
|
languages/wp-menu-cart-nl_NL.mo
CHANGED
Binary file
|
languages/wp-menu-cart-nl_NL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Menu Cart\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
|
8 |
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
9 |
"Language: nl_NL\n"
|
@@ -14,337 +14,270 @@ msgstr ""
|
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
16 |
"_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"
|
17 |
-
"X-Poedit-Basepath:
|
18 |
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Generator: Poedit
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
-
#:
|
23 |
-
#: bundles/wp-menu-cart/wp-menu-cart.php:166
|
24 |
-
#: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:180
|
25 |
-
#: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:257
|
26 |
-
msgid "View your shopping cart"
|
27 |
-
msgstr "Bekijk uw winkelwagen"
|
28 |
-
|
29 |
-
#: wp-menu-cart-pro.php:181 wp-menu-cart.php:167
|
30 |
-
#: bundles/wp-menu-cart/wp-menu-cart.php:167
|
31 |
-
#: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:181
|
32 |
-
msgid "Start shopping"
|
33 |
-
msgstr "Naar de winkel"
|
34 |
-
|
35 |
-
#: wp-menu-cart-pro.php:182 wp-menu-cart.php:168
|
36 |
-
#: bundles/wp-menu-cart/wp-menu-cart.php:168
|
37 |
-
#: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:182
|
38 |
-
#, php-format
|
39 |
-
msgid "%d item"
|
40 |
-
msgid_plural "%d items"
|
41 |
-
msgstr[0] "%d artikel"
|
42 |
-
msgstr[1] "%d artikelen"
|
43 |
-
|
44 |
-
#: wp-menu-cart-pro.php:264 bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:264
|
45 |
-
msgid "your cart is currently empty"
|
46 |
-
msgstr "Uw winkelwagen is leeg"
|
47 |
-
|
48 |
-
#: wp-menu-cart-pro.php:301 wp-menu-cart.php:223
|
49 |
-
#: bundles/wp-menu-cart/wp-menu-cart.php:216
|
50 |
-
#: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:291
|
51 |
-
msgid "Menu Cart requires a shop plugin to be active"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: wp-menu-cart-pro.php:307 wp-menu-cart.php:229
|
55 |
-
msgid ""
|
56 |
-
"An old version of WooCommerce Menu Cart is currently activated, you need to "
|
57 |
-
"disable or uninstall it for WP Menu Cart to function properly"
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: wp-menu-cart-pro.php:313
|
61 |
-
msgid ""
|
62 |
-
"The free version of WP Menu Cart is currently activated, you need to disable "
|
63 |
-
"or uninstall it for WP Menu Cart Pro to function properly"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-eshop.php:27
|
67 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop-pro.php:49
|
68 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop.php:27
|
69 |
-
#: includes/wpmenucart-eshop-pro.php:55 includes/wpmenucart-eshop.php:33
|
70 |
#, php-format
|
71 |
msgid "%1$s%2$s"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#:
|
75 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop-pro.php:49
|
76 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop.php:27
|
77 |
-
#: includes/wpmenucart-eshop-pro.php:55 includes/wpmenucart-eshop.php:33
|
78 |
msgid "2"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#:
|
82 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:27
|
83 |
-
#: includes/wpmenucart-settings-pro.php:27 includes/wpmenucart-settings.php:27
|
84 |
msgid "Plugin settings"
|
85 |
-
msgstr ""
|
86 |
|
87 |
-
#:
|
88 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:34
|
89 |
-
#: includes/wpmenucart-settings-pro.php:34 includes/wpmenucart-settings.php:34
|
90 |
msgid "Select which e-commerce plugin you would like Menu Cart to work with"
|
91 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
92 |
|
93 |
-
#:
|
94 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:61
|
95 |
-
#: includes/wpmenucart-settings-pro.php:61 includes/wpmenucart-settings.php:49
|
96 |
msgid "Select the menu(s) in which you want to display the Menu Cart"
|
97 |
-
msgstr ""
|
98 |
|
99 |
-
#:
|
100 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:84
|
101 |
-
#: includes/wpmenucart-settings-pro.php:84 includes/wpmenucart-settings.php:74
|
102 |
msgid "Always display cart, even if it's empty"
|
103 |
-
msgstr ""
|
104 |
|
105 |
-
#:
|
106 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:96
|
107 |
-
#: includes/wpmenucart-settings-pro.php:96 includes/wpmenucart-settings.php:86
|
108 |
msgid "Display shopping cart icon."
|
109 |
-
msgstr ""
|
110 |
|
111 |
-
#:
|
112 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:108
|
113 |
-
#: includes/wpmenucart-settings-pro.php:108
|
114 |
-
#: includes/wpmenucart-settings.php:98
|
115 |
msgid "Display cart contents in menu fly-out."
|
116 |
-
msgstr ""
|
117 |
|
118 |
-
#:
|
119 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:120
|
120 |
-
#: includes/wpmenucart-settings-pro.php:120
|
121 |
-
#: includes/wpmenucart-settings.php:111
|
122 |
msgid "Set maximum number of products to display in fly-out"
|
123 |
-
msgstr ""
|
124 |
|
125 |
-
#:
|
126 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:145
|
127 |
-
#: includes/wpmenucart-settings-pro.php:145
|
128 |
-
#: includes/wpmenucart-settings.php:137
|
129 |
msgid "Choose a cart icon."
|
130 |
-
msgstr ""
|
131 |
|
132 |
-
#:
|
133 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:174
|
134 |
-
#: includes/wpmenucart-settings-pro.php:174
|
135 |
-
#: includes/wpmenucart-settings.php:166
|
136 |
msgid "What would you like to display in the menu?"
|
137 |
-
msgstr ""
|
138 |
|
139 |
-
#:
|
140 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:182
|
141 |
-
#: includes/wpmenucart-settings-pro.php:182
|
142 |
-
#: includes/wpmenucart-settings.php:174
|
143 |
msgid "Items Only."
|
144 |
-
msgstr ""
|
145 |
|
146 |
-
#:
|
147 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:183
|
148 |
-
#: includes/wpmenucart-settings-pro.php:183
|
149 |
-
#: includes/wpmenucart-settings.php:175
|
150 |
msgid "Price Only."
|
151 |
-
msgstr ""
|
152 |
|
153 |
-
#:
|
154 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:184
|
155 |
-
#: includes/wpmenucart-settings-pro.php:184
|
156 |
-
#: includes/wpmenucart-settings.php:176
|
157 |
msgid "Both price and items."
|
158 |
-
msgstr ""
|
159 |
|
160 |
-
#:
|
161 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:191
|
162 |
-
#: includes/wpmenucart-settings-pro.php:191
|
163 |
-
#: includes/wpmenucart-settings.php:183
|
164 |
msgid "Select the alignment that looks best with your menu."
|
165 |
-
msgstr ""
|
166 |
|
167 |
-
#:
|
168 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:199
|
169 |
-
#: includes/wpmenucart-settings-pro.php:199
|
170 |
-
#: includes/wpmenucart-settings.php:191
|
171 |
msgid "Align Left."
|
172 |
-
msgstr ""
|
173 |
|
174 |
-
#:
|
175 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:200
|
176 |
-
#: includes/wpmenucart-settings-pro.php:200
|
177 |
-
#: includes/wpmenucart-settings.php:192
|
178 |
msgid "Align Right."
|
179 |
-
msgstr ""
|
180 |
|
181 |
-
#:
|
182 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:201
|
183 |
-
#: includes/wpmenucart-settings-pro.php:201
|
184 |
-
#: includes/wpmenucart-settings.php:193
|
185 |
msgid "Default Menu Alignment."
|
186 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
187 |
|
188 |
-
#:
|
189 |
-
|
190 |
-
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
192 |
msgid "Enter a custom CSS class (optional)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
msgstr ""
|
|
|
|
|
|
|
194 |
|
195 |
-
#:
|
196 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-settings.php:658
|
197 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:600
|
198 |
-
#: includes/wpmenucart-settings-pro.php:600
|
199 |
-
#: includes/wpmenucart-settings.php:221 includes/wpmenucart-settings.php:664
|
200 |
msgid "Menu Cart"
|
201 |
-
msgstr ""
|
202 |
|
203 |
-
#:
|
204 |
-
#: includes/wpmenucart-settings.php:222
|
205 |
msgid "Menu Cart Setup"
|
206 |
-
msgstr ""
|
207 |
|
208 |
-
#:
|
209 |
-
|
210 |
-
|
211 |
-
#: includes/wpmenucart-settings.php:290
|
212 |
-
msgid "WP Menu Cart Pro"
|
213 |
-
msgstr ""
|
214 |
|
215 |
-
#:
|
216 |
-
|
217 |
-
|
218 |
-
msgstr ""
|
219 |
|
220 |
-
#:
|
221 |
-
|
222 |
-
|
223 |
-
msgstr ""
|
224 |
|
225 |
-
#:
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
|
231 |
-
#:
|
232 |
-
|
|
|
|
|
|
|
233 |
msgid ""
|
234 |
-
"Includes all the great standard features found in
|
|
|
235 |
msgstr ""
|
|
|
|
|
236 |
|
237 |
-
#:
|
238 |
-
#: includes/wpmenucart-settings.php:330
|
239 |
msgid "A choice of over 10 cart icons"
|
240 |
-
msgstr ""
|
241 |
|
242 |
-
#:
|
243 |
-
#: includes/wpmenucart-settings.php:331
|
244 |
msgid "A fully featured cart details flyout"
|
245 |
-
msgstr ""
|
246 |
|
247 |
-
#:
|
248 |
-
|
249 |
-
|
250 |
msgstr ""
|
|
|
|
|
251 |
|
252 |
-
#:
|
253 |
-
|
254 |
-
|
|
|
|
|
|
|
255 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
256 |
|
257 |
-
#:
|
258 |
-
#: includes/wpmenucart-settings.php:334
|
259 |
msgid "Automatic updates on any great new features"
|
260 |
-
msgstr ""
|
261 |
|
262 |
-
#:
|
263 |
-
|
|
|
|
|
|
|
264 |
#, php-format
|
265 |
msgid ""
|
266 |
"Need to see more? %sClick here%s to check it out. Add a product to your cart "
|
267 |
"and watch what happens!"
|
268 |
msgstr ""
|
|
|
|
|
269 |
|
270 |
-
#:
|
271 |
-
#: includes/wpmenucart-settings.php:339
|
272 |
msgid "Buy Now"
|
273 |
-
msgstr ""
|
274 |
-
|
275 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-settings.php:342
|
276 |
-
#: includes/wpmenucart-settings.php:342
|
277 |
-
msgid "Want your CSS customized?"
|
278 |
-
msgstr ""
|
279 |
-
|
280 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-settings.php:344
|
281 |
-
#: includes/wpmenucart-settings.php:344
|
282 |
-
msgid "We can do that for you! Just click the button below to check it out."
|
283 |
-
msgstr ""
|
284 |
|
285 |
-
#:
|
286 |
-
#: includes/wpmenucart-settings.php:
|
287 |
-
|
288 |
-
msgstr ""
|
289 |
-
|
290 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-settings.php:424
|
291 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-settings.php:464
|
292 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-settings.php:504
|
293 |
-
#: bundles/wp-menu-cart/includes/wpmenucart-settings.php:575
|
294 |
-
#: includes/wpmenucart-settings.php:424 includes/wpmenucart-settings.php:464
|
295 |
-
#: includes/wpmenucart-settings.php:504 includes/wpmenucart-settings.php:544
|
296 |
-
#: includes/wpmenucart-settings.php:581
|
297 |
msgid "This feature only available in"
|
298 |
-
msgstr ""
|
299 |
|
300 |
-
#:
|
301 |
-
#: includes/wpmenucart-settings.php:623
|
302 |
msgid "Additional icons are only available in"
|
303 |
-
msgstr ""
|
304 |
|
305 |
-
#:
|
306 |
-
#: includes/wpmenucart-settings-pro.php:47
|
307 |
msgid ""
|
308 |
-
"
|
309 |
-
"
|
310 |
msgstr ""
|
|
|
|
|
311 |
|
312 |
-
#:
|
313 |
-
|
314 |
-
|
315 |
-
msgstr ""
|
316 |
-
|
317 |
-
#: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:229
|
318 |
-
#: includes/wpmenucart-settings-pro.php:229
|
319 |
-
msgid "Menu Cart Pro Setup"
|
320 |
-
msgstr ""
|
321 |
|
322 |
-
#:
|
323 |
-
#: includes/wpmenucart-settings-pro.php:323
|
324 |
-
#, php-format
|
325 |
msgid ""
|
326 |
-
"
|
327 |
-
"
|
328 |
msgstr ""
|
|
|
|
|
329 |
|
330 |
-
#:
|
331 |
-
|
332 |
-
|
333 |
-
"<strong>Please note:</strong> you need to open your website in a new tab/"
|
334 |
-
"browser window after updating the cart icon for the change to be visible!"
|
335 |
-
msgstr ""
|
336 |
|
337 |
-
#:
|
338 |
-
|
339 |
-
|
340 |
-
"An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
|
341 |
-
"\" onclick=\"document.location.reload(); return false;\">Try again</a>"
|
342 |
-
msgstr ""
|
343 |
|
344 |
-
#:
|
345 |
-
|
346 |
-
msgid "
|
347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
|
349 |
#~ msgid ""
|
350 |
#~ "WooCommerce Menu Cart depends on <a href=\"%s\">WooCommerce</a> to work!"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Menu Cart\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2020-02-14 15:18+0100\n"
|
6 |
+
"PO-Revision-Date: 2020-02-14 15:43+0100\n"
|
7 |
"Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
|
8 |
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
9 |
"Language: nl_NL\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
16 |
"_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"
|
17 |
+
"X-Poedit-Basepath: ..\n"
|
18 |
"X-Textdomain-Support: yes\n"
|
19 |
+
"X-Generator: Poedit 2.2.1\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
+
#: includes/wpmenucart-eshop.php:40
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
#, php-format
|
24 |
msgid "%1$s%2$s"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: includes/wpmenucart-eshop.php:40
|
|
|
|
|
|
|
28 |
msgid "2"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/wpmenucart-settings.php:26
|
|
|
|
|
32 |
msgid "Plugin settings"
|
33 |
+
msgstr "Plugin instellingen"
|
34 |
|
35 |
+
#: includes/wpmenucart-settings.php:33
|
|
|
|
|
36 |
msgid "Select which e-commerce plugin you would like Menu Cart to work with"
|
37 |
+
msgstr "Selecter met welke e-commerce plugin je de Menu Cart wilt laten werken"
|
38 |
+
|
39 |
+
#: includes/wpmenucart-settings.php:48
|
40 |
+
msgid "Hide theme shopping cart icon"
|
41 |
+
msgstr "Verberg winkelwagen ikoon van het thema"
|
42 |
|
43 |
+
#: includes/wpmenucart-settings.php:62
|
|
|
|
|
44 |
msgid "Select the menu(s) in which you want to display the Menu Cart"
|
45 |
+
msgstr "Selecteer de menu(s) waar je Menu Cart in wilt tonen"
|
46 |
|
47 |
+
#: includes/wpmenucart-settings.php:75
|
|
|
|
|
48 |
msgid "Always display cart, even if it's empty"
|
49 |
+
msgstr "Toon de winkelwagen altijd, ook als deze leeg is"
|
50 |
|
51 |
+
#: includes/wpmenucart-settings.php:87
|
|
|
|
|
52 |
msgid "Display shopping cart icon."
|
53 |
+
msgstr "Toon winkelwagen ikoon."
|
54 |
|
55 |
+
#: includes/wpmenucart-settings.php:99
|
|
|
|
|
|
|
56 |
msgid "Display cart contents in menu fly-out."
|
57 |
+
msgstr "Toon inhoud van de winkelwagen in een flyout (uitklapmenu)"
|
58 |
|
59 |
+
#: includes/wpmenucart-settings.php:112
|
|
|
|
|
|
|
60 |
msgid "Set maximum number of products to display in fly-out"
|
61 |
+
msgstr "Stel het maximum aantal producten om weer te geven in de flyout"
|
62 |
|
63 |
+
#: includes/wpmenucart-settings.php:138
|
|
|
|
|
|
|
64 |
msgid "Choose a cart icon."
|
65 |
+
msgstr "Kies een winkelwagen ikoon."
|
66 |
|
67 |
+
#: includes/wpmenucart-settings.php:167
|
|
|
|
|
|
|
68 |
msgid "What would you like to display in the menu?"
|
69 |
+
msgstr "Wat wil je weergeven in het menu?"
|
70 |
|
71 |
+
#: includes/wpmenucart-settings.php:175
|
|
|
|
|
|
|
72 |
msgid "Items Only."
|
73 |
+
msgstr "Enkel artikelen."
|
74 |
|
75 |
+
#: includes/wpmenucart-settings.php:176
|
|
|
|
|
|
|
76 |
msgid "Price Only."
|
77 |
+
msgstr "Enkel prijs."
|
78 |
|
79 |
+
#: includes/wpmenucart-settings.php:177
|
|
|
|
|
|
|
80 |
msgid "Both price and items."
|
81 |
+
msgstr "Zowel prijs als artikelen."
|
82 |
|
83 |
+
#: includes/wpmenucart-settings.php:184
|
|
|
|
|
|
|
84 |
msgid "Select the alignment that looks best with your menu."
|
85 |
+
msgstr "Selecteer de uitlijning die het best past bij jouw menu."
|
86 |
|
87 |
+
#: includes/wpmenucart-settings.php:192
|
|
|
|
|
|
|
88 |
msgid "Align Left."
|
89 |
+
msgstr "Links uitlijnen."
|
90 |
|
91 |
+
#: includes/wpmenucart-settings.php:193
|
|
|
|
|
|
|
92 |
msgid "Align Right."
|
93 |
+
msgstr "Rechts uitlijnen."
|
94 |
|
95 |
+
#: includes/wpmenucart-settings.php:194
|
|
|
|
|
|
|
96 |
msgid "Default Menu Alignment."
|
97 |
+
msgstr "Standaard menu uitlijning."
|
98 |
+
|
99 |
+
#: includes/wpmenucart-settings.php:202
|
100 |
+
msgid "Price to display"
|
101 |
+
msgstr "Prijsweergave"
|
102 |
|
103 |
+
#: includes/wpmenucart-settings.php:210
|
104 |
+
msgid "Cart total (including discounts)"
|
105 |
+
msgstr "Winkelwagen totaal (inclusief kortingen)"
|
106 |
+
|
107 |
+
#: includes/wpmenucart-settings.php:211
|
108 |
+
msgid "Subtotal (total of products)"
|
109 |
+
msgstr "Subtotaal (totaal van producten)"
|
110 |
+
|
111 |
+
#: includes/wpmenucart-settings.php:220
|
112 |
msgid "Enter a custom CSS class (optional)"
|
113 |
+
msgstr "Voer een aangepaste CSS klasse in (optioneel)"
|
114 |
+
|
115 |
+
#: includes/wpmenucart-settings.php:234
|
116 |
+
msgid "Use WPML String Translation"
|
117 |
+
msgstr "Gebruik WPML String Translation"
|
118 |
+
|
119 |
+
#: includes/wpmenucart-settings.php:248
|
120 |
+
msgid "Use custom AJAX"
|
121 |
+
msgstr "Gebruik aangepaste AJAX"
|
122 |
+
|
123 |
+
#: includes/wpmenucart-settings.php:255
|
124 |
+
msgid ""
|
125 |
+
"Enable this option to use the custom AJAX / live update functions instead of "
|
126 |
+
"the default ones from your shop plugin. Only use when you have issues with "
|
127 |
+
"AJAX!"
|
128 |
msgstr ""
|
129 |
+
"Schakel deze optie in om aangepaste AJAX / live update functies te gebruiken "
|
130 |
+
"in plaats van de standaard functies van je shop plugin. Alleen inschakelen "
|
131 |
+
"wanneer je problemen met AJAX ondervindt!"
|
132 |
|
133 |
+
#: includes/wpmenucart-settings.php:287 includes/wpmenucart-settings.php:755
|
|
|
|
|
|
|
|
|
134 |
msgid "Menu Cart"
|
135 |
+
msgstr "Menu Cart"
|
136 |
|
137 |
+
#: includes/wpmenucart-settings.php:288
|
|
|
138 |
msgid "Menu Cart Setup"
|
139 |
+
msgstr "Menu Cart instellingen"
|
140 |
|
141 |
+
#: includes/wpmenucart-settings.php:300
|
142 |
+
msgid "Settings"
|
143 |
+
msgstr "Instellingen"
|
|
|
|
|
|
|
144 |
|
145 |
+
#: includes/wpmenucart-settings.php:356
|
146 |
+
msgid "WP Menu Cart"
|
147 |
+
msgstr "WP Menu Cart"
|
|
|
148 |
|
149 |
+
#: includes/wpmenucart-settings.php:413
|
150 |
+
msgid "Unlimited Menus"
|
151 |
+
msgstr "Onbeperkt aantal menus"
|
|
|
152 |
|
153 |
+
#: includes/wpmenucart-settings.php:414
|
154 |
+
msgid "Choice of 14 icons"
|
155 |
+
msgstr "Keuze uit 14 verschillende ikonen"
|
156 |
+
|
157 |
+
#: includes/wpmenucart-settings.php:415
|
158 |
+
msgid "Packed with customization options"
|
159 |
+
msgstr "Vol met opties voor aanpassingen"
|
160 |
+
|
161 |
+
#: includes/wpmenucart-settings.php:416
|
162 |
+
msgid "Access to Shortcode"
|
163 |
+
msgstr "Toegang tot shortcode"
|
164 |
+
|
165 |
+
#: includes/wpmenucart-settings.php:417
|
166 |
+
msgid "Top Notch Support"
|
167 |
+
msgstr "Uitmuntende support"
|
168 |
|
169 |
+
#: includes/wpmenucart-settings.php:422
|
170 |
+
msgid "Sell In Style With Menu Cart Pro!"
|
171 |
+
msgstr "Verkoop in stijl met Menu Cart Pro!"
|
172 |
+
|
173 |
+
#: includes/wpmenucart-settings.php:424
|
174 |
msgid ""
|
175 |
+
"Go Pro with Menu Cart Pro. Includes all the great standard features found in "
|
176 |
+
"this free version plus:"
|
177 |
msgstr ""
|
178 |
+
"Professionaliseer met Menu Cart Pro. Bevat alle standaard functionaliteiten "
|
179 |
+
"van deze gratis versie plus:"
|
180 |
|
181 |
+
#: includes/wpmenucart-settings.php:427
|
|
|
182 |
msgid "A choice of over 10 cart icons"
|
183 |
+
msgstr "Keuze uit meer dan 10 winkelwagen ikonen"
|
184 |
|
185 |
+
#: includes/wpmenucart-settings.php:428
|
|
|
186 |
msgid "A fully featured cart details flyout"
|
187 |
+
msgstr "Een flyout voor de inhoud van de winkelwagen"
|
188 |
|
189 |
+
#: includes/wpmenucart-settings.php:429
|
190 |
+
msgid ""
|
191 |
+
"Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus"
|
192 |
msgstr ""
|
193 |
+
"Mogelijkheid om de winkelwagen + flyout toe te voegen aan een "
|
194 |
+
"<strong>onbeperkt</strong> aantal menus"
|
195 |
|
196 |
+
#: includes/wpmenucart-settings.php:430
|
197 |
+
msgid "Adjust the content & URLs via the settings"
|
198 |
+
msgstr "Pas de inhoud & URLs aan via de instellingen"
|
199 |
+
|
200 |
+
#: includes/wpmenucart-settings.php:431
|
201 |
+
msgid "Enter custom styles and apply custom classes via the settings"
|
202 |
msgstr ""
|
203 |
+
"Voer aangepaste stijlen in en pas aangepaste classes toe via de instellingen"
|
204 |
+
|
205 |
+
#: includes/wpmenucart-settings.php:432
|
206 |
+
msgid "WPML compatible"
|
207 |
+
msgstr "Compatible met WPML"
|
208 |
|
209 |
+
#: includes/wpmenucart-settings.php:433
|
|
|
210 |
msgid "Automatic updates on any great new features"
|
211 |
+
msgstr "Automatische updates van handige nieuwe features"
|
212 |
|
213 |
+
#: includes/wpmenucart-settings.php:434
|
214 |
+
msgid "Put the cart anywhere with the [wpmenucart] shortcode"
|
215 |
+
msgstr "Plaats de winkelwagen overal op je site met de [wpmenucart] shortcode"
|
216 |
+
|
217 |
+
#: includes/wpmenucart-settings.php:438
|
218 |
#, php-format
|
219 |
msgid ""
|
220 |
"Need to see more? %sClick here%s to check it out. Add a product to your cart "
|
221 |
"and watch what happens!"
|
222 |
msgstr ""
|
223 |
+
"Meer weten? %sKlik hier%s voor meer informatie. Voeg een van onze plugins "
|
224 |
+
"toe aan je winkelwagen en zie het resultaat in actie op onze eigen site!"
|
225 |
|
226 |
+
#: includes/wpmenucart-settings.php:439
|
|
|
227 |
msgid "Buy Now"
|
228 |
+
msgstr "Koop nu"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
|
230 |
+
#: includes/wpmenucart-settings.php:508 includes/wpmenucart-settings.php:548
|
231 |
+
#: includes/wpmenucart-settings.php:590 includes/wpmenucart-settings.php:629
|
232 |
+
#: includes/wpmenucart-settings.php:666
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
msgid "This feature only available in"
|
234 |
+
msgstr "Deze functie is enkel beschikbaar in"
|
235 |
|
236 |
+
#: includes/wpmenucart-settings.php:708
|
|
|
237 |
msgid "Additional icons are only available in"
|
238 |
+
msgstr "Extra ikonen zijn alleen beschikbaar in"
|
239 |
|
240 |
+
#: wp-menu-cart.php:226
|
|
|
241 |
msgid ""
|
242 |
+
"WP Menu Cart could not detect an active shop plugin. Make sure you have "
|
243 |
+
"activated at least one of the supported plugins."
|
244 |
msgstr ""
|
245 |
+
"WP Menu Cart kon geen actieve webwinkel plugin detecteren. Zorg dat je "
|
246 |
+
"tenminste één van de ondersteunde plugins hebt geactiveerd."
|
247 |
|
248 |
+
#: wp-menu-cart.php:227
|
249 |
+
msgid "Hide this notice"
|
250 |
+
msgstr "Verberg deze melding"
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
|
252 |
+
#: wp-menu-cart.php:232
|
|
|
|
|
253 |
msgid ""
|
254 |
+
"An old version of WooCommerce Menu Cart is currently activated, you need to "
|
255 |
+
"disable or uninstall it for WP Menu Cart to function properly"
|
256 |
msgstr ""
|
257 |
+
"Een oude versie van WooCommerce Menu Cart is momenteel actief, je dient deze "
|
258 |
+
"uit te schakelen om WP Menu Cart correct te laten werken"
|
259 |
|
260 |
+
#: wp-menu-cart.php:555
|
261 |
+
msgid "View your shopping cart"
|
262 |
+
msgstr "Bekijk uw winkelwagen"
|
|
|
|
|
|
|
263 |
|
264 |
+
#: wp-menu-cart.php:556
|
265 |
+
msgid "Start shopping"
|
266 |
+
msgstr "Naar de winkel"
|
|
|
|
|
|
|
267 |
|
268 |
+
#: wp-menu-cart.php:557
|
269 |
+
#, php-format
|
270 |
+
msgid "%d item"
|
271 |
+
msgid_plural "%d items"
|
272 |
+
msgstr[0] "%d artikel"
|
273 |
+
msgstr[1] "%d artikelen"
|
274 |
+
|
275 |
+
#: wp-menu-cart.php:584
|
276 |
+
msgid "Cart"
|
277 |
+
msgstr "Winkelwagen"
|
278 |
+
|
279 |
+
#~ msgid "your cart is currently empty"
|
280 |
+
#~ msgstr "Uw winkelwagen is leeg"
|
281 |
|
282 |
#~ msgid ""
|
283 |
#~ "WooCommerce Menu Cart depends on <a href=\"%s\">WooCommerce</a> to work!"
|
languages/wp-menu-cart-nl_NL_formal.mo
ADDED
Binary file
|
languages/wp-menu-cart-nl_NL_formal.po
ADDED
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP Menu Cart\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2020-02-14 15:18+0100\n"
|
6 |
+
"PO-Revision-Date: 2020-02-14 15:43+0100\n"
|
7 |
+
"Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
|
8 |
+
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
9 |
+
"Language: nl_NL\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
16 |
+
"_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"
|
17 |
+
"X-Poedit-Basepath: ..\n"
|
18 |
+
"X-Textdomain-Support: yes\n"
|
19 |
+
"X-Generator: Poedit 2.2.1\n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
|
22 |
+
#: includes/wpmenucart-eshop.php:40
|
23 |
+
#, php-format
|
24 |
+
msgid "%1$s%2$s"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: includes/wpmenucart-eshop.php:40
|
28 |
+
msgid "2"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: includes/wpmenucart-settings.php:26
|
32 |
+
msgid "Plugin settings"
|
33 |
+
msgstr "Plugin instellingen"
|
34 |
+
|
35 |
+
#: includes/wpmenucart-settings.php:33
|
36 |
+
msgid "Select which e-commerce plugin you would like Menu Cart to work with"
|
37 |
+
msgstr "Selecter met welke e-commerce plugin je de Menu Cart wilt laten werken"
|
38 |
+
|
39 |
+
#: includes/wpmenucart-settings.php:48
|
40 |
+
msgid "Hide theme shopping cart icon"
|
41 |
+
msgstr "Verberg winkelwagen ikoon van het thema"
|
42 |
+
|
43 |
+
#: includes/wpmenucart-settings.php:62
|
44 |
+
msgid "Select the menu(s) in which you want to display the Menu Cart"
|
45 |
+
msgstr "Selecteer de menu(s) waar je Menu Cart in wilt tonen"
|
46 |
+
|
47 |
+
#: includes/wpmenucart-settings.php:75
|
48 |
+
msgid "Always display cart, even if it's empty"
|
49 |
+
msgstr "Toon de winkelwagen altijd, ook als deze leeg is"
|
50 |
+
|
51 |
+
#: includes/wpmenucart-settings.php:87
|
52 |
+
msgid "Display shopping cart icon."
|
53 |
+
msgstr "Toon winkelwagen ikoon."
|
54 |
+
|
55 |
+
#: includes/wpmenucart-settings.php:99
|
56 |
+
msgid "Display cart contents in menu fly-out."
|
57 |
+
msgstr "Toon inhoud van de winkelwagen in een flyout (uitklapmenu)"
|
58 |
+
|
59 |
+
#: includes/wpmenucart-settings.php:112
|
60 |
+
msgid "Set maximum number of products to display in fly-out"
|
61 |
+
msgstr "Stel het maximum aantal producten om weer te geven in de flyout"
|
62 |
+
|
63 |
+
#: includes/wpmenucart-settings.php:138
|
64 |
+
msgid "Choose a cart icon."
|
65 |
+
msgstr "Kies een winkelwagen ikoon."
|
66 |
+
|
67 |
+
#: includes/wpmenucart-settings.php:167
|
68 |
+
msgid "What would you like to display in the menu?"
|
69 |
+
msgstr "Wat wil je weergeven in het menu?"
|
70 |
+
|
71 |
+
#: includes/wpmenucart-settings.php:175
|
72 |
+
msgid "Items Only."
|
73 |
+
msgstr "Enkel artikelen."
|
74 |
+
|
75 |
+
#: includes/wpmenucart-settings.php:176
|
76 |
+
msgid "Price Only."
|
77 |
+
msgstr "Enkel prijs."
|
78 |
+
|
79 |
+
#: includes/wpmenucart-settings.php:177
|
80 |
+
msgid "Both price and items."
|
81 |
+
msgstr "Zowel prijs als artikelen."
|
82 |
+
|
83 |
+
#: includes/wpmenucart-settings.php:184
|
84 |
+
msgid "Select the alignment that looks best with your menu."
|
85 |
+
msgstr "Selecteer de uitlijning die het best past bij jouw menu."
|
86 |
+
|
87 |
+
#: includes/wpmenucart-settings.php:192
|
88 |
+
msgid "Align Left."
|
89 |
+
msgstr "Links uitlijnen."
|
90 |
+
|
91 |
+
#: includes/wpmenucart-settings.php:193
|
92 |
+
msgid "Align Right."
|
93 |
+
msgstr "Rechts uitlijnen."
|
94 |
+
|
95 |
+
#: includes/wpmenucart-settings.php:194
|
96 |
+
msgid "Default Menu Alignment."
|
97 |
+
msgstr "Standaard menu uitlijning."
|
98 |
+
|
99 |
+
#: includes/wpmenucart-settings.php:202
|
100 |
+
msgid "Price to display"
|
101 |
+
msgstr "Prijsweergave"
|
102 |
+
|
103 |
+
#: includes/wpmenucart-settings.php:210
|
104 |
+
msgid "Cart total (including discounts)"
|
105 |
+
msgstr "Winkelwagen totaal (inclusief kortingen)"
|
106 |
+
|
107 |
+
#: includes/wpmenucart-settings.php:211
|
108 |
+
msgid "Subtotal (total of products)"
|
109 |
+
msgstr "Subtotaal (totaal van producten)"
|
110 |
+
|
111 |
+
#: includes/wpmenucart-settings.php:220
|
112 |
+
msgid "Enter a custom CSS class (optional)"
|
113 |
+
msgstr "Voer een aangepaste CSS klasse in (optioneel)"
|
114 |
+
|
115 |
+
#: includes/wpmenucart-settings.php:234
|
116 |
+
msgid "Use WPML String Translation"
|
117 |
+
msgstr "Gebruik WPML String Translation"
|
118 |
+
|
119 |
+
#: includes/wpmenucart-settings.php:248
|
120 |
+
msgid "Use custom AJAX"
|
121 |
+
msgstr "Gebruik aangepaste AJAX"
|
122 |
+
|
123 |
+
#: includes/wpmenucart-settings.php:255
|
124 |
+
msgid ""
|
125 |
+
"Enable this option to use the custom AJAX / live update functions instead of "
|
126 |
+
"the default ones from your shop plugin. Only use when you have issues with "
|
127 |
+
"AJAX!"
|
128 |
+
msgstr ""
|
129 |
+
"Schakel deze optie in om aangepaste AJAX / live update functies te gebruiken "
|
130 |
+
"in plaats van de standaard functies van je shop plugin. Alleen inschakelen "
|
131 |
+
"wanneer je problemen met AJAX ondervindt!"
|
132 |
+
|
133 |
+
#: includes/wpmenucart-settings.php:287 includes/wpmenucart-settings.php:755
|
134 |
+
msgid "Menu Cart"
|
135 |
+
msgstr "Menu Cart"
|
136 |
+
|
137 |
+
#: includes/wpmenucart-settings.php:288
|
138 |
+
msgid "Menu Cart Setup"
|
139 |
+
msgstr "Menu Cart instellingen"
|
140 |
+
|
141 |
+
#: includes/wpmenucart-settings.php:300
|
142 |
+
msgid "Settings"
|
143 |
+
msgstr "Instellingen"
|
144 |
+
|
145 |
+
#: includes/wpmenucart-settings.php:356
|
146 |
+
msgid "WP Menu Cart"
|
147 |
+
msgstr "WP Menu Cart"
|
148 |
+
|
149 |
+
#: includes/wpmenucart-settings.php:413
|
150 |
+
msgid "Unlimited Menus"
|
151 |
+
msgstr "Onbeperkt aantal menus"
|
152 |
+
|
153 |
+
#: includes/wpmenucart-settings.php:414
|
154 |
+
msgid "Choice of 14 icons"
|
155 |
+
msgstr "Keuze uit 14 verschillende ikonen"
|
156 |
+
|
157 |
+
#: includes/wpmenucart-settings.php:415
|
158 |
+
msgid "Packed with customization options"
|
159 |
+
msgstr "Vol met opties voor aanpassingen"
|
160 |
+
|
161 |
+
#: includes/wpmenucart-settings.php:416
|
162 |
+
msgid "Access to Shortcode"
|
163 |
+
msgstr "Toegang tot shortcode"
|
164 |
+
|
165 |
+
#: includes/wpmenucart-settings.php:417
|
166 |
+
msgid "Top Notch Support"
|
167 |
+
msgstr "Uitmuntende support"
|
168 |
+
|
169 |
+
#: includes/wpmenucart-settings.php:422
|
170 |
+
msgid "Sell In Style With Menu Cart Pro!"
|
171 |
+
msgstr "Verkoop in stijl met Menu Cart Pro!"
|
172 |
+
|
173 |
+
#: includes/wpmenucart-settings.php:424
|
174 |
+
msgid ""
|
175 |
+
"Go Pro with Menu Cart Pro. Includes all the great standard features found in "
|
176 |
+
"this free version plus:"
|
177 |
+
msgstr ""
|
178 |
+
"Professionaliseer met Menu Cart Pro. Bevat alle standaard functionaliteiten "
|
179 |
+
"van deze gratis versie plus:"
|
180 |
+
|
181 |
+
#: includes/wpmenucart-settings.php:427
|
182 |
+
msgid "A choice of over 10 cart icons"
|
183 |
+
msgstr "Keuze uit meer dan 10 winkelwagen ikonen"
|
184 |
+
|
185 |
+
#: includes/wpmenucart-settings.php:428
|
186 |
+
msgid "A fully featured cart details flyout"
|
187 |
+
msgstr "Een flyout voor de inhoud van de winkelwagen"
|
188 |
+
|
189 |
+
#: includes/wpmenucart-settings.php:429
|
190 |
+
msgid ""
|
191 |
+
"Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus"
|
192 |
+
msgstr ""
|
193 |
+
"Mogelijkheid om de winkelwagen + flyout toe te voegen aan een "
|
194 |
+
"<strong>onbeperkt</strong> aantal menus"
|
195 |
+
|
196 |
+
#: includes/wpmenucart-settings.php:430
|
197 |
+
msgid "Adjust the content & URLs via the settings"
|
198 |
+
msgstr "Pas de inhoud & URLs aan via de instellingen"
|
199 |
+
|
200 |
+
#: includes/wpmenucart-settings.php:431
|
201 |
+
msgid "Enter custom styles and apply custom classes via the settings"
|
202 |
+
msgstr ""
|
203 |
+
"Voer aangepaste stijlen in en pas aangepaste classes toe via de instellingen"
|
204 |
+
|
205 |
+
#: includes/wpmenucart-settings.php:432
|
206 |
+
msgid "WPML compatible"
|
207 |
+
msgstr "Compatible met WPML"
|
208 |
+
|
209 |
+
#: includes/wpmenucart-settings.php:433
|
210 |
+
msgid "Automatic updates on any great new features"
|
211 |
+
msgstr "Automatische updates van handige nieuwe features"
|
212 |
+
|
213 |
+
#: includes/wpmenucart-settings.php:434
|
214 |
+
msgid "Put the cart anywhere with the [wpmenucart] shortcode"
|
215 |
+
msgstr "Plaats de winkelwagen overal op je site met de [wpmenucart] shortcode"
|
216 |
+
|
217 |
+
#: includes/wpmenucart-settings.php:438
|
218 |
+
#, php-format
|
219 |
+
msgid ""
|
220 |
+
"Need to see more? %sClick here%s to check it out. Add a product to your cart "
|
221 |
+
"and watch what happens!"
|
222 |
+
msgstr ""
|
223 |
+
"Meer weten? %sKlik hier%s voor meer informatie. Voeg een van onze plugins "
|
224 |
+
"toe aan je winkelwagen en zie het resultaat in actie op onze eigen site!"
|
225 |
+
|
226 |
+
#: includes/wpmenucart-settings.php:439
|
227 |
+
msgid "Buy Now"
|
228 |
+
msgstr "Koop nu"
|
229 |
+
|
230 |
+
#: includes/wpmenucart-settings.php:508 includes/wpmenucart-settings.php:548
|
231 |
+
#: includes/wpmenucart-settings.php:590 includes/wpmenucart-settings.php:629
|
232 |
+
#: includes/wpmenucart-settings.php:666
|
233 |
+
msgid "This feature only available in"
|
234 |
+
msgstr "Deze functie is enkel beschikbaar in"
|
235 |
+
|
236 |
+
#: includes/wpmenucart-settings.php:708
|
237 |
+
msgid "Additional icons are only available in"
|
238 |
+
msgstr "Extra ikonen zijn alleen beschikbaar in"
|
239 |
+
|
240 |
+
#: wp-menu-cart.php:226
|
241 |
+
msgid ""
|
242 |
+
"WP Menu Cart could not detect an active shop plugin. Make sure you have "
|
243 |
+
"activated at least one of the supported plugins."
|
244 |
+
msgstr ""
|
245 |
+
"WP Menu Cart kon geen actieve webwinkel plugin detecteren. Zorg dat je "
|
246 |
+
"tenminste één van de ondersteunde plugins hebt geactiveerd."
|
247 |
+
|
248 |
+
#: wp-menu-cart.php:227
|
249 |
+
msgid "Hide this notice"
|
250 |
+
msgstr "Verberg deze melding"
|
251 |
+
|
252 |
+
#: wp-menu-cart.php:232
|
253 |
+
msgid ""
|
254 |
+
"An old version of WooCommerce Menu Cart is currently activated, you need to "
|
255 |
+
"disable or uninstall it for WP Menu Cart to function properly"
|
256 |
+
msgstr ""
|
257 |
+
"Een oude versie van WooCommerce Menu Cart is momenteel actief, je dient deze "
|
258 |
+
"uit te schakelen om WP Menu Cart correct te laten werken"
|
259 |
+
|
260 |
+
#: wp-menu-cart.php:555
|
261 |
+
msgid "View your shopping cart"
|
262 |
+
msgstr "Bekijk uw winkelwagen"
|
263 |
+
|
264 |
+
#: wp-menu-cart.php:556
|
265 |
+
msgid "Start shopping"
|
266 |
+
msgstr "Naar de winkel"
|
267 |
+
|
268 |
+
#: wp-menu-cart.php:557
|
269 |
+
#, php-format
|
270 |
+
msgid "%d item"
|
271 |
+
msgid_plural "%d items"
|
272 |
+
msgstr[0] "%d artikel"
|
273 |
+
msgstr[1] "%d artikelen"
|
274 |
+
|
275 |
+
#: wp-menu-cart.php:584
|
276 |
+
msgid "Cart"
|
277 |
+
msgstr "Winkelwagen"
|
278 |
+
|
279 |
+
#~ msgid "your cart is currently empty"
|
280 |
+
#~ msgstr "Uw winkelwagen is leeg"
|
281 |
+
|
282 |
+
#~ msgid ""
|
283 |
+
#~ "WooCommerce Menu Cart depends on <a href=\"%s\">WooCommerce</a> to work!"
|
284 |
+
#~ msgstr ""
|
285 |
+
#~ "WooCommerce Menu Cart heeft <a href=\"%s\">WooCommerce</a> om te kunnen "
|
286 |
+
#~ "functioneren!"
|
287 |
+
|
288 |
+
#~ msgid "Display Flyout."
|
289 |
+
#~ msgstr "Geef flyout weer."
|
290 |
+
|
291 |
+
#~ msgid "Set the name of the menu you want to display"
|
292 |
+
#~ msgstr ""
|
293 |
+
#~ "Voer de naam in van het menu waarin je het winkelwagentje wilt weergeven"
|
294 |
+
|
295 |
+
#~ msgid ""
|
296 |
+
#~ "Let's keep this simple! Just check the boxes next to the features you "
|
297 |
+
#~ "want."
|
298 |
+
#~ msgstr ""
|
299 |
+
#~ "Super eenvoudig: geef simpelweg de vakjes naast de features zoals jij ze "
|
300 |
+
#~ "wilt gebruiken een vinkje."
|
301 |
+
|
302 |
+
#~ msgid "Save Changes"
|
303 |
+
#~ msgstr "Opslaan"
|
languages/wp-menu-cart.pot
ADDED
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: WP Menu Cart\n"
|
5 |
+
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2020-02-14 15:22+0100\n"
|
7 |
+
"PO-Revision-Date: 2020-02-14 15:20+0100\n"
|
8 |
+
"Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
|
9 |
+
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
15 |
+
"_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"
|
16 |
+
"X-Poedit-Basepath: ..\n"
|
17 |
+
"X-Textdomain-Support: yes\n"
|
18 |
+
"X-Generator: Poedit 2.2.1\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
|
21 |
+
#: includes/wpmenucart-settings.php:26
|
22 |
+
msgid "Plugin settings"
|
23 |
+
msgstr ""
|
24 |
+
|
25 |
+
#: includes/wpmenucart-settings.php:33
|
26 |
+
msgid "Select which e-commerce plugin you would like Menu Cart to work with"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: includes/wpmenucart-settings.php:48
|
30 |
+
msgid "Hide theme shopping cart icon"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: includes/wpmenucart-settings.php:62
|
34 |
+
msgid "Select the menu(s) in which you want to display the Menu Cart"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: includes/wpmenucart-settings.php:75
|
38 |
+
msgid "Always display cart, even if it's empty"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: includes/wpmenucart-settings.php:87
|
42 |
+
msgid "Display shopping cart icon."
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: includes/wpmenucart-settings.php:99
|
46 |
+
msgid "Display cart contents in menu fly-out."
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: includes/wpmenucart-settings.php:112
|
50 |
+
msgid "Set maximum number of products to display in fly-out"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: includes/wpmenucart-settings.php:138
|
54 |
+
msgid "Choose a cart icon."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: includes/wpmenucart-settings.php:167
|
58 |
+
msgid "What would you like to display in the menu?"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: includes/wpmenucart-settings.php:175
|
62 |
+
msgid "Items Only."
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: includes/wpmenucart-settings.php:176
|
66 |
+
msgid "Price Only."
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: includes/wpmenucart-settings.php:177
|
70 |
+
msgid "Both price and items."
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: includes/wpmenucart-settings.php:184
|
74 |
+
msgid "Select the alignment that looks best with your menu."
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: includes/wpmenucart-settings.php:192
|
78 |
+
msgid "Align Left."
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: includes/wpmenucart-settings.php:193
|
82 |
+
msgid "Align Right."
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: includes/wpmenucart-settings.php:194
|
86 |
+
msgid "Default Menu Alignment."
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: includes/wpmenucart-settings.php:202
|
90 |
+
msgid "Price to display"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: includes/wpmenucart-settings.php:210
|
94 |
+
msgid "Cart total (including discounts)"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: includes/wpmenucart-settings.php:211
|
98 |
+
msgid "Subtotal (total of products)"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: includes/wpmenucart-settings.php:220
|
102 |
+
msgid "Enter a custom CSS class (optional)"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: includes/wpmenucart-settings.php:234
|
106 |
+
msgid "Use WPML String Translation"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: includes/wpmenucart-settings.php:248
|
110 |
+
msgid "Use custom AJAX"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: includes/wpmenucart-settings.php:255
|
114 |
+
msgid ""
|
115 |
+
"Enable this option to use the custom AJAX / live update functions instead of "
|
116 |
+
"the default ones from your shop plugin. Only use when you have issues with "
|
117 |
+
"AJAX!"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: includes/wpmenucart-settings.php:287 includes/wpmenucart-settings.php:755
|
121 |
+
msgid "Menu Cart"
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: includes/wpmenucart-settings.php:288
|
125 |
+
msgid "Menu Cart Setup"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: includes/wpmenucart-settings.php:300
|
129 |
+
msgid "Settings"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: includes/wpmenucart-settings.php:356
|
133 |
+
msgid "WP Menu Cart"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: includes/wpmenucart-settings.php:413
|
137 |
+
msgid "Unlimited Menus"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: includes/wpmenucart-settings.php:414
|
141 |
+
msgid "Choice of 14 icons"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: includes/wpmenucart-settings.php:415
|
145 |
+
msgid "Packed with customization options"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#: includes/wpmenucart-settings.php:416
|
149 |
+
msgid "Access to Shortcode"
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: includes/wpmenucart-settings.php:417
|
153 |
+
msgid "Top Notch Support"
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: includes/wpmenucart-settings.php:422
|
157 |
+
msgid "Sell In Style With Menu Cart Pro!"
|
158 |
+
msgstr ""
|
159 |
+
|
160 |
+
#: includes/wpmenucart-settings.php:424
|
161 |
+
msgid ""
|
162 |
+
"Go Pro with Menu Cart Pro. Includes all the great standard features found in "
|
163 |
+
"this free version plus:"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: includes/wpmenucart-settings.php:427
|
167 |
+
msgid "A choice of over 10 cart icons"
|
168 |
+
msgstr ""
|
169 |
+
|
170 |
+
#: includes/wpmenucart-settings.php:428
|
171 |
+
msgid "A fully featured cart details flyout"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: includes/wpmenucart-settings.php:429
|
175 |
+
msgid ""
|
176 |
+
"Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus"
|
177 |
+
msgstr ""
|
178 |
+
|
179 |
+
#: includes/wpmenucart-settings.php:430
|
180 |
+
msgid "Adjust the content & URLs via the settings"
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
+
#: includes/wpmenucart-settings.php:431
|
184 |
+
msgid "Enter custom styles and apply custom classes via the settings"
|
185 |
+
msgstr ""
|
186 |
+
|
187 |
+
#: includes/wpmenucart-settings.php:432
|
188 |
+
msgid "WPML compatible"
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: includes/wpmenucart-settings.php:433
|
192 |
+
msgid "Automatic updates on any great new features"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: includes/wpmenucart-settings.php:434
|
196 |
+
msgid "Put the cart anywhere with the [wpmenucart] shortcode"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: includes/wpmenucart-settings.php:438
|
200 |
+
#, php-format
|
201 |
+
msgid ""
|
202 |
+
"Need to see more? %sClick here%s to check it out. Add a product to your cart "
|
203 |
+
"and watch what happens!"
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: includes/wpmenucart-settings.php:439
|
207 |
+
msgid "Buy Now"
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: includes/wpmenucart-settings.php:508 includes/wpmenucart-settings.php:548
|
211 |
+
#: includes/wpmenucart-settings.php:590 includes/wpmenucart-settings.php:629
|
212 |
+
#: includes/wpmenucart-settings.php:666
|
213 |
+
msgid "This feature only available in"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#: includes/wpmenucart-settings.php:708
|
217 |
+
msgid "Additional icons are only available in"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: wp-menu-cart.php:226
|
221 |
+
msgid ""
|
222 |
+
"WP Menu Cart could not detect an active shop plugin. Make sure you have "
|
223 |
+
"activated at least one of the supported plugins."
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: wp-menu-cart.php:227
|
227 |
+
msgid "Hide this notice"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: wp-menu-cart.php:232
|
231 |
+
msgid ""
|
232 |
+
"An old version of WooCommerce Menu Cart is currently activated, you need to "
|
233 |
+
"disable or uninstall it for WP Menu Cart to function properly"
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#: wp-menu-cart.php:555
|
237 |
+
msgid "View your shopping cart"
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
#: wp-menu-cart.php:556
|
241 |
+
msgid "Start shopping"
|
242 |
+
msgstr ""
|
243 |
+
|
244 |
+
#: wp-menu-cart.php:557
|
245 |
+
#, php-format
|
246 |
+
msgid "%d item"
|
247 |
+
msgid_plural "%d items"
|
248 |
+
msgstr[0] ""
|
249 |
+
msgstr[1] ""
|
250 |
+
|
251 |
+
#: wp-menu-cart.php:584
|
252 |
+
msgid "Cart"
|
253 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,310 +1,316 @@
|
|
1 |
-
=== WooCommerce Menu Cart ===
|
2 |
-
Contributors: jprummer, pomegranate
|
3 |
-
Donate link: https://www.wpovernight.com/
|
4 |
-
Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, edd, ecommerce, eshop, wp-ecommerce, jigoshop, wpec
|
5 |
-
Requires at least: 3.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.7.7
|
9 |
-
|
10 |
-
Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
**Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop**
|
15 |
-
|
16 |
-
This plugin installs a shopping cart button in the navigation bar. The plugin takes less than a minute to setup,
|
17 |
-
and includes the following options:
|
18 |
-
|
19 |
-
* Display cart icon, or only items/prices.
|
20 |
-
* Display items only, price only, or both.
|
21 |
-
* Display always, or only when there are items in the cart.
|
22 |
-
* Float left, float right, or use your menu's default settings.
|
23 |
-
* Customize your own CSS
|
24 |
-
|
25 |
-
Pro Version Includes:
|
26 |
-
|
27 |
-
* A choice of over 10 cart icons
|
28 |
-
* A fully featured cart details flyout
|
29 |
-
* Ability to add cart + flyout for unlimited menus
|
30 |
-
* Ability to add a custom css class
|
31 |
-
* Automatic updates on any great new features
|
32 |
-
* Shortcode to display cart *anywhere* on your site
|
33 |
-
* Quick and thorough support
|
34 |
-
|
35 |
-
**Download the Pro version here - https://wpovernight.com/downloads/menu-cart-pro/**
|
36 |
-
|
37 |
-
Finally, the cart automatically conforms to your site's styles, leaving you with no extra work.
|
38 |
-
|
39 |
-
Compatibility:
|
40 |
-
|
41 |
-
* WooCommerce
|
42 |
-
* Easy Digital Downloads
|
43 |
-
* Eshop
|
44 |
-
* WP-Ecommerce
|
45 |
-
* Jigoshop
|
46 |
-
|
47 |
-
Translations:
|
48 |
-
|
49 |
-
* Brazilian Portuguese
|
50 |
-
* Danish
|
51 |
-
* Dutch
|
52 |
-
* Croatian
|
53 |
-
* Czech
|
54 |
-
* English
|
55 |
-
* French
|
56 |
-
* German
|
57 |
-
* Greek
|
58 |
-
* Hebrew
|
59 |
-
* Hungarian
|
60 |
-
* Italian
|
61 |
-
* Norwegian
|
62 |
-
* Persian
|
63 |
-
* Polish
|
64 |
-
* Portuguese
|
65 |
-
* Russian
|
66 |
-
* Spanish[1]
|
67 |
-
* Swedish
|
68 |
-
* Turkish
|
69 |
-
* Vietnamese
|
70 |
-
|
71 |
-
[1] WebHostingHub
|
72 |
-
== Installation ==
|
73 |
-
|
74 |
-
Delete any old installations of the plugin. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
|
75 |
-
|
76 |
-
Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your options, save and you're ready to go. It's that easy!
|
77 |
-
|
78 |
-
== Screenshots ==
|
79 |
-
|
80 |
-
1. Shows menu before and after Menu Cart.
|
81 |
-
2. 3 different display style options to choose from.
|
82 |
-
3. Shows settings page.
|
83 |
-
|
84 |
-
== Frequently Asked Questions ==
|
85 |
-
|
86 |
-
== Changelog ==
|
87 |
-
|
88 |
-
= 2.7.
|
89 |
-
*
|
90 |
-
*
|
91 |
-
*
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
*
|
96 |
-
*
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
*
|
101 |
-
*
|
102 |
-
*
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
*
|
108 |
-
|
109 |
-
|
110 |
-
*
|
111 |
-
|
112 |
-
= 2.7.
|
113 |
-
* Tested
|
114 |
-
|
115 |
-
= 2.7.
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
*
|
124 |
-
*
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
*
|
132 |
-
*
|
133 |
-
*
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
*
|
140 |
-
*
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
*
|
146 |
-
*
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
* Fix:
|
152 |
-
*
|
153 |
-
* Tweak:
|
154 |
-
|
155 |
-
= 2.5.
|
156 |
-
|
157 |
-
*
|
158 |
-
* New:
|
159 |
-
* Tweak:
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
*
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
*
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
*
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
*
|
181 |
-
*
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
*
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
*
|
200 |
-
*
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
*
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
*
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
= 2.
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
*
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
*
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
*
|
256 |
-
*
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
*
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
*
|
275 |
-
*
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
*
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
*
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
Initial Release
|
1 |
+
=== WooCommerce Menu Cart ===
|
2 |
+
Contributors: jprummer, pomegranate
|
3 |
+
Donate link: https://www.wpovernight.com/
|
4 |
+
Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, edd, ecommerce, eshop, wp-ecommerce, jigoshop, wpec
|
5 |
+
Requires at least: 3.4
|
6 |
+
Tested up to: 5.4
|
7 |
+
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.7.7
|
9 |
+
|
10 |
+
Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
**Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop**
|
15 |
+
|
16 |
+
This plugin installs a shopping cart button in the navigation bar. The plugin takes less than a minute to setup,
|
17 |
+
and includes the following options:
|
18 |
+
|
19 |
+
* Display cart icon, or only items/prices.
|
20 |
+
* Display items only, price only, or both.
|
21 |
+
* Display always, or only when there are items in the cart.
|
22 |
+
* Float left, float right, or use your menu's default settings.
|
23 |
+
* Customize your own CSS
|
24 |
+
|
25 |
+
Pro Version Includes:
|
26 |
+
|
27 |
+
* A choice of over 10 cart icons
|
28 |
+
* A fully featured cart details flyout
|
29 |
+
* Ability to add cart + flyout for unlimited menus
|
30 |
+
* Ability to add a custom css class
|
31 |
+
* Automatic updates on any great new features
|
32 |
+
* Shortcode to display cart *anywhere* on your site
|
33 |
+
* Quick and thorough support
|
34 |
+
|
35 |
+
**Download the Pro version here - https://wpovernight.com/downloads/menu-cart-pro/**
|
36 |
+
|
37 |
+
Finally, the cart automatically conforms to your site's styles, leaving you with no extra work.
|
38 |
+
|
39 |
+
Compatibility:
|
40 |
+
|
41 |
+
* WooCommerce
|
42 |
+
* Easy Digital Downloads
|
43 |
+
* Eshop
|
44 |
+
* WP-Ecommerce
|
45 |
+
* Jigoshop
|
46 |
+
|
47 |
+
Translations:
|
48 |
+
|
49 |
+
* Brazilian Portuguese
|
50 |
+
* Danish
|
51 |
+
* Dutch
|
52 |
+
* Croatian
|
53 |
+
* Czech
|
54 |
+
* English
|
55 |
+
* French
|
56 |
+
* German
|
57 |
+
* Greek
|
58 |
+
* Hebrew
|
59 |
+
* Hungarian
|
60 |
+
* Italian
|
61 |
+
* Norwegian
|
62 |
+
* Persian
|
63 |
+
* Polish
|
64 |
+
* Portuguese
|
65 |
+
* Russian
|
66 |
+
* Spanish[1]
|
67 |
+
* Swedish
|
68 |
+
* Turkish
|
69 |
+
* Vietnamese
|
70 |
+
|
71 |
+
[1] WebHostingHub
|
72 |
+
== Installation ==
|
73 |
+
|
74 |
+
Delete any old installations of the plugin. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
|
75 |
+
|
76 |
+
Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your options, save and you're ready to go. It's that easy!
|
77 |
+
|
78 |
+
== Screenshots ==
|
79 |
+
|
80 |
+
1. Shows menu before and after Menu Cart.
|
81 |
+
2. 3 different display style options to choose from.
|
82 |
+
3. Shows settings page.
|
83 |
+
|
84 |
+
== Frequently Asked Questions ==
|
85 |
+
|
86 |
+
== Changelog ==
|
87 |
+
|
88 |
+
= 2.7.8 =
|
89 |
+
* Improved: Site/user locale detection
|
90 |
+
* Improved: Textdomain fallback
|
91 |
+
* Translations: Included POT & Updated Dutch
|
92 |
+
* Tested up to WooCommerce 4.0 & WP5.4
|
93 |
+
|
94 |
+
= 2.7.7 =
|
95 |
+
* Fix: include default classes when menu cart is the only item in the menu
|
96 |
+
* Fix: cart existence check global usage only for old versions
|
97 |
+
* Tested up to WooCommerce 3.9
|
98 |
+
|
99 |
+
= 2.7.6 =
|
100 |
+
* Improved accessibility for screen readers (cart icon)
|
101 |
+
* Tested up to WC3.8
|
102 |
+
* Tested up to WP5.3
|
103 |
+
|
104 |
+
= 2.7.5 =
|
105 |
+
* Fix: check if woocommerce version constant is defined
|
106 |
+
* Fix: Prevent fatal errors when switching eCommerce plugins
|
107 |
+
* Fix: Persian translations
|
108 |
+
* Fix: Notices when not using icon
|
109 |
+
* Marked tested up to WC3.6
|
110 |
+
* Marked tested up to WP5.2
|
111 |
+
|
112 |
+
= 2.7.4 =
|
113 |
+
* Tested up to WP5.1
|
114 |
+
|
115 |
+
= 2.7.3 =
|
116 |
+
* Fix: French plural forms rule (zero = single)
|
117 |
+
|
118 |
+
= 2.7.2 =
|
119 |
+
* Tested with WooCommerce 3.5
|
120 |
+
|
121 |
+
= 2.7.1 =
|
122 |
+
|
123 |
+
* fix label on price to display setting
|
124 |
+
* Fix live updating cart for first product with 'Always display cart' setting enabled
|
125 |
+
|
126 |
+
= 2.7.0 =
|
127 |
+
|
128 |
+
* Feature: Full integration with wordpress.org language packs (finally!)
|
129 |
+
* Feature (WooCommerce): Option to display either total (including fees) or subtotal (total of products)
|
130 |
+
* Feature (EDD): Native integration with EDD AJAX
|
131 |
+
* Fix: Several improvements & fixes to WooCommerce AJAX integration for sites with server side caching
|
132 |
+
* Fix: Cart icon on settings page
|
133 |
+
* Translations: added Turkish
|
134 |
+
|
135 |
+
= 2.6.1 =
|
136 |
+
|
137 |
+
* Feature: Option to hide theme cart from Storefront or Divi
|
138 |
+
* Feature: Improved WooCommerce AJAX compatibility
|
139 |
+
* Fix: Updated FontAwesome to 4.7.0
|
140 |
+
* Tweak: load FontAwesome in separate CSS file to allow dequeueing
|
141 |
+
* Translations: Updated pt_BR
|
142 |
+
|
143 |
+
= 2.6.0 =
|
144 |
+
|
145 |
+
* WooCommerce 3.0 compatibility
|
146 |
+
* Translations: updated Swedish
|
147 |
+
|
148 |
+
= 2.5.8 =
|
149 |
+
|
150 |
+
* Translations: Added Croatian, Hebrew, Hungarian (updated) & Vietnamese
|
151 |
+
* Fix: Built-in AJAX for multiple menus
|
152 |
+
* Fix: Textdomain definition and allow custom translations
|
153 |
+
* Tweak: prevent loading cart when WooCommerce not loaded
|
154 |
+
|
155 |
+
= 2.5.7 =
|
156 |
+
|
157 |
+
* Fix: Improved JS in Easy Digital Downloads
|
158 |
+
* New: Hungarian translation
|
159 |
+
* Tweak: Use css dash instead of hard-coded dash
|
160 |
+
|
161 |
+
= 2.5.6 =
|
162 |
+
|
163 |
+
* New: Slovak Translation
|
164 |
+
* New: Option to use built in js
|
165 |
+
* Tweak: Moved JS to footer
|
166 |
+
* Tweak: improved css positioning
|
167 |
+
* Tweak: added js selectors
|
168 |
+
* Tweak: Brazilian Portuguese Translation
|
169 |
+
|
170 |
+
= 2.5.5 =
|
171 |
+
|
172 |
+
* New: Norwegian Translation
|
173 |
+
|
174 |
+
= 2.5.4 =
|
175 |
+
|
176 |
+
* New: Czech Translations
|
177 |
+
* New: Greek Translations
|
178 |
+
* Tweak: Seperated Item Classes
|
179 |
+
* Tweak: Removed Unnecessary submenu classes
|
180 |
+
* Tweak: Use get_total() instead of get_cart_total()
|
181 |
+
* Fix: Prices show tax if cart prices are set to display including tax
|
182 |
+
* Fix: Updated Font Awesome
|
183 |
+
|
184 |
+
= 2.5.3 =
|
185 |
+
|
186 |
+
* Fix: Ubermenu
|
187 |
+
* Added: Greek Translation
|
188 |
+
|
189 |
+
= 2.5.2 =
|
190 |
+
|
191 |
+
*Tweak: Merged menu cart versions
|
192 |
+
|
193 |
+
= 2.5.1 =
|
194 |
+
|
195 |
+
* WPML String Translation fix
|
196 |
+
|
197 |
+
= 2.5 =
|
198 |
+
|
199 |
+
* Major Code refactor: CLEANER, FASTER, MORE FLEXIBLE!
|
200 |
+
* Added: Shop detection for Multisite
|
201 |
+
* Added: WPML String Translation setting
|
202 |
+
* Added: Persian translations
|
203 |
+
* Updated: Font Awesome
|
204 |
+
* Updated: Spanish, Portugese, Brazilian, French & Polish Translations
|
205 |
+
* Fix: PHP strict warnings
|
206 |
+
* Fix: CSS for Twenty Twelve & Twenty Fourteen
|
207 |
+
|
208 |
+
= 2.2.2 =
|
209 |
+
|
210 |
+
* Jigoshop Bug Fix
|
211 |
+
|
212 |
+
= 2.2.1 =
|
213 |
+
|
214 |
+
* WPML bug fixes
|
215 |
+
|
216 |
+
= 2.2.0 =
|
217 |
+
|
218 |
+
* Several bugfixes & improvements
|
219 |
+
* Better AJAX integration with EDD & eShop
|
220 |
+
* Various filters added for better theme integration & easier customization
|
221 |
+
* DOMHtml warnings surpressed
|
222 |
+
|
223 |
+
= 2.1.5 =
|
224 |
+
|
225 |
+
Fix: Edd and WP e-Commerce ajax.
|
226 |
+
|
227 |
+
= 2.1.4 =
|
228 |
+
|
229 |
+
Fixed WP e-Commerce ajax conflict and uploaded proper French translation.
|
230 |
+
|
231 |
+
= 2.1.3 =
|
232 |
+
|
233 |
+
EDD total price bug fixed
|
234 |
+
|
235 |
+
= 2.1.2 =
|
236 |
+
|
237 |
+
Added WP-Ecommerce and EDD
|
238 |
+
|
239 |
+
= 2.1.0 =
|
240 |
+
|
241 |
+
Initial Release
|
242 |
+
|
243 |
+
== Upgrade Notice ==
|
244 |
+
|
245 |
+
= 2.5.5 =
|
246 |
+
|
247 |
+
* New: Norwegian Translation
|
248 |
+
|
249 |
+
= 2.5.4 =
|
250 |
+
|
251 |
+
* New: Czech Translations
|
252 |
+
* New: Greek Translations
|
253 |
+
* Tweak: Seperated Item Classes
|
254 |
+
* Tweak: Removed Unnecessary submenu classes
|
255 |
+
* Tweak: Use get_total() instead of get_cart_total()
|
256 |
+
* Fix: Prices show tax if cart prices are set to display including tax
|
257 |
+
* Fix: Updated Font Awesome
|
258 |
+
|
259 |
+
= 2.5.3 =
|
260 |
+
|
261 |
+
* Fix: Ubermenu
|
262 |
+
* Added: Greek Translation
|
263 |
+
|
264 |
+
= 2.5.2 =
|
265 |
+
|
266 |
+
*Tweak: Merged menu cart versions
|
267 |
+
|
268 |
+
= 2.5.1 =
|
269 |
+
|
270 |
+
* WPML String Translation fix
|
271 |
+
|
272 |
+
= 2.5 =
|
273 |
+
|
274 |
+
* Major Code refactor: CLEANER, FASTER, MORE FLEXIBLE!
|
275 |
+
* Added: Shop detection for Multisite
|
276 |
+
* Added: WPML String Translation setting
|
277 |
+
* Added: Persian translations
|
278 |
+
* Updated: Font Awesome
|
279 |
+
* Updated: Spanish, Portugese, Brazilian, French & Polish Translations
|
280 |
+
* Fix: PHP strict warnings
|
281 |
+
* Fix: CSS for Twenty Twelve & Twenty Fourteen
|
282 |
+
|
283 |
+
= 2.2.2 =
|
284 |
+
|
285 |
+
* Jigoshop Bug Fix
|
286 |
+
|
287 |
+
= 2.2.1 =
|
288 |
+
|
289 |
+
* WPML bug fixes
|
290 |
+
|
291 |
+
= 2.2.0 =
|
292 |
+
|
293 |
+
* Several bugfixes & improvements
|
294 |
+
* Better AJAX integration with EDD & eShop
|
295 |
+
* Various filters added for better theme integration & easier customization
|
296 |
+
* DOMHtml warnings surpressed
|
297 |
+
|
298 |
+
= 2.1.5 =
|
299 |
+
|
300 |
+
Fix: Edd and WP e-Commerce ajax.
|
301 |
+
|
302 |
+
= 2.1.4 =
|
303 |
+
|
304 |
+
Fixed WP e-Commerce ajax conflict and uploaded proper French translation.
|
305 |
+
|
306 |
+
= 2.1.3 =
|
307 |
+
|
308 |
+
EDD total price bug fixed
|
309 |
+
|
310 |
+
= 2.1.2 =
|
311 |
+
|
312 |
+
Added WP-Ecommerce and EDD
|
313 |
+
|
314 |
+
= 2.1.0 =
|
315 |
+
|
316 |
Initial Release
|
wp-menu-cart.php
CHANGED
@@ -1,619 +1,644 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin Name:
|
4 |
-
* Plugin URI: www.wpovernight.com/plugins
|
5 |
-
* Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
|
6 |
-
* Version: 2.7.
|
7 |
-
* Author: Jeremiah Prummer, Ewout Fernhout
|
8 |
-
* Author URI: www.wpovernight.com/
|
9 |
-
* License: GPL2
|
10 |
-
* Text Domain: wp-menu-cart
|
11 |
-
* WC requires at least: 2.0.0
|
12 |
-
* WC tested up to:
|
13 |
-
*/
|
14 |
-
|
15 |
-
class WpMenuCart {
|
16 |
-
|
17 |
-
public static $plugin_slug;
|
18 |
-
public static $plugin_basename;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Construct.
|
22 |
-
*/
|
23 |
-
public function __construct() {
|
24 |
-
self::$plugin_slug = basename(dirname(__FILE__));
|
25 |
-
self::$plugin_basename = plugin_basename(__FILE__);
|
26 |
-
|
27 |
-
$this->options = get_option('wpmenucart');
|
28 |
-
|
29 |
-
// load the localisation & classes
|
30 |
-
add_action( 'plugins_loaded', array( &$this, 'languages' ), 0 ); // or use init?
|
31 |
-
add_filter( 'load_textdomain_mofile', array( $this, 'textdomain_fallback' ), 10, 2 );
|
32 |
-
add_action( 'init', array( &$this, 'wpml' ), 0 );
|
33 |
-
add_action( 'init', array( $this, 'load_classes' ) );
|
34 |
-
|
35 |
-
// enqueue scripts & ajax
|
36 |
-
add_action( 'wp_enqueue_scripts', array( &$this, 'load_scripts_styles' ) ); // Load scripts
|
37 |
-
add_action( 'wp_ajax_wpmenucart_ajax', array( &$this, 'wpmenucart_ajax' ), 0 );
|
38 |
-
add_action( 'wp_ajax_nopriv_wpmenucart_ajax', array( &$this, 'wpmenucart_ajax' ), 0 );
|
39 |
-
|
40 |
-
// add filters to selected menus to add cart item <li>
|
41 |
-
add_action( 'init', array( $this, 'filter_nav_menus' ) );
|
42 |
-
// $this->filter_nav_menus();
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Load classes
|
47 |
-
* @return void
|
48 |
-
*/
|
49 |
-
public function load_classes() {
|
50 |
-
include_once( 'includes/wpmenucart-settings.php' );
|
51 |
-
$this->settings = new WpMenuCart_Settings();
|
52 |
-
|
53 |
-
if ( $this->good_to_go() ) {
|
54 |
-
if (isset($this->options['shop_plugin'])) {
|
55 |
-
if ( false === $this->is_shop_active( $this->options['shop_plugin'] ) ) {
|
56 |
-
return;
|
57 |
-
}
|
58 |
-
switch ($this->options['shop_plugin']) {
|
59 |
-
case 'woocommerce':
|
60 |
-
include_once( 'includes/wpmenucart-woocommerce.php' );
|
61 |
-
$this->shop = new WPMenuCart_WooCommerce();
|
62 |
-
if ( !isset($this->options['builtin_ajax']) ) {
|
63 |
-
if ( defined('WOOCOMMERCE_VERSION') && version_compare( WOOCOMMERCE_VERSION, '2.7', '>=' ) ) {
|
64 |
-
add_filter( 'woocommerce_add_to_cart_fragments', array( $this, 'woocommerce_ajax_fragments' ) );
|
65 |
-
} else {
|
66 |
-
add_filter( 'add_to_cart_fragments', array( $this, 'woocommerce_ajax_fragments' ) );
|
67 |
-
}
|
68 |
-
}
|
69 |
-
break;
|
70 |
-
case 'jigoshop':
|
71 |
-
include_once( 'includes/wpmenucart-jigoshop.php' );
|
72 |
-
$this->shop = new WPMenuCart_Jigoshop();
|
73 |
-
if ( !isset($this->options['builtin_ajax']) ) {
|
74 |
-
add_filter( 'add_to_cart_fragments', array( &$this, 'woocommerce_ajax_fragments' ) );
|
75 |
-
}
|
76 |
-
break;
|
77 |
-
case 'wp-e-commerce':
|
78 |
-
include_once( 'includes/wpmenucart-wpec.php' );
|
79 |
-
$this->shop = new WPMenuCart_WPEC();
|
80 |
-
break;
|
81 |
-
case 'eshop':
|
82 |
-
include_once( 'includes/wpmenucart-eshop.php' );
|
83 |
-
$this->shop = new WPMenuCart_eShop();
|
84 |
-
break;
|
85 |
-
case 'easy-digital-downloads':
|
86 |
-
include_once( 'includes/wpmenucart-edd.php' );
|
87 |
-
$this->shop = new WPMenuCart_EDD();
|
88 |
-
if ( !isset($this->options['builtin_ajax']) ) {
|
89 |
-
add_action("wp_enqueue_scripts", array( &$this, 'load_edd_ajax' ), 0 );
|
90 |
-
}
|
91 |
-
break;
|
92 |
-
}
|
93 |
-
if ( isset( $this->options['builtin_ajax'] ) || in_array( $this->options['shop_plugin'], array( 'WP e-Commerce', 'wp-e-commerce', 'eShop', 'eshop' ) ) ) {
|
94 |
-
add_action("wp_enqueue_scripts", array( &$this, 'load_custom_ajax' ), 0 );
|
95 |
-
}
|
96 |
-
|
97 |
-
}
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Check if a shop is active or if conflicting old versions of the plugin are active
|
103 |
-
* @return boolean
|
104 |
-
*/
|
105 |
-
public function good_to_go() {
|
106 |
-
$wpmenucart_shop_check = get_option( 'wpmenucart_shop_check' );
|
107 |
-
$active_plugins = $this->get_active_plugins();
|
108 |
-
|
109 |
-
// check for shop plugins
|
110 |
-
if ( !$this->is_shop_active() && $wpmenucart_shop_check != 'hide' ) {
|
111 |
-
add_action( 'admin_notices', array ( $this, 'need_shop' ) );
|
112 |
-
return FALSE;
|
113 |
-
}
|
114 |
-
|
115 |
-
// check for old versions
|
116 |
-
if ( count( $this->get_active_old_versions() ) > 0 ) {
|
117 |
-
add_action( 'admin_notices', array ( $this, 'woocommerce_version_active' ) );
|
118 |
-
return FALSE;
|
119 |
-
}
|
120 |
-
|
121 |
-
// we made it! good to go :o)
|
122 |
-
return TRUE;
|
123 |
-
}
|
124 |
-
|
125 |
-
/**
|
126 |
-
* Return true if one ore more shops are activated.
|
127 |
-
* @return boolean
|
128 |
-
*/
|
129 |
-
public function is_shop_active( $shop = '' ) {
|
130 |
-
if ( empty($shop) ) {
|
131 |
-
if ( count( $this->get_active_shops() ) > 0 ) {
|
132 |
-
return TRUE;
|
133 |
-
} else {
|
134 |
-
return FALSE;
|
135 |
-
}
|
136 |
-
} else {
|
137 |
-
switch ( $shop ) {
|
138 |
-
case 'woocommerce':
|
139 |
-
return function_exists('WC');
|
140 |
-
break;
|
141 |
-
case 'easy-digital-downloads':
|
142 |
-
return function_exists('EDD');
|
143 |
-
break;
|
144 |
-
case 'jigoshop':
|
145 |
-
return class_exists('jigoshop_cart');
|
146 |
-
break;
|
147 |
-
case 'wp-e-commerce':
|
148 |
-
return function_exists('wpsc_cart_item_count');
|
149 |
-
break;
|
150 |
-
case 'eshop':
|
151 |
-
return !empty($GLOBALS['eshopoptions']);
|
152 |
-
break;
|
153 |
-
default:
|
154 |
-
return false;
|
155 |
-
break;
|
156 |
-
}
|
157 |
-
}
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* Get an array of all active plugins, including multisite
|
162 |
-
* @return array active plugin paths
|
163 |
-
*/
|
164 |
-
public static function get_active_plugins() {
|
165 |
-
$active_plugins = (array) apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
|
166 |
-
if (is_multisite()) {
|
167 |
-
// get_site_option( 'active_sitewide_plugins', array() ) returns a 'reversed list'
|
168 |
-
// like [hello-dolly/hello.php] => 1369572703 so we do array_keys to make the array
|
169 |
-
// compatible with $active_plugins
|
170 |
-
$active_sitewide_plugins = (array) array_keys( get_site_option( 'active_sitewide_plugins', array() ) );
|
171 |
-
// merge arrays and remove doubles
|
172 |
-
$active_plugins = (array) array_unique( array_merge( $active_plugins, $active_sitewide_plugins ) );
|
173 |
-
}
|
174 |
-
|
175 |
-
return $active_plugins;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* Get array of active shop plugins
|
180 |
-
*
|
181 |
-
* @return array plugin name => plugin path
|
182 |
-
*/
|
183 |
-
public static function get_active_shops() {
|
184 |
-
$active_plugins = self::get_active_plugins();
|
185 |
-
|
186 |
-
$shop_plugins = array (
|
187 |
-
'WooCommerce' => 'woocommerce/woocommerce.php',
|
188 |
-
'Jigoshop' => 'jigoshop/jigoshop.php',
|
189 |
-
'WP e-Commerce' => 'wp-e-commerce/wp-shopping-cart.php',
|
190 |
-
'eShop' => 'eshop/eshop.php',
|
191 |
-
'Easy Digital Downloads' => 'easy-digital-downloads/easy-digital-downloads.php',
|
192 |
-
);
|
193 |
-
|
194 |
-
// filter shop plugins & add shop names as keys
|
195 |
-
$active_shop_plugins = array_intersect( $shop_plugins, $active_plugins );
|
196 |
-
|
197 |
-
return $active_shop_plugins;
|
198 |
-
}
|
199 |
-
|
200 |
-
/**
|
201 |
-
* Get array of active old WooCommerce Menu Cart plugins
|
202 |
-
*
|
203 |
-
* @return array plugin paths
|
204 |
-
*/
|
205 |
-
public function get_active_old_versions() {
|
206 |
-
$active_plugins = $this->get_active_plugins();
|
207 |
-
|
208 |
-
$old_versions = array (
|
209 |
-
'woocommerce-menu-bar-cart/wc_cart_nav.php', //first version
|
210 |
-
'woocommerce-menu-bar-cart/woocommerce-menu-cart.php', //last free version
|
211 |
-
'woocommerce-menu-cart/woocommerce-menu-cart.php', //never actually released? just in case...
|
212 |
-
'woocommerce-menu-cart-pro/woocommerce-menu-cart-pro.php', //old pro version
|
213 |
-
);
|
214 |
-
|
215 |
-
$active_old_plugins = array_intersect( $old_versions, $active_plugins );
|
216 |
-
|
217 |
-
return $active_old_plugins;
|
218 |
-
}
|
219 |
-
|
220 |
-
/**
|
221 |
-
* Fallback admin notices
|
222 |
-
*
|
223 |
-
* @return string Fallack notice.
|
224 |
-
*/
|
225 |
-
public function need_shop() {
|
226 |
-
$error = __( 'WP Menu Cart could not detect an active shop plugin. Make sure you have activated at least one of the supported plugins.' , 'wp-menu-cart' );
|
227 |
-
$message = sprintf('<div class="error"><p>%1$s <a href="%2$s">%3$s</a></p></div>', $error, add_query_arg( 'hide_wpmenucart_shop_check', 'true' ), __( 'Hide this notice', 'wp-menu-cart' ) );
|
228 |
-
echo $message;
|
229 |
-
}
|
230 |
-
|
231 |
-
public function woocommerce_version_active() {
|
232 |
-
$error = __( 'An old version of WooCommerce Menu Cart is currently activated, you need to disable or uninstall it for WP Menu Cart to function properly' , 'wp-menu-cart' );
|
233 |
-
$message = '<div class="error"><p>' . $error . '</p></div>';
|
234 |
-
echo $message;
|
235 |
-
}
|
236 |
-
|
237 |
-
/**
|
238 |
-
* Load translations.
|
239 |
-
*/
|
240 |
-
public function languages() {
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
*
|
250 |
-
*
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
'
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
'wpmenucart-
|
382 |
-
plugins_url( '/
|
383 |
-
|
384 |
-
);
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
//
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
$
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
$
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
$
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
$
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
$this->
|
563 |
-
|
564 |
-
|
565 |
-
$
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
619 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Plugin Name: WP Menu Cart
|
4 |
+
* Plugin URI: www.wpovernight.com/plugins
|
5 |
+
* Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
|
6 |
+
* Version: 2.7.8
|
7 |
+
* Author: Jeremiah Prummer, Ewout Fernhout
|
8 |
+
* Author URI: www.wpovernight.com/
|
9 |
+
* License: GPL2
|
10 |
+
* Text Domain: wp-menu-cart
|
11 |
+
* WC requires at least: 2.0.0
|
12 |
+
* WC tested up to: 4.0.0
|
13 |
+
*/
|
14 |
+
|
15 |
+
class WpMenuCart {
|
16 |
+
|
17 |
+
public static $plugin_slug;
|
18 |
+
public static $plugin_basename;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Construct.
|
22 |
+
*/
|
23 |
+
public function __construct() {
|
24 |
+
self::$plugin_slug = basename(dirname(__FILE__));
|
25 |
+
self::$plugin_basename = plugin_basename(__FILE__);
|
26 |
+
|
27 |
+
$this->options = get_option('wpmenucart');
|
28 |
+
|
29 |
+
// load the localisation & classes
|
30 |
+
add_action( 'plugins_loaded', array( &$this, 'languages' ), 0 ); // or use init?
|
31 |
+
add_filter( 'load_textdomain_mofile', array( $this, 'textdomain_fallback' ), 10, 2 );
|
32 |
+
add_action( 'init', array( &$this, 'wpml' ), 0 );
|
33 |
+
add_action( 'init', array( $this, 'load_classes' ) );
|
34 |
+
|
35 |
+
// enqueue scripts & ajax
|
36 |
+
add_action( 'wp_enqueue_scripts', array( &$this, 'load_scripts_styles' ) ); // Load scripts
|
37 |
+
add_action( 'wp_ajax_wpmenucart_ajax', array( &$this, 'wpmenucart_ajax' ), 0 );
|
38 |
+
add_action( 'wp_ajax_nopriv_wpmenucart_ajax', array( &$this, 'wpmenucart_ajax' ), 0 );
|
39 |
+
|
40 |
+
// add filters to selected menus to add cart item <li>
|
41 |
+
add_action( 'init', array( $this, 'filter_nav_menus' ) );
|
42 |
+
// $this->filter_nav_menus();
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Load classes
|
47 |
+
* @return void
|
48 |
+
*/
|
49 |
+
public function load_classes() {
|
50 |
+
include_once( 'includes/wpmenucart-settings.php' );
|
51 |
+
$this->settings = new WpMenuCart_Settings();
|
52 |
+
|
53 |
+
if ( $this->good_to_go() ) {
|
54 |
+
if (isset($this->options['shop_plugin'])) {
|
55 |
+
if ( false === $this->is_shop_active( $this->options['shop_plugin'] ) ) {
|
56 |
+
return;
|
57 |
+
}
|
58 |
+
switch ($this->options['shop_plugin']) {
|
59 |
+
case 'woocommerce':
|
60 |
+
include_once( 'includes/wpmenucart-woocommerce.php' );
|
61 |
+
$this->shop = new WPMenuCart_WooCommerce();
|
62 |
+
if ( !isset($this->options['builtin_ajax']) ) {
|
63 |
+
if ( defined('WOOCOMMERCE_VERSION') && version_compare( WOOCOMMERCE_VERSION, '2.7', '>=' ) ) {
|
64 |
+
add_filter( 'woocommerce_add_to_cart_fragments', array( $this, 'woocommerce_ajax_fragments' ) );
|
65 |
+
} else {
|
66 |
+
add_filter( 'add_to_cart_fragments', array( $this, 'woocommerce_ajax_fragments' ) );
|
67 |
+
}
|
68 |
+
}
|
69 |
+
break;
|
70 |
+
case 'jigoshop':
|
71 |
+
include_once( 'includes/wpmenucart-jigoshop.php' );
|
72 |
+
$this->shop = new WPMenuCart_Jigoshop();
|
73 |
+
if ( !isset($this->options['builtin_ajax']) ) {
|
74 |
+
add_filter( 'add_to_cart_fragments', array( &$this, 'woocommerce_ajax_fragments' ) );
|
75 |
+
}
|
76 |
+
break;
|
77 |
+
case 'wp-e-commerce':
|
78 |
+
include_once( 'includes/wpmenucart-wpec.php' );
|
79 |
+
$this->shop = new WPMenuCart_WPEC();
|
80 |
+
break;
|
81 |
+
case 'eshop':
|
82 |
+
include_once( 'includes/wpmenucart-eshop.php' );
|
83 |
+
$this->shop = new WPMenuCart_eShop();
|
84 |
+
break;
|
85 |
+
case 'easy-digital-downloads':
|
86 |
+
include_once( 'includes/wpmenucart-edd.php' );
|
87 |
+
$this->shop = new WPMenuCart_EDD();
|
88 |
+
if ( !isset($this->options['builtin_ajax']) ) {
|
89 |
+
add_action("wp_enqueue_scripts", array( &$this, 'load_edd_ajax' ), 0 );
|
90 |
+
}
|
91 |
+
break;
|
92 |
+
}
|
93 |
+
if ( isset( $this->options['builtin_ajax'] ) || in_array( $this->options['shop_plugin'], array( 'WP e-Commerce', 'wp-e-commerce', 'eShop', 'eshop' ) ) ) {
|
94 |
+
add_action("wp_enqueue_scripts", array( &$this, 'load_custom_ajax' ), 0 );
|
95 |
+
}
|
96 |
+
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
/**
|
102 |
+
* Check if a shop is active or if conflicting old versions of the plugin are active
|
103 |
+
* @return boolean
|
104 |
+
*/
|
105 |
+
public function good_to_go() {
|
106 |
+
$wpmenucart_shop_check = get_option( 'wpmenucart_shop_check' );
|
107 |
+
$active_plugins = $this->get_active_plugins();
|
108 |
+
|
109 |
+
// check for shop plugins
|
110 |
+
if ( !$this->is_shop_active() && $wpmenucart_shop_check != 'hide' ) {
|
111 |
+
add_action( 'admin_notices', array ( $this, 'need_shop' ) );
|
112 |
+
return FALSE;
|
113 |
+
}
|
114 |
+
|
115 |
+
// check for old versions
|
116 |
+
if ( count( $this->get_active_old_versions() ) > 0 ) {
|
117 |
+
add_action( 'admin_notices', array ( $this, 'woocommerce_version_active' ) );
|
118 |
+
return FALSE;
|
119 |
+
}
|
120 |
+
|
121 |
+
// we made it! good to go :o)
|
122 |
+
return TRUE;
|
123 |
+
}
|
124 |
+
|
125 |
+
/**
|
126 |
+
* Return true if one ore more shops are activated.
|
127 |
+
* @return boolean
|
128 |
+
*/
|
129 |
+
public function is_shop_active( $shop = '' ) {
|
130 |
+
if ( empty($shop) ) {
|
131 |
+
if ( count( $this->get_active_shops() ) > 0 ) {
|
132 |
+
return TRUE;
|
133 |
+
} else {
|
134 |
+
return FALSE;
|
135 |
+
}
|
136 |
+
} else {
|
137 |
+
switch ( $shop ) {
|
138 |
+
case 'woocommerce':
|
139 |
+
return function_exists('WC');
|
140 |
+
break;
|
141 |
+
case 'easy-digital-downloads':
|
142 |
+
return function_exists('EDD');
|
143 |
+
break;
|
144 |
+
case 'jigoshop':
|
145 |
+
return class_exists('jigoshop_cart');
|
146 |
+
break;
|
147 |
+
case 'wp-e-commerce':
|
148 |
+
return function_exists('wpsc_cart_item_count');
|
149 |
+
break;
|
150 |
+
case 'eshop':
|
151 |
+
return !empty($GLOBALS['eshopoptions']);
|
152 |
+
break;
|
153 |
+
default:
|
154 |
+
return false;
|
155 |
+
break;
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Get an array of all active plugins, including multisite
|
162 |
+
* @return array active plugin paths
|
163 |
+
*/
|
164 |
+
public static function get_active_plugins() {
|
165 |
+
$active_plugins = (array) apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
|
166 |
+
if (is_multisite()) {
|
167 |
+
// get_site_option( 'active_sitewide_plugins', array() ) returns a 'reversed list'
|
168 |
+
// like [hello-dolly/hello.php] => 1369572703 so we do array_keys to make the array
|
169 |
+
// compatible with $active_plugins
|
170 |
+
$active_sitewide_plugins = (array) array_keys( get_site_option( 'active_sitewide_plugins', array() ) );
|
171 |
+
// merge arrays and remove doubles
|
172 |
+
$active_plugins = (array) array_unique( array_merge( $active_plugins, $active_sitewide_plugins ) );
|
173 |
+
}
|
174 |
+
|
175 |
+
return $active_plugins;
|
176 |
+
}
|
177 |
+
|
178 |
+
/**
|
179 |
+
* Get array of active shop plugins
|
180 |
+
*
|
181 |
+
* @return array plugin name => plugin path
|
182 |
+
*/
|
183 |
+
public static function get_active_shops() {
|
184 |
+
$active_plugins = self::get_active_plugins();
|
185 |
+
|
186 |
+
$shop_plugins = array (
|
187 |
+
'WooCommerce' => 'woocommerce/woocommerce.php',
|
188 |
+
'Jigoshop' => 'jigoshop/jigoshop.php',
|
189 |
+
'WP e-Commerce' => 'wp-e-commerce/wp-shopping-cart.php',
|
190 |
+
'eShop' => 'eshop/eshop.php',
|
191 |
+
'Easy Digital Downloads' => 'easy-digital-downloads/easy-digital-downloads.php',
|
192 |
+
);
|
193 |
+
|
194 |
+
// filter shop plugins & add shop names as keys
|
195 |
+
$active_shop_plugins = array_intersect( $shop_plugins, $active_plugins );
|
196 |
+
|
197 |
+
return $active_shop_plugins;
|
198 |
+
}
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Get array of active old WooCommerce Menu Cart plugins
|
202 |
+
*
|
203 |
+
* @return array plugin paths
|
204 |
+
*/
|
205 |
+
public function get_active_old_versions() {
|
206 |
+
$active_plugins = $this->get_active_plugins();
|
207 |
+
|
208 |
+
$old_versions = array (
|
209 |
+
'woocommerce-menu-bar-cart/wc_cart_nav.php', //first version
|
210 |
+
'woocommerce-menu-bar-cart/woocommerce-menu-cart.php', //last free version
|
211 |
+
'woocommerce-menu-cart/woocommerce-menu-cart.php', //never actually released? just in case...
|
212 |
+
'woocommerce-menu-cart-pro/woocommerce-menu-cart-pro.php', //old pro version
|
213 |
+
);
|
214 |
+
|
215 |
+
$active_old_plugins = array_intersect( $old_versions, $active_plugins );
|
216 |
+
|
217 |
+
return $active_old_plugins;
|
218 |
+
}
|
219 |
+
|
220 |
+
/**
|
221 |
+
* Fallback admin notices
|
222 |
+
*
|
223 |
+
* @return string Fallack notice.
|
224 |
+
*/
|
225 |
+
public function need_shop() {
|
226 |
+
$error = __( 'WP Menu Cart could not detect an active shop plugin. Make sure you have activated at least one of the supported plugins.' , 'wp-menu-cart' );
|
227 |
+
$message = sprintf('<div class="error"><p>%1$s <a href="%2$s">%3$s</a></p></div>', $error, add_query_arg( 'hide_wpmenucart_shop_check', 'true' ), __( 'Hide this notice', 'wp-menu-cart' ) );
|
228 |
+
echo $message;
|
229 |
+
}
|
230 |
+
|
231 |
+
public function woocommerce_version_active() {
|
232 |
+
$error = __( 'An old version of WooCommerce Menu Cart is currently activated, you need to disable or uninstall it for WP Menu Cart to function properly' , 'wp-menu-cart' );
|
233 |
+
$message = '<div class="error"><p>' . $error . '</p></div>';
|
234 |
+
echo $message;
|
235 |
+
}
|
236 |
+
|
237 |
+
/**
|
238 |
+
* Load translations.
|
239 |
+
*/
|
240 |
+
public function languages() {
|
241 |
+
if ( function_exists( 'determine_locale' ) ) { // WP5.0+
|
242 |
+
$locale = determine_locale();
|
243 |
+
} else {
|
244 |
+
$locale = is_admin() && function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale();
|
245 |
+
}
|
246 |
+
$locale = apply_filters( 'plugin_locale', $locale, 'wp-menu-cart' );
|
247 |
+
|
248 |
+
/**
|
249 |
+
* Frontend/global Locale. Looks in:
|
250 |
+
*
|
251 |
+
* - WP_LANG_DIR/wp-menu-cart/wp-menu-cart-LOCALE.mo
|
252 |
+
* - wp-menu-cart/languages/wp-menu-cart-LOCALE.mo (which if not found falls back to:)
|
253 |
+
* - WP_LANG_DIR/plugins/wp-menu-cart-LOCALE.mo
|
254 |
+
*/
|
255 |
+
unload_textdomain( 'wp-menu-cart');
|
256 |
+
load_textdomain( 'wp-menu-cart', WP_LANG_DIR . '/wp-menu-cart/wp-menu-cart-' . $locale . '.mo' );
|
257 |
+
load_plugin_textdomain( 'wp-menu-cart', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
258 |
+
}
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Maintain textdomain compatibility between main plugin (wp-menu-cart) and WooCommerce version (woocommerce-menu-bar-cart)
|
262 |
+
* so that wordpress.org language packs can be used for both
|
263 |
+
*/
|
264 |
+
public function textdomain_fallback( $mofile, $textdomain ) {
|
265 |
+
$main_domain = 'wp-menu-cart';
|
266 |
+
$wc_domain = 'woocommerce-menu-bar-cart';
|
267 |
+
|
268 |
+
// check if this is filtering the mofile for this plugin
|
269 |
+
if ( $textdomain === $main_domain ) {
|
270 |
+
$wc_mofile = str_replace( "{$textdomain}-", "{$wc_domain}-", $mofile ); // with trailing dash to target file and not folder
|
271 |
+
if ( file_exists( $wc_mofile ) ) {
|
272 |
+
if (!is_callable('copy')) {
|
273 |
+
$copy = false;
|
274 |
+
} elseif ( !file_exists( $mofile ) ) {
|
275 |
+
$copy = true;
|
276 |
+
} else { // can copy but file already exists
|
277 |
+
$wc_file_date = filemtime($wc_mofile);
|
278 |
+
$main_file_date = filemtime($mofile);
|
279 |
+
// check if wc file is newer
|
280 |
+
if ( $wc_file_date && $main_file_date && ( $wc_file_date > $main_file_date ) ) {
|
281 |
+
$copy = true;
|
282 |
+
} else {
|
283 |
+
$copy = false;
|
284 |
+
}
|
285 |
+
}
|
286 |
+
// we have a wc override - copy and use it
|
287 |
+
if ( $copy && $success = copy( $wc_mofile, $mofile ) ) {
|
288 |
+
// copy .po too if available
|
289 |
+
$wc_pofile = substr_replace($wc_mofile,".po",-3);
|
290 |
+
if (file_exists($wc_pofile)) {
|
291 |
+
copy($wc_pofile,substr_replace($mofile,".po",-3));
|
292 |
+
}
|
293 |
+
return $mofile;
|
294 |
+
}
|
295 |
+
return $wc_mofile;
|
296 |
+
}
|
297 |
+
}
|
298 |
+
|
299 |
+
return $mofile;
|
300 |
+
}
|
301 |
+
|
302 |
+
/**
|
303 |
+
* Register strings for WPML String Translation
|
304 |
+
*/
|
305 |
+
public function wpml() {
|
306 |
+
if ( isset($this->options['wpml_string_translation']) && function_exists( 'icl_register_string' ) ) {
|
307 |
+
icl_register_string('WP Menu Cart', 'item text', 'item');
|
308 |
+
icl_register_string('WP Menu Cart', 'items text', 'items');
|
309 |
+
icl_register_string('WP Menu Cart', 'empty cart text', 'your cart is currently empty');
|
310 |
+
icl_register_string('WP Menu Cart', 'hover text', 'View your shopping cart');
|
311 |
+
icl_register_string('WP Menu Cart', 'empty hover text', 'Start shopping');
|
312 |
+
}
|
313 |
+
}
|
314 |
+
|
315 |
+
|
316 |
+
/**
|
317 |
+
* Load custom ajax
|
318 |
+
*/
|
319 |
+
public function load_custom_ajax() {
|
320 |
+
wp_enqueue_script(
|
321 |
+
'wpmenucart',
|
322 |
+
plugins_url( '/javascript/wpmenucart.js' , __FILE__ ),
|
323 |
+
array( 'jquery' ),
|
324 |
+
'2.7.8',
|
325 |
+
true
|
326 |
+
);
|
327 |
+
|
328 |
+
// get URL to WordPress ajax handling page
|
329 |
+
if ( $this->options['shop_plugin'] == 'easy-digital-downloads' && function_exists( 'edd_get_ajax_url' ) ) {
|
330 |
+
// use EDD function to prevent SSL issues http://git.io/V7w76A
|
331 |
+
$ajax_url = edd_get_ajax_url();
|
332 |
+
} else {
|
333 |
+
$ajax_url = admin_url( 'admin-ajax.php' );
|
334 |
+
}
|
335 |
+
|
336 |
+
wp_localize_script(
|
337 |
+
'wpmenucart',
|
338 |
+
'wpmenucart_ajax',
|
339 |
+
array(
|
340 |
+
'ajaxurl' => $ajax_url,
|
341 |
+
'nonce' => wp_create_nonce('wpmenucart')
|
342 |
+
)
|
343 |
+
);
|
344 |
+
}
|
345 |
+
|
346 |
+
/**
|
347 |
+
* Load EDD ajax helper
|
348 |
+
*/
|
349 |
+
public function load_edd_ajax() {
|
350 |
+
wp_enqueue_script(
|
351 |
+
'wpmenucart-edd-ajax',
|
352 |
+
plugins_url( '/javascript/wpmenucart-edd-ajax.js', __FILE__ ),
|
353 |
+
array( 'jquery' ),
|
354 |
+
'2.7.8'
|
355 |
+
);
|
356 |
+
|
357 |
+
wp_localize_script(
|
358 |
+
'wpmenucart-edd-ajax',
|
359 |
+
'wpmenucart_ajax',
|
360 |
+
array(
|
361 |
+
'ajaxurl' => function_exists( 'edd_get_ajax_url' ) ? edd_get_ajax_url() : admin_url( 'admin-ajax.php' ),
|
362 |
+
'nonce' => wp_create_nonce('wpmenucart'),
|
363 |
+
'always_display' => isset($this->options['always_display']) ? $this->options['always_display'] : '',
|
364 |
+
)
|
365 |
+
);
|
366 |
+
}
|
367 |
+
|
368 |
+
|
369 |
+
/**
|
370 |
+
* Load CSS
|
371 |
+
*/
|
372 |
+
public function load_scripts_styles() {
|
373 |
+
if (isset($this->options['icon_display'])) {
|
374 |
+
wp_register_style( 'wpmenucart-icons', plugins_url( '/css/wpmenucart-icons.css', __FILE__ ), array(), '', 'all' );
|
375 |
+
wp_enqueue_style( 'wpmenucart-icons' );
|
376 |
+
wp_register_style( 'wpmenucart-fontawesome', plugins_url( '/css/wpmenucart-fontawesome.css', __FILE__ ), array(), '', 'all' );
|
377 |
+
wp_enqueue_style( 'wpmenucart-fontawesome' );
|
378 |
+
}
|
379 |
+
|
380 |
+
$css = file_exists( get_stylesheet_directory() . '/wpmenucart-main.css' )
|
381 |
+
? get_stylesheet_directory_uri() . '/wpmenucart-main.css'
|
382 |
+
: plugins_url( '/css/wpmenucart-main.css', __FILE__ );
|
383 |
+
|
384 |
+
wp_register_style( 'wpmenucart', $css, array(), '', 'all' );
|
385 |
+
wp_enqueue_style( 'wpmenucart' );
|
386 |
+
|
387 |
+
// Hide built-in theme carts
|
388 |
+
if ( isset($this->options['hide_theme_cart']) ) {
|
389 |
+
wp_add_inline_style( 'wpmenucart', '.et-cart-info { display:none !important; } .site-header-cart { display:none !important; }' );
|
390 |
+
}
|
391 |
+
|
392 |
+
//Load Stylesheet if twentytwelve is active
|
393 |
+
if ( wp_get_theme() == 'Twenty Twelve' ) {
|
394 |
+
wp_register_style( 'wpmenucart-twentytwelve', plugins_url( '/css/wpmenucart-twentytwelve.css', __FILE__ ), array(), '', 'all' );
|
395 |
+
wp_enqueue_style( 'wpmenucart-twentytwelve' );
|
396 |
+
}
|
397 |
+
|
398 |
+
//Load Stylesheet if twentyfourteen is active
|
399 |
+
if ( wp_get_theme() == 'Twenty Fourteen' ) {
|
400 |
+
wp_register_style( 'wpmenucart-twentyfourteen', plugins_url( '/css/wpmenucart-twentyfourteen.css', __FILE__ ), array(), '', 'all' );
|
401 |
+
wp_enqueue_style( 'wpmenucart-twentyfourteen' );
|
402 |
+
}
|
403 |
+
|
404 |
+
// extra script that improves AJAX behavior when 'Always display cart' is disabled
|
405 |
+
wp_enqueue_script(
|
406 |
+
'wpmenucart-ajax-assist',
|
407 |
+
plugins_url( '/javascript/wpmenucart-ajax-assist.js', __FILE__ ),
|
408 |
+
array( 'jquery' )
|
409 |
+
);
|
410 |
+
wp_localize_script(
|
411 |
+
'wpmenucart-ajax-assist',
|
412 |
+
'wpmenucart_ajax_assist',
|
413 |
+
array(
|
414 |
+
'shop_plugin' => isset($this->options['shop_plugin']) ? $this->options['shop_plugin'] : '',
|
415 |
+
'always_display' => isset($this->options['always_display']) ? $this->options['always_display'] : '',
|
416 |
+
)
|
417 |
+
);
|
418 |
+
|
419 |
+
}
|
420 |
+
|
421 |
+
/**
|
422 |
+
* Add filters to selected menus to add cart item <li>
|
423 |
+
*/
|
424 |
+
public function filter_nav_menus() {
|
425 |
+
// exit if no shop class is active
|
426 |
+
if ( !isset($this->shop) )
|
427 |
+
return;
|
428 |
+
|
429 |
+
// exit if no menus set
|
430 |
+
if ( !isset( $this->options['menu_slugs'] ) || empty( $this->options['menu_slugs'] ) )
|
431 |
+
return;
|
432 |
+
|
433 |
+
if ( $this->options['menu_slugs'][1] != '0' ) {
|
434 |
+
add_filter( 'wp_nav_menu_' . $this->options['menu_slugs'][1] . '_items', array( &$this, 'add_itemcart_to_menu' ) , 10, 2 );
|
435 |
+
}
|
436 |
+
}
|
437 |
+
|
438 |
+
/**
|
439 |
+
* Add Menu Cart to menu
|
440 |
+
*
|
441 |
+
* @return menu items + Menu Cart item
|
442 |
+
*/
|
443 |
+
public function add_itemcart_to_menu( $items ) {
|
444 |
+
// WooCommerce specific: check if woocommerce cart object is actually loaded
|
445 |
+
if ( isset($this->options['shop_plugin']) && $this->options['shop_plugin'] == 'woocommerce' ) {
|
446 |
+
if ( function_exists( 'WC' ) ) {
|
447 |
+
if ( empty( WC()->cart ) ) {
|
448 |
+
return $items; // nothing to load data from, return menu without cart item
|
449 |
+
}
|
450 |
+
} else {
|
451 |
+
global $woocommerce;
|
452 |
+
if ( empty($woocommerce) || !is_object($woocommerce) || !isset($woocommerce->cart) || !is_object($woocommerce->cart) ) {
|
453 |
+
return $items; // nothing to load data from, return menu without cart item
|
454 |
+
}
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
$classes = 'menu-item wpmenucartli wpmenucart-display-'.$this->options['items_alignment'];
|
459 |
+
|
460 |
+
if ($this->get_common_li_classes($items) != '')
|
461 |
+
$classes .= ' ' . $this->get_common_li_classes($items);
|
462 |
+
|
463 |
+
$active_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
|
464 |
+
|
465 |
+
// Filter for <li> item classes
|
466 |
+
/* Usage (in the themes functions.php):
|
467 |
+
add_filter('wpmenucart_menu_item_classes', 'add_wpmenucart_item_class', 1, 1);
|
468 |
+
function add_wpmenucart_item_class ($classes) {
|
469 |
+
$classes .= ' yourclass';
|
470 |
+
return $classes;
|
471 |
+
}
|
472 |
+
*/
|
473 |
+
$classes = apply_filters( 'wpmenucart_menu_item_classes', $classes );
|
474 |
+
$this->menu_items['menu']['menu_item_li_classes'] = $classes;
|
475 |
+
|
476 |
+
// DEPRECATED: These filters are now deprecated in favour of the more precise filters in the functions!
|
477 |
+
$wpmenucart_menu_item = apply_filters( 'wpmenucart_menu_item_filter', $this->wpmenucart_menu_item() );
|
478 |
+
|
479 |
+
$item_data = $this->shop->menu_item();
|
480 |
+
|
481 |
+
$menu_item_li = '<li class="'.$classes.'" id="wpmenucartli">' . $wpmenucart_menu_item . '</li>';
|
482 |
+
|
483 |
+
if ( apply_filters('wpmenucart_prepend_menu_item', false) ) {
|
484 |
+
$items = apply_filters( 'wpmenucart_menu_item_wrapper', $menu_item_li ) . $items;
|
485 |
+
} else {
|
486 |
+
$items .= apply_filters( 'wpmenucart_menu_item_wrapper', $menu_item_li );
|
487 |
+
}
|
488 |
+
|
489 |
+
return $items;
|
490 |
+
}
|
491 |
+
|
492 |
+
/**
|
493 |
+
* Get a flat list of common classes from all menu items in a menu
|
494 |
+
* @param string $items nav_menu HTML containing all <li> menu items
|
495 |
+
* @return string flat (imploded) list of common classes
|
496 |
+
*/
|
497 |
+
public function get_common_li_classes($items) {
|
498 |
+
if (empty($items)) return '';
|
499 |
+
if (!class_exists('DOMDocument')) return '';
|
500 |
+
|
501 |
+
$libxml_previous_state = libxml_use_internal_errors(true); // enable user error handling
|
502 |
+
|
503 |
+
$dom_items = new DOMDocument;
|
504 |
+
$dom_items->loadHTML( $items );
|
505 |
+
$lis = $dom_items->getElementsByTagName('li');
|
506 |
+
|
507 |
+
if (empty($lis)) {
|
508 |
+
libxml_clear_errors();
|
509 |
+
libxml_use_internal_errors($libxml_previous_state);
|
510 |
+
return;
|
511 |
+
}
|
512 |
+
|
513 |
+
foreach($lis as $li) {
|
514 |
+
if ($li->parentNode->tagName != 'ul')
|
515 |
+
$li_classes[] = explode( ' ', $li->getAttribute('class') );
|
516 |
+
}
|
517 |
+
|
518 |
+
// Uncomment to dump DOM errors / warnings
|
519 |
+
//$errors = libxml_get_errors();
|
520 |
+
//print_r ($errors);
|
521 |
+
|
522 |
+
// clear errors and reset to previous error handling state
|
523 |
+
libxml_clear_errors();
|
524 |
+
libxml_use_internal_errors($libxml_previous_state);
|
525 |
+
|
526 |
+
if ( !empty($li_classes) ) {
|
527 |
+
$common_li_classes = array_shift($li_classes);
|
528 |
+
foreach ($li_classes as $li_class) {
|
529 |
+
$common_li_classes = array_intersect($li_class, $common_li_classes);
|
530 |
+
}
|
531 |
+
$common_li_classes_flat = implode(' ', $common_li_classes);
|
532 |
+
} else {
|
533 |
+
$common_li_classes_flat = '';
|
534 |
+
}
|
535 |
+
return $common_li_classes_flat;
|
536 |
+
}
|
537 |
+
|
538 |
+
/**
|
539 |
+
* Ajaxify Menu Cart
|
540 |
+
*/
|
541 |
+
public function woocommerce_ajax_fragments( $fragments ) {
|
542 |
+
if ( ! defined('WOOCOMMERCE_CART') ) {
|
543 |
+
define( 'WOOCOMMERCE_CART', true );
|
544 |
+
}
|
545 |
+
|
546 |
+
$fragments['a.wpmenucart-contents'] = $this->wpmenucart_menu_item();
|
547 |
+
return $fragments;
|
548 |
+
}
|
549 |
+
|
550 |
+
/**
|
551 |
+
* Create HTML for Menu Cart item
|
552 |
+
*/
|
553 |
+
public function wpmenucart_menu_item() {
|
554 |
+
$item_data = $this->shop->menu_item();
|
555 |
+
|
556 |
+
// Check empty cart settings
|
557 |
+
if ($item_data['cart_contents_count'] == 0 && ( !isset($this->options['always_display']) ) ) {
|
558 |
+
$empty_menu_item = '<a class="wpmenucart-contents empty-wpmenucart" style="display:none"> </a>';
|
559 |
+
return $empty_menu_item;
|
560 |
+
}
|
561 |
+
|
562 |
+
if ( isset($this->options['wpml_string_translation']) && function_exists( 'icl_t' ) ) {
|
563 |
+
//use WPML
|
564 |
+
$viewing_cart = icl_t('WP Menu Cart', 'hover text', 'View your shopping cart');
|
565 |
+
$start_shopping = icl_t('WP Menu Cart', 'empty hover text', 'Start shopping');
|
566 |
+
$cart_contents = $item_data['cart_contents_count'] .' '. ( $item_data['cart_contents_count'] == 1 ? icl_t('WP Menu Cart', 'item text', 'item') : icl_t('WP Menu Cart', 'items text', 'items') );
|
567 |
+
} else {
|
568 |
+
//use regular WP i18n
|
569 |
+
$viewing_cart = __('View your shopping cart', 'wp-menu-cart');
|
570 |
+
$start_shopping = __('Start shopping', 'wp-menu-cart');
|
571 |
+
$cart_contents = sprintf(_n('%d item', '%d items', $item_data['cart_contents_count'], 'wp-menu-cart'), $item_data['cart_contents_count']);
|
572 |
+
}
|
573 |
+
|
574 |
+
$this->menu_items['menu']['cart_contents'] = $cart_contents;
|
575 |
+
|
576 |
+
if ($item_data['cart_contents_count'] == 0) {
|
577 |
+
$menu_item_href = apply_filters ('wpmenucart_emptyurl', $item_data['shop_page_url'] );
|
578 |
+
$menu_item_title = apply_filters ('wpmenucart_emptytitle', $start_shopping );
|
579 |
+
$menu_item_classes = 'wpmenucart-contents empty-wpmenucart-visible';
|
580 |
+
} else {
|
581 |
+
$menu_item_href = apply_filters ('wpmenucart_fullurl', $item_data['cart_url'] );
|
582 |
+
$menu_item_title = apply_filters ('wpmenucart_fulltitle', $viewing_cart );
|
583 |
+
$menu_item_classes = 'wpmenucart-contents';
|
584 |
+
}
|
585 |
+
|
586 |
+
$this->menu_items['menu']['menu_item_href'] = $menu_item_href;
|
587 |
+
$this->menu_items['menu']['menu_item_title'] = $menu_item_title;
|
588 |
+
|
589 |
+
if(defined('UBERMENU_VERSION') && (version_compare(UBERMENU_VERSION, '3.0.0') >= 0)){
|
590 |
+
$menu_item_classes .= ' ubermenu-target';
|
591 |
+
}
|
592 |
+
|
593 |
+
$menu_item = '<a class="'.$menu_item_classes.'" href="'.$menu_item_href.'" title="'.$menu_item_title.'">';
|
594 |
+
|
595 |
+
$menu_item_a_content = '';
|
596 |
+
if (isset($this->options['icon_display'])) {
|
597 |
+
$icon = isset($this->options['cart_icon']) ? $this->options['cart_icon'] : '0';
|
598 |
+
$menu_item_icon = '<i class="wpmenucart-icon-shopping-cart-'.$icon.'" role="img" aria-label="'.__( 'Cart','woocommerce' ).'"></i>';
|
599 |
+
$menu_item_a_content .= $menu_item_icon;
|
600 |
+
} else {
|
601 |
+
$menu_item_icon = '';
|
602 |
+
}
|
603 |
+
|
604 |
+
switch ($this->options['items_display']) {
|
605 |
+
case 1: //items only
|
606 |
+
$menu_item_a_content .= '<span class="cartcontents">'.$cart_contents.'</span>';
|
607 |
+
break;
|
608 |
+
case 2: //price only
|
609 |
+
$menu_item_a_content .= '<span class="amount">'.$item_data['cart_total'].'</span>';
|
610 |
+
break;
|
611 |
+
case 3: //items & price
|
612 |
+
$menu_item_a_content .= '<span class="cartcontents">'.$cart_contents.'</span><span class="amount">'.$item_data['cart_total'].'</span>';
|
613 |
+
break;
|
614 |
+
}
|
615 |
+
$menu_item_a_content = apply_filters ('wpmenucart_menu_item_a_content', $menu_item_a_content, $menu_item_icon, $cart_contents, $item_data );
|
616 |
+
|
617 |
+
$this->menu_items['menu']['menu_item_a_content'] = $menu_item_a_content;
|
618 |
+
|
619 |
+
$menu_item .= $menu_item_a_content . '</a>';
|
620 |
+
|
621 |
+
$menu_item = apply_filters ('wpmenucart_menu_item_a', $menu_item, $item_data, $this->options, $menu_item_a_content, $viewing_cart, $start_shopping, $cart_contents);
|
622 |
+
|
623 |
+
if( !empty( $menu_item ) ) return $menu_item;
|
624 |
+
}
|
625 |
+
|
626 |
+
public function wpmenucart_ajax() {
|
627 |
+
check_ajax_referer( 'wpmenucart', 'security' );
|
628 |
+
|
629 |
+
$variable = $this->wpmenucart_menu_item();
|
630 |
+
echo $variable;
|
631 |
+
die();
|
632 |
+
}
|
633 |
+
|
634 |
+
}
|
635 |
+
|
636 |
+
$wpMenuCart = new WpMenuCart();
|
637 |
+
|
638 |
+
/**
|
639 |
+
* Hide notifications
|
640 |
+
*/
|
641 |
+
|
642 |
+
if ( ! empty( $_GET['hide_wpmenucart_shop_check'] ) ) {
|
643 |
+
update_option( 'wpmenucart_shop_check', 'hide' );
|
644 |
}
|