Max Mega Menu - Version 2.4.1

Version Description

[18/02/18] =

  • Change: WCAG accessibility fix (do not use "content" CSS for mobile menu toggle block text). Important: If you have applied custom styling to the menu toggle block you may need to update it.
  • Change: To avoid CSS conflicts, when a menu item has a custom icon, use "mega-custom-icon" class instead of "custom"
  • New: Slide animation option for mobile menu
  • Improvement: Add font size and icon size options to mobile menu toggle block
  • Improvement: Use Flexbox to accurately align centrally aligned menu toggle blocks
  • Improvement: Use Flexbox to properly format flyout menu items with sub menus, icons and descriptions
  • Improvement: Experimental: Allow flyout menus to have dynamic widths
  • Improvement: Option to set the total number of columns per row in the grid layout
  • Improvement: Show warning if CSS "Save to filesystem" failed to write CSS due to folder permissions
  • Fix: Tabs now respect 'second click behaviour' option
  • Fix: Admin styling not loading correctly on Russian sites (and possible other languages)
  • Fix: List (incorrectly) created PolyLang menu locations so that they can be deleted/renamed
  • Fix: Menu Item Titles with br tags break mega menu settings panel
  • Fix: "Save" button not accessible in menu item settings on smaller resolutions
  • Fix: PHP Warnings
  • Fix: Flyout menu border radius when shadow is applied
  • Fix: Menu locations incorrectly listed as active in theme selector dropdown
  • Fix: Mobile sub menu clicks not working in GeneratePress
  • Fix: Compatibility fix for WP Disquz media uploader
  • Fix: Items output incorrectly when using Grid Layout within tabbed sub menus
  • Fix: Only apply dynamic sub menu widths to top level mega menus
Download this release

Release Info

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

Code changes from version 2.4.0.7 to 2.4.1

classes/settings.class.php CHANGED
@@ -332,10 +332,13 @@ class Mega_Menu_Settings {
332
  update_option( 'megamenu_locations', $new_locations );
333
  }
334
 
 
 
335
  do_action("megamenu_after_save_general_settings");
336
 
337
  do_action("megamenu_delete_cache");
338
 
 
339
  $url = isset( $_POST['_wp_http_referer'] ) ? $_POST['_wp_http_referer'] : admin_url( "admin.php?page=maxmegamenu&saved=true" );
340
 
341
  $this->redirect( $url );
@@ -726,7 +729,13 @@ class Mega_Menu_Settings {
726
  </td>
727
  <td class='mega-value'>
728
  <select name='settings[css]' id='mega_css'>
729
- <option value='fs' <?php echo selected( $css == 'fs'); ?>><?php _e("Save to filesystem", "megamenu"); ?></option>
 
 
 
 
 
 
730
  <option value='head' <?php echo selected( $css == 'head'); ?>><?php _e("Output in &lt;head&gt;", "megamenu"); ?></option>
731
  <option value='disabled' <?php echo selected( $css == 'disabled'); ?>><?php _e("Don't output CSS", "megamenu"); ?></option>
732
  <select>
332
  update_option( 'megamenu_locations', $new_locations );
333
  }
334
 
335
+ delete_transient('megamenu_failed_to_write_css_to_filesystem');
336
+
337
  do_action("megamenu_after_save_general_settings");
338
 
339
  do_action("megamenu_delete_cache");
340
 
341
+
342
  $url = isset( $_POST['_wp_http_referer'] ) ? $_POST['_wp_http_referer'] : admin_url( "admin.php?page=maxmegamenu&saved=true" );
343
 
344
  $this->redirect( $url );
729
  </td>
730
  <td class='mega-value'>
731
  <select name='settings[css]' id='mega_css'>
732
+ <option value='fs' <?php echo selected( $css == 'fs'); ?>><?php _e("Save to filesystem", "megamenu"); ?>
733
+ <?php
734
+ if ( get_transient('megamenu_failed_to_write_css_to_filesystem') ) {
735
+ echo " " . __("(Action required: Check upload folder permissions)", "megamenu");
736
+ }
737
+ ?>
738
+ </option>
739
  <option value='head' <?php echo selected( $css == 'head'); ?>><?php _e("Output in &lt;head&gt;", "megamenu"); ?></option>
740
  <option value='disabled' <?php echo selected( $css == 'disabled'); ?>><?php _e("Don't output CSS", "megamenu"); ?></option>
741
  <select>
classes/style-manager.class.php CHANGED
@@ -502,7 +502,7 @@ final class Mega_Menu_Style_Manager {
502
  $settings['css'] = 'head';
503
  update_option( 'megamenu_settings', $settings );
504
  $this->settings = get_option( "megamenu_settings" );
505
-
506
  }
507
 
508
  }
502
  $settings['css'] = 'head';
503
  update_option( 'megamenu_settings', $settings );
504
  $this->settings = get_option( "megamenu_settings" );
505
+ set_transient( 'megamenu_failed_to_write_css_to_filesystem', 'true', 0 );
506
  }
507
 
508
  }
css/megamenu.scss CHANGED
@@ -111,7 +111,6 @@
111
  flex-direction: column;
112
  flex-grow: 1;
113
  justify-content: center;
114
- width: 100%; /** IE11 **/
115
 
116
  .mega-menu-title,
117
  .mega-menu-description {
@@ -140,16 +139,19 @@
140
  }
141
  }
142
 
143
- &.mega-menu-item-has-children > a.mega-menu-link {
144
- &:after {
145
- align-items: center;
146
- flex-grow: 0;
147
- line-height: normal;
148
- display: inline-flex;
 
 
149
  }
150
 
151
- .mega-description-group {
152
  flex-basis: 80%;
 
153
  }
154
  }
155
  }
111
  flex-direction: column;
112
  flex-grow: 1;
113
  justify-content: center;
 
114
 
115
  .mega-menu-title,
116
  .mega-menu-description {
139
  }
140
  }
141
 
142
+ &.mega-menu-item-has-children {
143
+ > a.mega-menu-link {
144
+ &:after {
145
+ align-items: center;
146
+ flex-grow: 0;
147
+ line-height: normal;
148
+ display: inline-flex;
149
+ }
150
  }
151
 
152
+ &.mega-menu-flyout li.mega-menu-item .mega-description-group {
153
  flex-basis: 80%;
154
+ width: 100%;
155
  }
156
  }
157
  }
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.0.7
8
  * Author: Tom Hemsley
9
  * Author URI: https://www.megamenu.com
10
  * License: GPL-2.0+
@@ -26,13 +26,13 @@ final class Mega_Menu {
26
  /**
27
  * @var string
28
  */
29
- public $version = '2.4.0.7';
30
 
31
 
32
  /**
33
  * @var string
34
  */
35
- public $scss_last_updated = '2.4.0.7';
36
 
37
 
38
  /**
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.1
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.4.1';
30
 
31
 
32
  /**
33
  * @var string
34
  */
35
+ public $scss_last_updated = '2.4.1';
36
 
37
 
38
  /**
readme.txt CHANGED
@@ -108,20 +108,21 @@ See https://www.megamenu.com for more screenshots
108
 
109
  == Changelog ==
110
 
111
- = 2.4.0.5 (dev) =
112
 
113
- * New feature: Slide animation option for mobile menu
 
 
114
  * Improvement: Add font size and icon size options to mobile menu toggle block
115
  * Improvement: Use Flexbox to accurately align centrally aligned menu toggle blocks
116
- * Improvement: Allow flyout menus to have dynamic widths
 
117
  * Improvement: Option to set the total number of columns per row in the grid layout
118
- * Change: WCAG fix (don't use "content" pseudo element for mobile menu toggle block - requires manual clearing of CSS Cache under Mega Menu > Tools).
119
- Important: If you have applied custom styling to the menu toggle block you may need to update it.
120
- * Change: Tabs now respect 'second click behaviour' option
121
- * Change: To avoid CSS conflicts, when a menu item has a custom icon, use "mega-custom-icon" class instead of "custom"
122
  * Fix: Admin styling not loading correctly on Russian sites (and possible other languages)
123
  * Fix: List (incorrectly) created PolyLang menu locations so that they can be deleted/renamed
124
- * Fix: Menu Item Titles with <br> tags break mega menu settings panel
125
  * Fix: "Save" button not accessible in menu item settings on smaller resolutions
126
  * Fix: PHP Warnings
127
  * Fix: Flyout menu border radius when shadow is applied
@@ -130,7 +131,6 @@ Important: If you have applied custom styling to the menu toggle block you may n
130
  * Fix: Compatibility fix for WP Disquz media uploader
131
  * Fix: Items output incorrectly when using Grid Layout within tabbed sub menus
132
  * Fix: Only apply dynamic sub menu widths to top level mega menus
133
- * Fix: Use Flexbox to properly format flyout menu items with sub menus, icons and descriptions
134
 
135
 
136
  = 2.4 [17/10/17] =
108
 
109
  == Changelog ==
110
 
111
+ = 2.4.1 [18/02/18] =
112
 
113
+ * Change: WCAG accessibility fix (do not use "content" CSS for mobile menu toggle block text). Important: If you have applied custom styling to the menu toggle block you may need to update it.
114
+ * Change: To avoid CSS conflicts, when a menu item has a custom icon, use "mega-custom-icon" class instead of "custom"
115
+ * New: Slide animation option for mobile menu
116
  * Improvement: Add font size and icon size options to mobile menu toggle block
117
  * Improvement: Use Flexbox to accurately align centrally aligned menu toggle blocks
118
+ * Improvement: Use Flexbox to properly format flyout menu items with sub menus, icons and descriptions
119
+ * Improvement: Experimental: Allow flyout menus to have dynamic widths
120
  * Improvement: Option to set the total number of columns per row in the grid layout
121
+ * Improvement: Show warning if CSS "Save to filesystem" failed to write CSS due to folder permissions
122
+ * Fix: Tabs now respect 'second click behaviour' option
 
 
123
  * Fix: Admin styling not loading correctly on Russian sites (and possible other languages)
124
  * Fix: List (incorrectly) created PolyLang menu locations so that they can be deleted/renamed
125
+ * Fix: Menu Item Titles with br tags break mega menu settings panel
126
  * Fix: "Save" button not accessible in menu item settings on smaller resolutions
127
  * Fix: PHP Warnings
128
  * Fix: Flyout menu border radius when shadow is applied
131
  * Fix: Compatibility fix for WP Disquz media uploader
132
  * Fix: Items output incorrectly when using Grid Layout within tabbed sub menus
133
  * Fix: Only apply dynamic sub menu widths to top level mega menus
 
134
 
135
 
136
  = 2.4 [17/10/17] =