WooCommerce Menu Cart - Version 2.9.8

Version Description

  • Fix: Don't load free version if Pro version is loaded/installed
  • Fix: jQuery deprecation notices
  • Tweak: parse font stylesheet to use absolute links
  • Translations: updated template & added translation hints
  • Tested up to WooCommerce 5.4 & WP5.7
Download this release

Release Info

Developer wpovernight
Plugin Icon 128x128 WooCommerce Menu Cart
Version 2.9.8
Comparing to
See all releases

Code changes from version 2.9.7 to 2.9.8

includes/wpmenucart-settings.php CHANGED
@@ -376,7 +376,7 @@ class WpMenuCart_Settings {
376
  if (!$this->get_menu_array()) {
377
  ?>
378
  <div class="error" style="width:400px; padding:10px;">
379
- You need to create a menu before you can use Menu Cart. Go to <strong>Appearence > Menus</strong> and create menu to add the cart to.
380
  </div>
381
  <?php } ?>
382
  <form method="post" action="options.php">
@@ -390,12 +390,15 @@ class WpMenuCart_Settings {
390
 
391
  </form>
392
  <script type="text/javascript">
393
- jQuery('.hidden-input').click(function() {
394
- jQuery(this).closest('.hidden-input').prev('.pro-feature').show('slow');
395
- jQuery(this).closest('.hidden-input').hide();
396
- });
397
- jQuery('.hidden-input-icon').click(function() {
398
- jQuery('.pro-icon').show('slow');
 
 
 
399
  });
400
  </script>
401
  <style type="text/css">
@@ -424,7 +427,7 @@ class WpMenuCart_Settings {
424
  }
425
  </style>
426
  <div class="menucart-pro-ad menucart-pro-ad-small">
427
- Want To Stand Out? <a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartgopro">Go Pro.</a>
428
  <ul style="font-size: 12px;list-style-type:circle;margin-left: 20px">
429
  <li><?php _e('Unlimited Menus', 'wp-menu-cart' ) ?></li>
430
  <li><?php _e('Choice of 14 icons', 'wp-menu-cart' ) ?></li>
@@ -450,8 +453,8 @@ class WpMenuCart_Settings {
450
  <li><?php _e('Put the cart anywhere with the [wpmenucart] shortcode', 'wp-menu-cart' ) ?></li>
451
  </ul>
452
  <?php
453
- $menucartadmore = '<a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadmore">';
454
- printf (__('Need to see more? %sClick here%s to check it out. Add a product to your cart and watch what happens!', 'wp-menu-cart' ), $menucartadmore,'</a>'); ?><br><br>
455
  <a class="button button-primary" style="text-align: center;margin: 0px auto" href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadbuy"><?php _e('Buy Now', 'wp-menu-cart' ) ?></a>
456
  </div>
457
  </div>
@@ -784,12 +787,12 @@ class WpMenuCart_Settings {
784
  <p>
785
  <input value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" type="text" />
786
  <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text" value="" />
787
- <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text" title="<?php esc_attr_e('Menu Item'); ?>" />
788
  </p>
789
 
790
  <p class="wpmenucart-meta-box" id="wpmenucart-meta-box">
791
  <span class="add-to-menu">
792
- <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="menucart-menu-item" id="menucart-menu-item" />
793
  <span class="spinner"></span>
794
  </span>
795
  </p>
376
  if (!$this->get_menu_array()) {
377
  ?>
378
  <div class="error" style="width:400px; padding:10px;">
379
+ <?php _e( 'You need to create a menu before you can use Menu Cart. Go to <strong>Appearence > Menus</strong> and create menu to add the cart to.', 'wp-menu-cart' ); ?>
380
  </div>
381
  <?php } ?>
382
  <form method="post" action="options.php">
390
 
391
  </form>
392
  <script type="text/javascript">
393
+ jQuery( function ( $ ) {
394
+ $('.hidden-input').on('click', function() {
395
+ $(this).closest('.hidden-input').prev('.pro-feature').show('slow');
396
+ $(this).closest('.hidden-input').hide();
397
+ });
398
+
399
+ $('.hidden-input-icon').on('click', function() {
400
+ $('.pro-icon').show('slow');
401
+ });
402
  });
403
  </script>
404
  <style type="text/css">
427
  }
428
  </style>
429
  <div class="menucart-pro-ad menucart-pro-ad-small">
430
+ <?php _e( 'Want To Stand Out?', 'wp-menu-cart' ); ?> <a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartgopro"><?php _e( 'Go Pro.', 'wp-menu-cart' ); ?></a>
431
  <ul style="font-size: 12px;list-style-type:circle;margin-left: 20px">
432
  <li><?php _e('Unlimited Menus', 'wp-menu-cart' ) ?></li>
433
  <li><?php _e('Choice of 14 icons', 'wp-menu-cart' ) ?></li>
453
  <li><?php _e('Put the cart anywhere with the [wpmenucart] shortcode', 'wp-menu-cart' ) ?></li>
454
  </ul>
455
  <?php
456
+ /* translators: 1,2: <a> tags */
457
+ printf (__('Need to see more? %1$sClick here%2$s to check it out. Add a product to your cart and watch what happens!', 'wp-menu-cart' ), '<a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadmore">','</a>'); ?><br><br>
458
  <a class="button button-primary" style="text-align: center;margin: 0px auto" href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadbuy"><?php _e('Buy Now', 'wp-menu-cart' ) ?></a>
459
  </div>
460
  </div>
787
  <p>
788
  <input value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" type="text" />
789
  <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text" value="" />
790
+ <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text" title="<?php esc_attr_e('Menu Item', 'wp-menu-cart'); ?>" />
791
  </p>
792
 
793
  <p class="wpmenucart-meta-box" id="wpmenucart-meta-box">
794
  <span class="add-to-menu">
795
+ <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu', 'wp-menu-cart'); ?>" name="menucart-menu-item" id="menucart-menu-item" />
796
  <span class="spinner"></span>
797
  </span>
798
  </p>
javascript/wpmenucart.js CHANGED
@@ -3,7 +3,7 @@
3
  *
4
  * AJAX not working for you? Look for the (specific) class attached to your 'add to cart' button (example: YOURCLASS)
5
  * The add it to the list of class selectors in the jQuery command:
6
- * $(".edd-add-to-cart, .wpsc_buy_button, .eshopbutton, div.cartopt p label.update input#update, .YOURCLASS").click(function(){
7
  *
8
  */
9
 
3
  *
4
  * AJAX not working for you? Look for the (specific) class attached to your 'add to cart' button (example: YOURCLASS)
5
  * The add it to the list of class selectors in the jQuery command:
6
+ * $(".edd-add-to-cart, .wpsc_buy_button, .eshopbutton, div.cartopt p label.update input#update, .YOURCLASS").on('click', function(){
7
  *
8
  */
9
 
languages/wp-menu-cart.pot CHANGED
@@ -1,253 +1,280 @@
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 ""
1
+ # Copyright (C) 2021 Jeremiah Prummer, Ewout Fernhout
2
+ # This file is distributed under the same license as the WP Menu Cart plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP Menu Cart 2.9.7\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-menu-cart\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-03-01T23:57:50-04:00\n"
13
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.4.0\n"
15
+ "X-Domain: wp-menu-cart\n"
16
+
17
+ #. Plugin Name of the plugin
18
+ #: includes/wpmenucart-settings.php:371
19
+ msgid "WP Menu Cart"
20
+ msgstr ""
21
+
22
+ #. Plugin URI of the plugin
23
+ msgid "www.wpovernight.com/plugins"
24
+ msgstr ""
25
+
26
+ #. Description of the plugin
27
+ msgid "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."
28
+ msgstr ""
29
+
30
+ #. Author of the plugin
31
+ msgid "Jeremiah Prummer, Ewout Fernhout"
32
+ msgstr ""
33
+
34
+ #. Author URI of the plugin
35
+ msgid "www.wpovernight.com/"
36
+ msgstr ""
37
+
38
+ #: includes/wpmenucart-settings.php:27
39
  msgid "Plugin settings"
40
  msgstr ""
41
 
42
+ #: includes/wpmenucart-settings.php:34
43
  msgid "Select which e-commerce plugin you would like Menu Cart to work with"
44
  msgstr ""
45
 
46
+ #: includes/wpmenucart-settings.php:49
47
  msgid "Hide theme shopping cart icon"
48
  msgstr ""
49
 
50
+ #: includes/wpmenucart-settings.php:63
51
  msgid "Select the menu(s) in which you want to display the Menu Cart"
52
  msgstr ""
53
 
54
+ #: includes/wpmenucart-settings.php:76
55
  msgid "Always display cart, even if it's empty"
56
  msgstr ""
57
 
58
+ #: includes/wpmenucart-settings.php:89
59
+ msgid "Show on cart & checkout page"
60
+ msgstr ""
61
+
62
+ #: includes/wpmenucart-settings.php:96
63
+ msgid "To avoid distracting your customers with duplicate information we do not display the menu cart item on the cart & checkout pages by default"
64
+ msgstr ""
65
+
66
+ #: includes/wpmenucart-settings.php:103
67
  msgid "Display shopping cart icon."
68
  msgstr ""
69
 
70
+ #: includes/wpmenucart-settings.php:115
71
  msgid "Display cart contents in menu fly-out."
72
  msgstr ""
73
 
74
+ #: includes/wpmenucart-settings.php:128
75
  msgid "Set maximum number of products to display in fly-out"
76
  msgstr ""
77
 
78
+ #: includes/wpmenucart-settings.php:154
79
  msgid "Choose a cart icon."
80
  msgstr ""
81
 
82
+ #: includes/wpmenucart-settings.php:183
83
  msgid "What would you like to display in the menu?"
84
  msgstr ""
85
 
86
+ #: includes/wpmenucart-settings.php:191
87
  msgid "Items Only."
88
  msgstr ""
89
 
90
+ #: includes/wpmenucart-settings.php:192
91
  msgid "Price Only."
92
  msgstr ""
93
 
94
+ #: includes/wpmenucart-settings.php:193
95
  msgid "Both price and items."
96
  msgstr ""
97
 
98
+ #: includes/wpmenucart-settings.php:200
99
  msgid "Select the alignment that looks best with your menu."
100
  msgstr ""
101
 
102
+ #: includes/wpmenucart-settings.php:208
103
  msgid "Align Left."
104
  msgstr ""
105
 
106
+ #: includes/wpmenucart-settings.php:209
107
  msgid "Align Right."
108
  msgstr ""
109
 
110
+ #: includes/wpmenucart-settings.php:210
111
  msgid "Default Menu Alignment."
112
  msgstr ""
113
 
114
+ #: includes/wpmenucart-settings.php:218
115
  msgid "Price to display"
116
  msgstr ""
117
 
118
+ #: includes/wpmenucart-settings.php:226
119
  msgid "Cart total (including discounts)"
120
  msgstr ""
121
 
122
+ #: includes/wpmenucart-settings.php:227
123
  msgid "Subtotal (total of products)"
124
  msgstr ""
125
 
126
+ #: includes/wpmenucart-settings.php:228
127
+ msgid "Checkout total (including discounts, fees & shipping)"
128
+ msgstr ""
129
+
130
+ #: includes/wpmenucart-settings.php:237
131
  msgid "Enter a custom CSS class (optional)"
132
  msgstr ""
133
 
134
+ #: includes/wpmenucart-settings.php:251
135
  msgid "Use WPML String Translation"
136
  msgstr ""
137
 
138
+ #: includes/wpmenucart-settings.php:266
139
  msgid "Use custom AJAX"
140
  msgstr ""
141
 
142
+ #: includes/wpmenucart-settings.php:273
143
+ msgid "Enable this option to use the custom AJAX / live update functions instead of the default ones from your shop plugin. Only use when you have issues with AJAX!"
 
 
 
144
  msgstr ""
145
 
146
+ #: includes/wpmenucart-settings.php:304
147
  msgid "Menu Cart"
148
  msgstr ""
149
 
150
+ #: includes/wpmenucart-settings.php:305
151
  msgid "Menu Cart Setup"
152
  msgstr ""
153
 
154
+ #: includes/wpmenucart-settings.php:379
155
+ msgid "You need to create a menu before you can use Menu Cart. Go to <strong>Appearence > Menus</strong> and create menu to add the cart to."
156
  msgstr ""
157
 
158
+ #: includes/wpmenucart-settings.php:427
159
+ msgid "Want To Stand Out?"
160
  msgstr ""
161
 
162
+ #: includes/wpmenucart-settings.php:427
163
+ msgid "Go Pro."
164
+ msgstr ""
165
+
166
+ #: includes/wpmenucart-settings.php:429
167
  msgid "Unlimited Menus"
168
  msgstr ""
169
 
170
+ #: includes/wpmenucart-settings.php:430
171
  msgid "Choice of 14 icons"
172
  msgstr ""
173
 
174
+ #: includes/wpmenucart-settings.php:431
175
  msgid "Packed with customization options"
176
  msgstr ""
177
 
178
+ #: includes/wpmenucart-settings.php:432
179
  msgid "Access to Shortcode"
180
  msgstr ""
181
 
182
+ #: includes/wpmenucart-settings.php:433
183
  msgid "Top Notch Support"
184
  msgstr ""
185
 
186
+ #: includes/wpmenucart-settings.php:438
187
  msgid "Sell In Style With Menu Cart Pro!"
188
  msgstr ""
189
 
190
+ #: includes/wpmenucart-settings.php:440
191
+ msgid "Go Pro with Menu Cart Pro. Includes all the great standard features found in this free version plus:"
 
 
192
  msgstr ""
193
 
194
+ #: includes/wpmenucart-settings.php:443
195
  msgid "A choice of over 10 cart icons"
196
  msgstr ""
197
 
198
+ #: includes/wpmenucart-settings.php:444
199
  msgid "A fully featured cart details flyout"
200
  msgstr ""
201
 
202
+ #: includes/wpmenucart-settings.php:445
203
+ msgid "Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus"
 
204
  msgstr ""
205
 
206
+ #: includes/wpmenucart-settings.php:446
207
  msgid "Adjust the content & URLs via the settings"
208
  msgstr ""
209
 
210
+ #: includes/wpmenucart-settings.php:447
211
  msgid "Enter custom styles and apply custom classes via the settings"
212
  msgstr ""
213
 
214
+ #: includes/wpmenucart-settings.php:448
215
  msgid "WPML compatible"
216
  msgstr ""
217
 
218
+ #: includes/wpmenucart-settings.php:449
219
  msgid "Automatic updates on any great new features"
220
  msgstr ""
221
 
222
+ #: includes/wpmenucart-settings.php:450
223
  msgid "Put the cart anywhere with the [wpmenucart] shortcode"
224
  msgstr ""
225
 
226
+ #. translators: 1,2: <a> tags
227
+ #: includes/wpmenucart-settings.php:454
228
+ msgid "Need to see more? %1$sClick here%2$s to check it out. Add a product to your cart and watch what happens!"
 
 
229
  msgstr ""
230
 
231
+ #: includes/wpmenucart-settings.php:455
232
  msgid "Buy Now"
233
  msgstr ""
234
 
235
+ #: includes/wpmenucart-settings.php:524
236
+ #: includes/wpmenucart-settings.php:564
237
+ #: includes/wpmenucart-settings.php:606
238
+ #: includes/wpmenucart-settings.php:645
239
+ #: includes/wpmenucart-settings.php:682
240
  msgid "This feature only available in"
241
  msgstr ""
242
 
243
+ #: includes/wpmenucart-settings.php:724
244
  msgid "Additional icons are only available in"
245
  msgstr ""
246
 
247
+ #: includes/wpmenucart-settings.php:787
248
+ msgid "Menu Item"
 
 
249
  msgstr ""
250
 
251
+ #: includes/wpmenucart-settings.php:792
252
+ msgid "Add to Menu"
253
+ msgstr ""
254
+
255
+ #: wp-menu-cart.php:240
256
+ msgid "WP Menu Cart could not detect an active shop plugin. Make sure you have activated at least one of the supported plugins."
257
+ msgstr ""
258
+
259
+ #: wp-menu-cart.php:241
260
  msgid "Hide this notice"
261
  msgstr ""
262
 
263
+ #: wp-menu-cart.php:246
264
+ msgid "An old version of WooCommerce Menu Cart is currently activated, you need to disable or uninstall it for WP Menu Cart to function properly"
 
 
265
  msgstr ""
266
 
267
+ #: wp-menu-cart.php:580
268
  msgid "View your shopping cart"
269
  msgstr ""
270
 
271
+ #: wp-menu-cart.php:581
272
  msgid "Start shopping"
273
  msgstr ""
274
 
275
+ #. translators: item count
276
+ #: wp-menu-cart.php:583
277
  msgid "%d item"
278
  msgid_plural "%d items"
279
  msgstr[0] ""
280
  msgstr[1] ""
 
 
 
 
readme.txt CHANGED
@@ -3,9 +3,9 @@ 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.6
7
  Requires PHP: 5.3
8
- Stable tag: 2.9.7
9
 
10
  Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
11
 
@@ -85,6 +85,13 @@ Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
 
 
88
  = 2.9.7 =
89
  * Tested up to WooCommerce 5.1 & WP5.6
90
 
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
7
  Requires PHP: 5.3
8
+ Stable tag: 2.9.8
9
 
10
  Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
11
 
85
 
86
  == Changelog ==
87
 
88
+ = 2.9.8 =
89
+ * Fix: Don't load free version if Pro version is loaded/installed
90
+ * Fix: jQuery deprecation notices
91
+ * Tweak: parse font stylesheet to use absolute links
92
+ * Translations: updated template & added translation hints
93
+ * Tested up to WooCommerce 5.4 & WP5.7
94
+
95
  = 2.9.7 =
96
  * Tested up to WooCommerce 5.1 & WP5.6
97
 
wp-menu-cart.php CHANGED
@@ -1,20 +1,27 @@
1
  <?php
2
  /**
3
  * Plugin Name: WooCommerce 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.9.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: 5.1.0
13
  */
14
 
 
 
 
 
 
 
15
  class WpMenuCart {
16
 
17
- protected $plugin_version = '2.9.7';
18
  public static $plugin_slug;
19
  public static $plugin_basename;
20
 
@@ -385,7 +392,15 @@ class WpMenuCart {
385
  public function load_scripts_styles() {
386
  if (isset($this->options['icon_display'])) {
387
  wp_enqueue_style( 'wpmenucart-icons', plugins_url( '/css/wpmenucart-icons.css', __FILE__ ), array(), WPMENUCART_VERSION, 'all' );
388
- wp_enqueue_style( 'wpmenucart-font', plugins_url( '/css/wpmenucart-font.css', __FILE__ ), array(), WPMENUCART_VERSION, 'all' );
 
 
 
 
 
 
 
 
389
  }
390
 
391
  $css = file_exists( get_stylesheet_directory() . '/wpmenucart-main.css' )
@@ -579,6 +594,7 @@ class WpMenuCart {
579
  //use regular WP i18n
580
  $viewing_cart = __('View your shopping cart', 'wp-menu-cart');
581
  $start_shopping = __('Start shopping', 'wp-menu-cart');
 
582
  $cart_contents = sprintf(_n('%d item', '%d items', $item_data['cart_contents_count'], 'wp-menu-cart'), $item_data['cart_contents_count']);
583
  }
584
 
@@ -652,4 +668,6 @@ $wpMenuCart = new WpMenuCart();
652
 
653
  if ( ! empty( $_GET['hide_wpmenucart_shop_check'] ) ) {
654
  update_option( 'wpmenucart_shop_check', 'hide' );
655
- }
 
 
1
  <?php
2
  /**
3
  * Plugin Name: WooCommerce Menu Cart
4
+ * Plugin URI: https://wpovernight.com/
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.9.8
7
  * Author: Jeremiah Prummer, Ewout Fernhout
8
+ * Author URI: https://wpovernight.com/
9
+ * License: GPLv2 or later
10
+ * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11
  * Text Domain: wp-menu-cart
12
  * WC requires at least: 2.0.0
13
+ * WC tested up to: 5.4.0
14
  */
15
 
16
+ if ( ! defined( 'ABSPATH' ) ) {
17
+ exit; // Exit if accessed directly
18
+ }
19
+
20
+ if ( ! class_exists( 'WpMenuCart' ) && ! class_exists( 'WPO_Menu_Cart_Pro' ) ) :
21
+
22
  class WpMenuCart {
23
 
24
+ protected $plugin_version = '2.9.8';
25
  public static $plugin_slug;
26
  public static $plugin_basename;
27
 
392
  public function load_scripts_styles() {
393
  if (isset($this->options['icon_display'])) {
394
  wp_enqueue_style( 'wpmenucart-icons', plugins_url( '/css/wpmenucart-icons.css', __FILE__ ), array(), WPMENUCART_VERSION, 'all' );
395
+
396
+ // in order to avoid issues with relative font paths, we parse the CSS file and print it inline
397
+ // wp_enqueue_style( 'wpmenucart-font', plugins_url( '/css/wpmenucart-font.css', __FILE__ ), array(), WPMENUCART_VERSION, 'all' );
398
+ ob_start();
399
+ if ( file_exists( plugin_dir_path( __FILE__ ) . 'css/wpmenucart-font.css' ) ) {
400
+ include( plugin_dir_path( __FILE__ ) . 'css/wpmenucart-font.css' ) ;
401
+ }
402
+ $font_css = str_replace( '../font', plugins_url( '/font', __FILE__ ), ob_get_clean() );
403
+ wp_add_inline_style( 'wpmenucart-icons', $font_css );
404
  }
405
 
406
  $css = file_exists( get_stylesheet_directory() . '/wpmenucart-main.css' )
594
  //use regular WP i18n
595
  $viewing_cart = __('View your shopping cart', 'wp-menu-cart');
596
  $start_shopping = __('Start shopping', 'wp-menu-cart');
597
+ /* translators: item count */
598
  $cart_contents = sprintf(_n('%d item', '%d items', $item_data['cart_contents_count'], 'wp-menu-cart'), $item_data['cart_contents_count']);
599
  }
600
 
668
 
669
  if ( ! empty( $_GET['hide_wpmenucart_shop_check'] ) ) {
670
  update_option( 'wpmenucart_shop_check', 'hide' );
671
+ }
672
+
673
+ endif; // class_exists