Max Mega Menu - Version 2.5

Version Description

  • New Feature: On mobile, clicking the "Up" arrow (indicating that a sub menu is open) will close the sub menu. This feature will be enabled the next time the CSS is regenerated for the menu, or can be manually activated by going to Mega Menu > Tools > Clear CSS Cache.
  • Fix: Menu Themes will no longer be shared across sites in a multi site network (for new installations only, existing installations will not be affected)
  • Fix: PHP Warning in Mega_Menu_Menu_Item_Manager::get_grid_column()
  • Fix: Theme export URL
  • Improvement: Add megamenu_javascript_dependencies filter
  • Improvement: Styling resets added (max-height, pointer-events and sub menu arrow indicators) for improved theme compatibility
  • Improvement: Add support for "disable-collapse" class on menu items, to stop sub menus disappearing until the page background is clicked
  • Improvement: Improved RTL admin styling
Download this release

Release Info

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

Code changes from version 2.4.3 to 2.5

classes/walker.class.php CHANGED
@@ -174,7 +174,7 @@ class Mega_Menu_Walker extends Walker_Nav_Menu {
174
  }
175
 
176
  if ( in_array('menu-item-has-children', $classes ) ) {
177
- $item_output .= '<span class="mega-collapse"></span>';
178
  }
179
 
180
  $item_output .= '</a>';
174
  }
175
 
176
  if ( in_array('menu-item-has-children', $classes ) ) {
177
+ $item_output .= '<span class="mega-indicator"></span>';
178
  }
179
 
180
  $item_output .= '</a>';
css/megamenu.scss CHANGED
@@ -809,7 +809,7 @@
809
  li.mega-menu-item-has-children {
810
 
811
  > a.mega-menu-link:after,
812
- > a.mega-menu-link span.mega-collapse:after {
813
  content: $arrow_down;
814
  display: inline-block;
815
  font-family: dashicons;
@@ -825,10 +825,15 @@
825
  width: auto;
826
  }
827
 
828
- > a.mega-menu-link > span.mega-collapse {
829
  display: none;
830
  float: right;
831
- margin: 0 0 0 6px;
 
 
 
 
 
832
 
833
  &:after {
834
  content: $arrow_up;
@@ -845,7 +850,7 @@
845
  display: none;
846
  }
847
 
848
- > span.mega-collapse {
849
  display: block;
850
  }
851
  }
809
  li.mega-menu-item-has-children {
810
 
811
  > a.mega-menu-link:after,
812
+ > a.mega-menu-link span.mega-indicator:after {
813
  content: $arrow_down;
814
  display: inline-block;
815
  font-family: dashicons;
825
  width: auto;
826
  }
827
 
828
+ > a.mega-menu-link > span.mega-indicator {
829
  display: none;
830
  float: right;
831
+ margin: 0 0 0 6px;
832
+ height: auto;
833
+ width: auto;
834
+ background: transparent;
835
+ position: relative;
836
+ pointer-events: auto;
837
 
838
  &:after {
839
  content: $arrow_up;
850
  display: none;
851
  }
852
 
853
+ > span.mega-indicator {
854
  display: block;
855
  }
856
  }
js/maxmegamenu.js CHANGED
@@ -35,13 +35,14 @@
35
 
36
  anchor.parent().triggerHandler("before_close_panel");
37
 
38
- if (!immediate && plugin.settings.effect == 'slide' || plugin.isMobileView() && plugin.settings.effect_mobile == 'slide') {
39
  var speed = plugin.isMobileView() ? plugin.settings.effect_speed_mobile : plugin.settings.effect_speed;
40
 
41
  anchor.siblings(".mega-sub-menu").animate({'height':'hide', 'paddingTop':'hide', 'paddingBottom':'hide', 'minHeight':'hide'}, speed, function() {
42
  anchor.siblings(".mega-sub-menu").css("display", "");
43
  anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel");
44
  });
 
45
  return;
46
  }
47
 
@@ -422,10 +423,10 @@
422
  }
423
  });
424
 
425
- $(".mega-collapse").on('click', function(e) {
426
  e.preventDefault();
427
  e.stopPropagation();
428
- plugin.hidePanel($(this).parent());
429
  });
430
 
431
  if (plugin.settings.unbind_events == 'true') {
35
 
36
  anchor.parent().triggerHandler("before_close_panel");
37
 
38
+ if ( (!immediate && plugin.settings.effect == 'slide') || (plugin.isMobileView() && plugin.settings.effect_mobile == 'slide') ) {
39
  var speed = plugin.isMobileView() ? plugin.settings.effect_speed_mobile : plugin.settings.effect_speed;
40
 
41
  anchor.siblings(".mega-sub-menu").animate({'height':'hide', 'paddingTop':'hide', 'paddingBottom':'hide', 'minHeight':'hide'}, speed, function() {
42
  anchor.siblings(".mega-sub-menu").css("display", "");
43
  anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel");
44
  });
45
+
46
  return;
47
  }
48
 
423
  }
424
  });
425
 
426
+ $("span.mega-indicator", $menu).on('click', function(e) {
427
  e.preventDefault();
428
  e.stopPropagation();
429
+ plugin.hidePanel($(this).parent(), false);
430
  });
431
 
432
  if (plugin.settings.unbind_events == 'true') {
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.4.3
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.4.3';
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.5
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.5';
30
 
31
 
32
  /**
readme.txt CHANGED
@@ -108,9 +108,9 @@ See https://www.megamenu.com for more screenshots
108
 
109
  == Changelog ==
110
 
111
- = 2.4.dev =
112
 
113
- * New Feature: On mobile, clicking the "Up" arrow (indicating that a sub menu is open) will close the sub menu
114
  * Fix: Menu Themes will no longer be shared across sites in a multi site network (for new installations only, existing installations will not be affected)
115
  * Fix: PHP Warning in Mega_Menu_Menu_Item_Manager::get_grid_column()
116
  * Fix: Theme export URL
@@ -119,7 +119,6 @@ See https://www.megamenu.com for more screenshots
119
  * Improvement: Add support for "disable-collapse" class on menu items, to stop sub menus disappearing until the page background is clicked
120
  * Improvement: Improved RTL admin styling
121
 
122
-
123
  = 2.4.2 =
124
 
125
  * Improvement: Add Mobile Font (Hover) and Mobile Menu Item Background (Hover) options to theme editor
108
 
109
  == Changelog ==
110
 
111
+ = 2.5 =
112
 
113
+ * New Feature: On mobile, clicking the "Up" arrow (indicating that a sub menu is open) will close the sub menu. This feature will be enabled the next time the CSS is regenerated for the menu, or can be manually activated by going to Mega Menu > Tools > Clear CSS Cache.
114
  * Fix: Menu Themes will no longer be shared across sites in a multi site network (for new installations only, existing installations will not be affected)
115
  * Fix: PHP Warning in Mega_Menu_Menu_Item_Manager::get_grid_column()
116
  * Fix: Theme export URL
119
  * Improvement: Add support for "disable-collapse" class on menu items, to stop sub menus disappearing until the page background is clicked
120
  * Improvement: Improved RTL admin styling
121
 
 
122
  = 2.4.2 =
123
 
124
  * Improvement: Add Mobile Font (Hover) and Mobile Menu Item Background (Hover) options to theme editor