Max Mega Menu - Version 2.3.2

Version Description

[23/12/16] =

  • Fix: Theme changes not being applied when PolyLang used in conjunction with the "Output in " option
  • Fix: JavaScript error when a dynamic width has been used for the sub menu, but the matching element does not exist on the page
Download this release

Release Info

Developer megamenu
Plugin Icon 128x128 Max Mega Menu
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

classes/style-manager.class.php CHANGED
@@ -987,7 +987,7 @@ final class Mega_Menu_Style_Manager {
987
  global $polylang;
988
 
989
  foreach ( $polylang->model->get_languages_list() as $term ) {
990
- delete_transient( apply_filters( 'megamenu_css_transient_key', 'megamenu_css_' . strtolower( $term->locale ) ) );
991
  }
992
  }
993
 
@@ -1003,7 +1003,7 @@ final class Mega_Menu_Style_Manager {
1003
  $locale = strtolower( pll_current_language('locale') );
1004
 
1005
  if ( strlen( $locale ) ) {
1006
- $key .= $locale;
1007
  }
1008
 
1009
  return $key;
987
  global $polylang;
988
 
989
  foreach ( $polylang->model->get_languages_list() as $term ) {
990
+ delete_transient( 'megamenu_css_' . $term->locale );
991
  }
992
  }
993
 
1003
  $locale = strtolower( pll_current_language('locale') );
1004
 
1005
  if ( strlen( $locale ) ) {
1006
+ $key = $key . "_" . $locale;
1007
  }
1008
 
1009
  return $key;
js/maxmegamenu.js CHANGED
@@ -107,7 +107,7 @@
107
  plugin.calculateDynamicSubmenuWidths = function(anchor) {
108
 
109
  // apply dynamic width and sub menu position
110
- if (anchor.parent().hasClass("mega-menu-megamenu") && plugin.settings.panel_width && plugin.settings.panel_width.length > 0) {
111
  if (plugin.isDesktopView()) {
112
  var submenu_offset = $menu.offset();
113
  var target_offset = $(plugin.settings.panel_width).offset();
@@ -125,7 +125,7 @@
125
  }
126
 
127
  // apply inner width to sub menu by adding padding to the left and right of the mega menu
128
- if (anchor.parent().hasClass("mega-menu-megamenu") && plugin.settings.panel_inner_width && plugin.settings.panel_inner_width.length > 0) {
129
  var target_width = 0;
130
 
131
  if ($(plugin.settings.panel_inner_width).length) {
107
  plugin.calculateDynamicSubmenuWidths = function(anchor) {
108
 
109
  // apply dynamic width and sub menu position
110
+ if (anchor.parent().hasClass("mega-menu-megamenu") && plugin.settings.panel_width && $(plugin.settings.panel_width).length > 0) {
111
  if (plugin.isDesktopView()) {
112
  var submenu_offset = $menu.offset();
113
  var target_offset = $(plugin.settings.panel_width).offset();
125
  }
126
 
127
  // apply inner width to sub menu by adding padding to the left and right of the mega menu
128
+ if (anchor.parent().hasClass("mega-menu-megamenu") && plugin.settings.panel_inner_width && $(plugin.settings.panel_inner_width).length > 0) {
129
  var target_width = 0;
130
 
131
  if ($(plugin.settings.panel_inner_width).length) {
megamenu.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Max Mega Menu
5
  * Plugin URI: https://www.megamenu.com
6
  * Description: Easy to use drag & drop WordPress Mega Menu plugin. Create Mega Menus using Widgets. Responsive, retina & touch ready.
7
- * Version: 2.3.1
8
  * Author: Tom Hemsley
9
  * Author URI: https://www.megamenu.com
10
  * License: GPL-2.0+
@@ -26,7 +26,7 @@ final class Mega_Menu {
26
  /**
27
  * @var string
28
  */
29
- public $version = '2.3.1';
30
 
31
 
32
  /**
4
  * Plugin Name: Max Mega Menu
5
  * Plugin URI: https://www.megamenu.com
6
  * Description: Easy to use drag & drop WordPress Mega Menu plugin. Create Mega Menus using Widgets. Responsive, retina & touch ready.
7
+ * Version: 2.3.2
8
  * Author: Tom Hemsley
9
  * Author URI: https://www.megamenu.com
10
  * License: GPL-2.0+
26
  /**
27
  * @var string
28
  */
29
+ public $version = '2.3.2';
30
 
31
 
32
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: megamenu
3
  Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
4
  Requires at least: 3.8
5
  Tested up to: 4.7
6
- Stable tag: 2.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -103,7 +103,12 @@ See https://www.megamenu.com for more screenshots
103
 
104
  == Changelog ==
105
 
106
- = 2.3.1 =
 
 
 
 
 
107
 
108
  * Improvement: Theme Editor switched to tabbed interface
109
  * Improvement: Theme Editor now uses AJAX save so you don't lose your place in the theme editor
@@ -123,7 +128,7 @@ See https://www.megamenu.com for more screenshots
123
  * Fix: Account for scrollbars when determining sub menu width
124
  * Fix: Conflict with Maps Builder plugin
125
 
126
- = 2.3 =
127
 
128
  * New Feature: "Hover" event added (options are now Hover Intent, Hover or Click)
129
  * New Feature: Menu Item Description support added
3
  Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
4
  Requires at least: 3.8
5
  Tested up to: 4.7
6
+ Stable tag: 2.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
103
 
104
  == Changelog ==
105
 
106
+ = 2.3.2 [23/12/16] =
107
+
108
+ * Fix: Theme changes not being applied when PolyLang used in conjunction with the "Output in <head>" option
109
+ * Fix: JavaScript error when a dynamic width has been used for the sub menu, but the matching element does not exist on the page
110
+
111
+ = 2.3.1 [21/12/16]=
112
 
113
  * Improvement: Theme Editor switched to tabbed interface
114
  * Improvement: Theme Editor now uses AJAX save so you don't lose your place in the theme editor
128
  * Fix: Account for scrollbars when determining sub menu width
129
  * Fix: Conflict with Maps Builder plugin
130
 
131
+ = 2.3 [11/10/16] =
132
 
133
  * New Feature: "Hover" event added (options are now Hover Intent, Hover or Click)
134
  * New Feature: Menu Item Description support added