Max Mega Menu - Version 2.9.5

Version Description

  • Improvement: Update Menu Locations screen design to make it clearer that locations can be expanded to view available options
Download this release

Release Info

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

Code changes from version 2.9.4 to 2.9.5

classes/pages/locations.php CHANGED
@@ -262,12 +262,12 @@ if ( ! class_exists( 'Mega_Menu_Locations' ) ) :
262
 
263
  <?php $this->print_messages(); ?>
264
 
265
- <h3 class='first'><?php esc_html_e( 'Menu Locations', 'megamenu' ); ?></h3>
266
 
267
  <table>
268
  <tr>
269
  <td class='mega-name'>
270
- <?php esc_html_e( 'Registered Menu Locations', 'megamenu' ); ?>
271
  <div class='mega-description'>
272
  <p><?php esc_html_e( 'This is an overview of the menu locations supported by your theme.', 'megamenu' ); ?></p>
273
  <p><?php esc_html_e( 'Use these options to enable Max Mega Menu and define the behaviour of each menu location.', 'megamenu' ); ?></p>
@@ -360,7 +360,6 @@ if ( ! class_exists( 'Mega_Menu_Locations' ) ) :
360
 
361
  <div class='mega-location <?php echo esc_attr( $is_enabled_class ); ?><?php echo esc_attr( $has_active_location_class ); ?>'>
362
  <div class='mega-accordion-title<?php echo esc_attr( $open_class ); ?>'>
363
- <span class='dashicons dashicons-location'></span>
364
  <h4><?php echo esc_html( $description ); ?></h4>
365
  <?php
366
 
262
 
263
  <?php $this->print_messages(); ?>
264
 
265
+ <h3 class='first'><span class='dashicons dashicons-location'></span><?php esc_html_e( 'Menu Locations', 'megamenu' ); ?></h3>
266
 
267
  <table>
268
  <tr>
269
  <td class='mega-name'>
270
+ <?php esc_html_e( 'Menu Location Settings', 'megamenu' ); ?>
271
  <div class='mega-description'>
272
  <p><?php esc_html_e( 'This is an overview of the menu locations supported by your theme.', 'megamenu' ); ?></p>
273
  <p><?php esc_html_e( 'Use these options to enable Max Mega Menu and define the behaviour of each menu location.', 'megamenu' ); ?></p>
360
 
361
  <div class='mega-location <?php echo esc_attr( $is_enabled_class ); ?><?php echo esc_attr( $has_active_location_class ); ?>'>
362
  <div class='mega-accordion-title<?php echo esc_attr( $open_class ); ?>'>
 
363
  <h4><?php echo esc_html( $description ); ?></h4>
364
  <?php
365
 
css/admin/admin.css CHANGED
@@ -1709,6 +1709,21 @@ body.toplevel_page_maxmegamenu .megamenu_right {
1709
  body.toplevel_page_maxmegamenu .megamenu_right .menu_settings.menu_settings_general_settings .mega-inner-table td {
1710
  padding-top: 3px;
1711
  padding-bottom: 3px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1712
  body[class*='_page_maxmegamenu_'] .megamenu_right .menu_settings.menu_settings_menu_locations .mega-add-location,
1713
  body.toplevel_page_maxmegamenu .megamenu_right .menu_settings.menu_settings_menu_locations .mega-add-location {
1714
  margin-top: 20px; }
1709
  body.toplevel_page_maxmegamenu .megamenu_right .menu_settings.menu_settings_general_settings .mega-inner-table td {
1710
  padding-top: 3px;
1711
  padding-bottom: 3px; }
1712
+ body[class*='_page_maxmegamenu_'] .megamenu_right .menu_settings.menu_settings_menu_locations .mega-accordion-title h4:before,
1713
+ body.toplevel_page_maxmegamenu .megamenu_right .menu_settings.menu_settings_menu_locations .mega-accordion-title h4:before {
1714
+ font: 400 14px/1 dashicons;
1715
+ content: "\f347";
1716
+ speak: none;
1717
+ padding: 0;
1718
+ margin-right: 10px;
1719
+ display: inline-block;
1720
+ vertical-align: middle;
1721
+ -webkit-font-smoothing: antialiased;
1722
+ -moz-osx-font-smoothing: grayscale;
1723
+ transition: all 0.4s ease; }
1724
+ body[class*='_page_maxmegamenu_'] .megamenu_right .menu_settings.menu_settings_menu_locations .mega-accordion-title.mega-accordion-open h4:before,
1725
+ body.toplevel_page_maxmegamenu .megamenu_right .menu_settings.menu_settings_menu_locations .mega-accordion-title.mega-accordion-open h4:before {
1726
+ transform: rotateZ(-180deg); }
1727
  body[class*='_page_maxmegamenu_'] .megamenu_right .menu_settings.menu_settings_menu_locations .mega-add-location,
1728
  body.toplevel_page_maxmegamenu .megamenu_right .menu_settings.menu_settings_menu_locations .mega-add-location {
1729
  margin-top: 20px; }
css/admin/admin.scss CHANGED
@@ -2000,6 +2000,25 @@ body.toplevel_page_maxmegamenu {
2000
 
2001
  &.menu_settings_menu_locations {
2002
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2003
  .mega-add-location {
2004
  margin-top: 20px;
2005
  }
2000
 
2001
  &.menu_settings_menu_locations {
2002
 
2003
+ .mega-accordion-title {
2004
+ h4:before {
2005
+ font: 400 14px/1 dashicons;
2006
+ content: "\f347";
2007
+ speak: none;
2008
+ padding: 0;
2009
+ margin-right: 10px;
2010
+ display: inline-block;
2011
+ vertical-align: middle;
2012
+ -webkit-font-smoothing: antialiased;
2013
+ -moz-osx-font-smoothing: grayscale;
2014
+ transition: all 0.4s ease;
2015
+ }
2016
+
2017
+ &.mega-accordion-open h4:before {
2018
+ transform: rotateZ(-180deg);
2019
+ }
2020
+ }
2021
+
2022
  .mega-add-location {
2023
  margin-top: 20px;
2024
  }
js/settings.js CHANGED
@@ -225,8 +225,6 @@ jQuery(function ($) {
225
  var title = $(this);
226
  var content = title.next('.mega-accordion-content');
227
 
228
- $(".mega-accordion-content:visible").slideUp('fast');
229
-
230
  if ( content.is(':hidden') ) {
231
  content.slideDown('fast', function() {
232
  title.addClass('mega-accordion-open');
225
  var title = $(this);
226
  var content = title.next('.mega-accordion-content');
227
 
 
 
228
  if ( content.is(':hidden') ) {
229
  content.slideDown('fast', function() {
230
  title.addClass('mega-accordion-open');
megamenu.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Max Mega Menu
4
  * Plugin URI: https://www.megamenu.com
5
  * Description: An easy to use mega menu plugin. Written the WordPress way.
6
- * Version: 2.9.4
7
  * Author: megamenu.com
8
  * Author URI: https://www.megamenu.com
9
  * License: GPL-2.0+
@@ -35,7 +35,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
35
  *
36
  * @var string
37
  */
38
- public $version = '2.9.4';
39
 
40
 
41
  /**
3
  * Plugin Name: Max Mega Menu
4
  * Plugin URI: https://www.megamenu.com
5
  * Description: An easy to use mega menu plugin. Written the WordPress way.
6
+ * Version: 2.9.5
7
  * Author: megamenu.com
8
  * Author URI: https://www.megamenu.com
9
  * License: GPL-2.0+
35
  *
36
  * @var string
37
  */
38
+ public $version = '2.9.5';
39
 
40
 
41
  /**
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: megamenu
3
  Tags: menu, megamenu, mega menu, navigation, mobile
4
  Requires at least: 4.9
5
- Tested up to: 5.8
6
- Stable tag: 2.9.3
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -134,6 +134,10 @@ See https://www.megamenu.com for more screenshots
134
 
135
  == Changelog ==
136
 
 
 
 
 
137
  = 2.9.4 =
138
 
139
  * Improvement: Styling improvements to color picker
2
  Contributors: megamenu
3
  Tags: menu, megamenu, mega menu, navigation, mobile
4
  Requires at least: 4.9
5
+ Tested up to: 5.9
6
+ Stable tag: 2.9.4
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
134
 
135
  == Changelog ==
136
 
137
+ = 2.9.5 =
138
+
139
+ * Improvement: Update Menu Locations screen design to make it clearer that locations can be expanded to view available options
140
+
141
  = 2.9.4 =
142
 
143
  * Improvement: Styling improvements to color picker