WooCommerce Menu Cart - Version 2.8.0

Version Description

  • Improved: Drastically reduced font filesize for faster page loading
  • New: filter to enable legacy custom ajax setting
Download this release

Release Info

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

Code changes from version 2.7.9 to 2.8.0

css/wpmenucart-font.css ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face {
2
+ font-family:'WPMenuCart';
3
+ src: url('../font/WPMenuCart.eot');
4
+ src: url('../font/WPMenuCart.eot?#iefix') format('embedded-opentype'),
5
+ url('../font/WPMenuCart.woff2') format('woff2'),
6
+ url('../font/WPMenuCart.woff') format('woff'),
7
+ url('../font/WPMenuCart.ttf') format('truetype'),
8
+ url('../font/WPMenuCart.svg#WPMenuCart') format('svg');
9
+ font-weight:normal;
10
+ font-style:normal;
11
+ }
css/wpmenucart-icons.css CHANGED
@@ -1,5 +1,5 @@
1
  .wpmenucart-icon-shopping-cart-0:before {
2
- font-family: 'FontAwesome';
3
  speak: none;
4
  font-style: normal;
5
  font-weight: normal;
1
  .wpmenucart-icon-shopping-cart-0:before {
2
+ font-family: 'WPMenuCart';
3
  speak: none;
4
  font-style: normal;
5
  font-weight: normal;
font/WPMenuCart.eot ADDED
Binary file
font/WPMenuCart.svg ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
4
+ <metadata>
5
+ Created by FontForge 20190801 at Fri May 8 10:17:53 2020
6
+ By www-data
7
+ Copyright Dave Gandy 2016. All rights reserved.
8
+ </metadata>
9
+ <defs>
10
+ <font id="WPMenuCart" horiz-adv-x="896" >
11
+ <font-face
12
+ font-family="WPMenuCart"
13
+ font-weight="400"
14
+ font-stretch="normal"
15
+ units-per-em="1792"
16
+ panose-1="0 0 0 0 0 0 0 0 0 0"
17
+ ascent="1536"
18
+ descent="-256"
19
+ bbox="0 -256 1664 1536"
20
+ underline-thickness="50"
21
+ underline-position="-100"
22
+ unicode-range="U+0020-F07A"
23
+ />
24
+ <missing-glyph
25
+ d="M735 -256h-568v1792h568v-1792zM301 1416v-59h117v-67h-119v-59h298v59h-119v67h119v59h-296zM299 1185v-187h298v61h-119v126h-179zM418 1059h-60v65h60v-65zM299 950v-59h119v-66h-119v-60h179v126h119v59h-298zM538 842v-118h-239v-61h298v179h-59zM418 624v-100h60
26
+ v41h60v-84h-180v143h-59v-203h298v203h-179zM299 314v-203h298v203h-298zM538 170h-180v85h180v-85zM299 70v-59h126l-126 -84v-59h298v59h-183l125 84h58v59h-298z" />
27
+ <glyph glyph-name=".notdef"
28
+ d="M735 -256h-568v1792h568v-1792zM301 1416v-59h117v-67h-119v-59h298v59h-119v67h119v59h-296zM299 1185v-187h298v61h-119v126h-179zM418 1059h-60v65h60v-65zM299 950v-59h119v-66h-119v-60h179v126h119v59h-298zM538 842v-118h-239v-61h298v179h-59zM418 624v-100h60
29
+ v41h60v-84h-180v143h-59v-203h298v203h-179zM299 314v-203h298v203h-298zM538 170h-180v85h180v-85zM299 70v-59h126l-126 -84v-59h298v59h-183l125 84h58v59h-298z" />
30
+ <glyph glyph-name="space" unicode=" " horiz-adv-x="0"
31
+ />
32
+ <glyph glyph-name="uniF07A" unicode="&#xf07a;" horiz-adv-x="1664"
33
+ d="M602 90q38 -38 38 -90t-38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38zM1498 90q38 -38 38 -90t-38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38zM1664 1088v-512q0 -24 -16.5 -42.5t-40.5 -21.5l-1044 -122q13 -60 13 -70q0 -16 -24 -64h920q26 0 45 -19t19 -45
34
+ t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 11 8 31.5t16 36t21.5 40t15.5 29.5l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t19.5 -15.5t13 -24.5t8 -26t5.5 -29.5t4.5 -26h1201q26 0 45 -19t19 -45v0z" />
35
+ </font>
36
+ </defs></svg>
font/WPMenuCart.ttf ADDED
Binary file
font/WPMenuCart.woff ADDED
Binary file
font/WPMenuCart.woff2 ADDED
Binary file
includes/wpmenucart-settings.php CHANGED
@@ -243,7 +243,7 @@ class WpMenuCart_Settings {
243
  );
244
  }
245
 
246
- if ( ( class_exists( 'WooCommerce' ) && isset( $option_values['builtin_ajax'] ) ) || defined('JIGOSHOP_VERSION') || class_exists( 'Easy_Digital_Downloads' ) ) {
247
 
248
  add_settings_field(
249
  'builtin_ajax',
243
  );
244
  }
245
 
246
+ if ( apply_filters( 'wpo_wpmenucart_enable_builtin_ajax_setting', ( class_exists( 'WooCommerce' ) && isset( $option_values['builtin_ajax'] ) ) || defined('JIGOSHOP_VERSION') || class_exists( 'Easy_Digital_Downloads' ) ) ) {
247
 
248
  add_settings_field(
249
  'builtin_ajax',
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, e
5
  Requires at least: 3.4
6
  Tested up to: 5.4
7
  Requires PHP: 5.3
8
- Stable tag: 2.7.9
9
 
10
  Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
11
 
@@ -85,6 +85,10 @@ Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your
85
 
86
  == Changelog ==
87
 
 
 
 
 
88
  = 2.7.9 =
89
  * Tested up to WooCommerce 4.1
90
  * Deprecated: Custom/Built-in AJAX option
5
  Requires at least: 3.4
6
  Tested up to: 5.4
7
  Requires PHP: 5.3
8
+ Stable tag: 2.8.0
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.8.0 =
89
+ * Improved: Drastically reduced font filesize for faster page loading
90
+ * New: filter to enable legacy custom ajax setting
91
+
92
  = 2.7.9 =
93
  * Tested up to WooCommerce 4.1
94
  * Deprecated: Custom/Built-in AJAX option
wp-menu-cart.php CHANGED
@@ -3,7 +3,7 @@
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.7.9
7
  * Author: Jeremiah Prummer, Ewout Fernhout
8
  * Author URI: www.wpovernight.com/
9
  * License: GPL2
@@ -321,7 +321,7 @@ class WpMenuCart {
321
  'wpmenucart',
322
  plugins_url( '/javascript/wpmenucart.js' , __FILE__ ),
323
  array( 'jquery' ),
324
- '2.7.9',
325
  true
326
  );
327
 
@@ -351,7 +351,7 @@ class WpMenuCart {
351
  'wpmenucart-edd-ajax',
352
  plugins_url( '/javascript/wpmenucart-edd-ajax.js', __FILE__ ),
353
  array( 'jquery' ),
354
- '2.7.9'
355
  );
356
 
357
  wp_localize_script(
@@ -373,8 +373,8 @@ class WpMenuCart {
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' )
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.8.0
7
  * Author: Jeremiah Prummer, Ewout Fernhout
8
  * Author URI: www.wpovernight.com/
9
  * License: GPL2
321
  'wpmenucart',
322
  plugins_url( '/javascript/wpmenucart.js' , __FILE__ ),
323
  array( 'jquery' ),
324
+ '2.8.0',
325
  true
326
  );
327
 
351
  'wpmenucart-edd-ajax',
352
  plugins_url( '/javascript/wpmenucart-edd-ajax.js', __FILE__ ),
353
  array( 'jquery' ),
354
+ '2.8.0'
355
  );
356
 
357
  wp_localize_script(
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-font', plugins_url( '/css/wpmenucart-font.css', __FILE__ ), array(), '', 'all' );
377
+ wp_enqueue_style( 'wpmenucart-font' );
378
  }
379
 
380
  $css = file_exists( get_stylesheet_directory() . '/wpmenucart-main.css' )