Version Description
[23/08/2016] =
- Fix: JavaScript fix for themes/plugins that force WordPress to load outdated versions of jQuery (CherryFramework)
Download this release
Release Info
Developer | megamenu |
Plugin | Max Mega Menu |
Version | 2.2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.3.1
- js/maxmegamenu.js +14 -12
- megamenu.php +2 -2
- readme.txt +6 -2
js/maxmegamenu.js
CHANGED
@@ -71,6 +71,7 @@
|
|
71 |
|
72 |
};
|
73 |
|
|
|
74 |
var add_animating_class = function(element) {
|
75 |
var timeout = plugin.settings.effect_speed + parseInt(megamenu.timeout, 10);
|
76 |
|
@@ -81,6 +82,7 @@
|
|
81 |
}, timeout );
|
82 |
}
|
83 |
|
|
|
84 |
plugin.hideAllPanels = function() {
|
85 |
$('.mega-toggle-on > a', $menu).each(function() {
|
86 |
plugin.hidePanel($(this), false);
|
@@ -89,18 +91,24 @@
|
|
89 |
|
90 |
|
91 |
plugin.hideSiblingPanels = function(anchor, immediate) {
|
92 |
-
//
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
}
|
97 |
|
98 |
-
|
99 |
plugin.isDesktopView = function() {
|
100 |
return $(window).width() > plugin.settings.breakpoint;
|
101 |
}
|
102 |
|
103 |
-
|
104 |
plugin.hideOpenSiblings = function() {
|
105 |
// desktops, horizontal
|
106 |
if ( plugin.isDesktopView() && ( $menu.hasClass('mega-menu-horizontal') || $menu.hasClass('mega-menu-vertical') ) ) {
|
@@ -117,7 +125,6 @@
|
|
117 |
}
|
118 |
}
|
119 |
|
120 |
-
|
121 |
plugin.showPanel = function(anchor) {
|
122 |
|
123 |
if ( !plugin.isDesktopView() && anchor.parent().hasClass('mega-hide-sub-menu-on-mobile') ) {
|
@@ -185,7 +192,6 @@
|
|
185 |
anchor.parent().addClass('mega-toggle-on').triggerHandler("open_panel");
|
186 |
};
|
187 |
|
188 |
-
|
189 |
var openOnClick = function() {
|
190 |
// hide menu when clicked away from
|
191 |
$(document).on('click touchstart', function(event) {
|
@@ -221,7 +227,6 @@
|
|
221 |
});
|
222 |
};
|
223 |
|
224 |
-
|
225 |
var openOnHover = function() {
|
226 |
|
227 |
$('li.mega-menu-item-has-children', menu).not('li.mega-menu-megamenu li.mega-menu-item-has-children', menu).hoverIntent({
|
@@ -257,7 +262,6 @@
|
|
257 |
|
258 |
}
|
259 |
|
260 |
-
|
261 |
plugin.keyboard_navigation = function() {
|
262 |
var tab_key = 9;
|
263 |
var escape_key = 27;
|
@@ -298,7 +302,6 @@
|
|
298 |
});
|
299 |
}
|
300 |
|
301 |
-
|
302 |
plugin.init = function() {
|
303 |
plugin.settings = $.extend({}, defaults, options);
|
304 |
|
@@ -338,7 +341,6 @@
|
|
338 |
|
339 |
};
|
340 |
|
341 |
-
|
342 |
$.fn.maxmegamenu = function(options) {
|
343 |
return this.each(function() {
|
344 |
if (undefined === $(this).data('maxmegamenu')) {
|
71 |
|
72 |
};
|
73 |
|
74 |
+
|
75 |
var add_animating_class = function(element) {
|
76 |
var timeout = plugin.settings.effect_speed + parseInt(megamenu.timeout, 10);
|
77 |
|
82 |
}, timeout );
|
83 |
}
|
84 |
|
85 |
+
|
86 |
plugin.hideAllPanels = function() {
|
87 |
$('.mega-toggle-on > a', $menu).each(function() {
|
88 |
plugin.hidePanel($(this), false);
|
91 |
|
92 |
|
93 |
plugin.hideSiblingPanels = function(anchor, immediate) {
|
94 |
+
// jQuery 1.7.2 compatibility for themes/plugins that load old versions of jQuery
|
95 |
+
if ( $.fn.addBack !== undefined ) {
|
96 |
+
// all open children of open siblings
|
97 |
+
anchor.parent().siblings().find('.mega-toggle-on').addBack().children('a').each(function() {
|
98 |
+
plugin.hidePanel($(this), immediate);
|
99 |
+
});
|
100 |
+
} else {
|
101 |
+
// all open children of open siblings
|
102 |
+
anchor.parent().siblings().find('.mega-toggle-on').andSelf().children('a').each(function() {
|
103 |
+
plugin.hidePanel($(this), immediate);
|
104 |
+
});
|
105 |
+
}
|
106 |
}
|
107 |
|
|
|
108 |
plugin.isDesktopView = function() {
|
109 |
return $(window).width() > plugin.settings.breakpoint;
|
110 |
}
|
111 |
|
|
|
112 |
plugin.hideOpenSiblings = function() {
|
113 |
// desktops, horizontal
|
114 |
if ( plugin.isDesktopView() && ( $menu.hasClass('mega-menu-horizontal') || $menu.hasClass('mega-menu-vertical') ) ) {
|
125 |
}
|
126 |
}
|
127 |
|
|
|
128 |
plugin.showPanel = function(anchor) {
|
129 |
|
130 |
if ( !plugin.isDesktopView() && anchor.parent().hasClass('mega-hide-sub-menu-on-mobile') ) {
|
192 |
anchor.parent().addClass('mega-toggle-on').triggerHandler("open_panel");
|
193 |
};
|
194 |
|
|
|
195 |
var openOnClick = function() {
|
196 |
// hide menu when clicked away from
|
197 |
$(document).on('click touchstart', function(event) {
|
227 |
});
|
228 |
};
|
229 |
|
|
|
230 |
var openOnHover = function() {
|
231 |
|
232 |
$('li.mega-menu-item-has-children', menu).not('li.mega-menu-megamenu li.mega-menu-item-has-children', menu).hoverIntent({
|
262 |
|
263 |
}
|
264 |
|
|
|
265 |
plugin.keyboard_navigation = function() {
|
266 |
var tab_key = 9;
|
267 |
var escape_key = 27;
|
302 |
});
|
303 |
}
|
304 |
|
|
|
305 |
plugin.init = function() {
|
306 |
plugin.settings = $.extend({}, defaults, options);
|
307 |
|
341 |
|
342 |
};
|
343 |
|
|
|
344 |
$.fn.maxmegamenu = function(options) {
|
345 |
return this.each(function() {
|
346 |
if (undefined === $(this).data('maxmegamenu')) {
|
megamenu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Max Mega Menu
|
5 |
* Plugin URI: https://www.maxmegamenu.com
|
6 |
* Description: Mega Menu for WordPress.
|
7 |
-
* Version: 2.2.3
|
8 |
* Author: Tom Hemsley
|
9 |
* Author URI: https://www.maxmegamenu.com
|
10 |
* License: GPL-2.0+
|
@@ -26,7 +26,7 @@ final class Mega_Menu {
|
|
26 |
/**
|
27 |
* @var string
|
28 |
*/
|
29 |
-
public $version = '2.2.3';
|
30 |
|
31 |
|
32 |
/**
|
4 |
* Plugin Name: Max Mega Menu
|
5 |
* Plugin URI: https://www.maxmegamenu.com
|
6 |
* Description: Mega Menu for WordPress.
|
7 |
+
* Version: 2.2.3.1
|
8 |
* Author: Tom Hemsley
|
9 |
* Author URI: https://www.maxmegamenu.com
|
10 |
* License: GPL-2.0+
|
26 |
/**
|
27 |
* @var string
|
28 |
*/
|
29 |
+
public $version = '2.2.3.1';
|
30 |
|
31 |
|
32 |
/**
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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.
|
6 |
-
Stable tag: 2.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -97,6 +97,10 @@ See https://www.maxmegamenu.com for more screenshots
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
100 |
= 2.2.3 [15/08/2016] =
|
101 |
|
102 |
* Fix: Mega sub menus not correctly closed on mobile when effect is set to Fade
|
2 |
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.6
|
6 |
+
Stable tag: 2.2.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 2.2.3.1 [23/08/2016] =
|
101 |
+
|
102 |
+
* Fix: JavaScript fix for themes/plugins that force WordPress to load outdated versions of jQuery (CherryFramework)
|
103 |
+
|
104 |
= 2.2.3 [15/08/2016] =
|
105 |
|
106 |
* Fix: Mega sub menus not correctly closed on mobile when effect is set to Fade
|