Responsive Menu - Version 3.1.29

Version Description

(4th May 2020) = * Bug: Fix Menu import functionality when menu names do not match

Download this release

Release Info

Developer expresstech
Plugin Icon 128x128 Responsive Menu
Version 3.1.29
Comparing to
See all releases

Code changes from version 3.1.28 to 3.1.29

Files changed (3) hide show
  1. config/twig.php +10 -1
  2. readme.txt +4 -1
  3. responsive-menu.php +1 -1
config/twig.php CHANGED
@@ -23,6 +23,15 @@ if(!is_admin()):
23
  $menu = $translator($options['menu_to_use'], 'menu_to_use');
24
  $walker = $options['custom_walker'] ? new $options['custom_walker']($options) : new ResponsiveMenu\Walkers\Walker($options);
25
 
 
 
 
 
 
 
 
 
 
26
  return wp_nav_menu(
27
  [
28
  'container' => '',
@@ -32,7 +41,7 @@ if(!is_admin()):
32
  'depth' => $options['menu_depth'] ? $options['menu_depth'] : 0,
33
  'theme_location' => $options['theme_location_menu'] ? $options['theme_location_menu'] : null,
34
  'walker' => $walker,
35
- 'items_wrap' => '<ul id="%1$s" role="menubar" aria-label="'. $menu .'">%3$s</ul>',
36
  'echo' => false
37
  ]
38
  );
23
  $menu = $translator($options['menu_to_use'], 'menu_to_use');
24
  $walker = $options['custom_walker'] ? new $options['custom_walker']($options) : new ResponsiveMenu\Walkers\Walker($options);
25
 
26
+ /** Check menu is exist or not */
27
+ $menu_arial_label = '';
28
+ foreach( get_terms('nav_menu') as $nav_menu ) {
29
+ if ( $nav_menu->slug === $menu ) {
30
+ $menu_arial_label = "aria-label= " . $menu;
31
+ break;
32
+ }
33
+ }
34
+
35
  return wp_nav_menu(
36
  [
37
  'container' => '',
41
  'depth' => $options['menu_depth'] ? $options['menu_depth'] : 0,
42
  'theme_location' => $options['theme_location_menu'] ? $options['theme_location_menu'] : null,
43
  'walker' => $walker,
44
+ 'items_wrap' => '<ul id="%1$s" role="menubar" "'. $menu_arial_label .'" >%3$s</ul>',
45
  'echo' => false
46
  ]
47
  );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: expresstech,responsivemenu
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 5.4
6
- Stable tag: 3.1.28
7
  Requires PHP: 5.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -111,6 +111,9 @@ To view our FAQ, please go to [https://responsive.menu/faq/](https://responsive.
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 3.1.28 (13th April 2020) =
115
  * Feature: Added keyboard accessibility
116
 
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 5.4
6
+ Stable tag: 3.1.29
7
  Requires PHP: 5.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
111
 
112
  == Changelog ==
113
 
114
+ = 3.1.29 (4th May 2020) =
115
+ * Bug: Fix Menu import functionality when menu names do not match
116
+
117
  = 3.1.28 (13th April 2020) =
118
  * Feature: Added keyboard accessibility
119
 
responsive-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://expresstech.io
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
- Version: 3.1.28
8
  Author: ExpressTech
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://expresstech.io
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
+ Version: 3.1.29
8
  Author: ExpressTech
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu