Responsive Menu - Version 3.1.6

Version Description

(28th July 2017) = * Requires PHP 5.4 * Added more translatable options to PolyLang and WPML * Added option to turn sub-menu descriptions on

Download this release

Release Info

Developer peterfeatherstone
Plugin Icon 128x128 Responsive Menu
Version 3.1.6
Comparing to
See all releases

Code changes from version 3.1.5 to 3.1.6

app/Walkers/Walker.php CHANGED
@@ -88,7 +88,7 @@ class Walker extends \Walker_Nav_Menu {
88
  $item_output .= $title;
89
  $item_output .= $initial_arrow;
90
 
91
- if(isset($item->description) && $item->description)
92
  $item_output .= '<span class="responsive-menu-item-description">' . $item->description . '</span>';
93
 
94
  $item_output .= '</a>';
88
  $item_output .= $title;
89
  $item_output .= $initial_arrow;
90
 
91
+ if(isset($item->description) && $item->description && $this->options['submenu_descriptions_on'])
92
  $item_output .= '<span class="responsive-menu-item-description">' . $item->description . '</span>';
93
 
94
  $item_output .= '</a>';
config/default_options.php CHANGED
@@ -93,6 +93,7 @@ function get_responsive_menu_default_options() {
93
  'submenu_arrow_width_unit' => 'px',
94
  'submenu_arrow_height' => '40',
95
  'submenu_arrow_height_unit' => 'px',
 
96
  'accordion_animation' => 'off',
97
  'auto_expand_all_submenus' => 'off',
98
  'auto_expand_current_submenus' => 'off',
93
  'submenu_arrow_width_unit' => 'px',
94
  'submenu_arrow_height' => '40',
95
  'submenu_arrow_height_unit' => 'px',
96
+ 'submenu_descriptions_on' => false,
97
  'accordion_animation' => 'off',
98
  'auto_expand_all_submenus' => 'off',
99
  'auto_expand_current_submenus' => 'off',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://responsive.menu/donate
4
  Tags: responsive, menu, responsive menu, mobile menu, wordpress responsive menu, wp responsive menu, tablet menu, hamburger menu, hamburger, mobile, tablet, 3 lines, 3 line, three line, three lines
5
  Requires at least: 3.6
6
  Tested up to: 4.8
7
- Stable tag: 3.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -111,6 +111,11 @@ To view our FAQ, please go to <a href="https://responsive.menu/faq">https://resp
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
114
  = 3.1.5 (22nd July 2017) =
115
  * **Requires PHP 5.4**
116
  * Added ability to use description in menu items
4
  Tags: responsive, menu, responsive menu, mobile menu, wordpress responsive menu, wp responsive menu, tablet menu, hamburger menu, hamburger, mobile, tablet, 3 lines, 3 line, three line, three lines
5
  Requires at least: 3.6
6
  Tested up to: 4.8
7
+ Stable tag: 3.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
111
 
112
  == Changelog ==
113
 
114
+ = 3.1.6 (28th July 2017) =
115
+ * **Requires PHP 5.4**
116
+ * Added more translatable options to PolyLang and WPML
117
+ * Added option to turn sub-menu descriptions on
118
+
119
  = 3.1.5 (22nd July 2017) =
120
  * **Requires PHP 5.4**
121
  * Added ability to use description in menu items
responsive-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://responsive.menu
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
- Version: 3.1.5
8
  Author: Peter Featherstone
9
  Text Domain: responsive-menu
10
  Author URI: https://peterfeatherstone.com
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://responsive.menu
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
+ Version: 3.1.6
8
  Author: Peter Featherstone
9
  Text Domain: responsive-menu
10
  Author URI: https://peterfeatherstone.com
views/admin/sections/sub-menus.html.twig CHANGED
@@ -79,4 +79,11 @@
79
  {{ macros.row('fade_submenus_delay', 'Delay', 'input', options, errors, '', 'pro', '', '', '', 'ms') }}
80
  {{ macros.row('fade_submenus_speed', 'Speed', 'input', options, errors, '', 'pro', '', '', '', 'ms') }}
81
  </table>
 
 
 
 
 
 
 
82
  </div>
79
  {{ macros.row('fade_submenus_delay', 'Delay', 'input', options, errors, '', 'pro', '', '', '', 'ms') }}
80
  {{ macros.row('fade_submenus_speed', 'Speed', 'input', options, errors, '', 'pro', '', '', '', 'ms') }}
81
  </table>
82
+ </div>
83
+
84
+ <div class='panel panel-default'>
85
+ <div class='panel-body'>Descriptions<small>Sub Menus</small></div>
86
+ <table class='table table-bordered table-hover'>
87
+ {{ macros.row('submenu_descriptions_on', 'Enabled', 'checkbox', options, errors, '', '', '', '', 'If you have set descriptions for your menu items, you can turn them on here.') }}
88
+ </table>
89
  </div>
views/admin/tabs.html.twig CHANGED
@@ -2,7 +2,7 @@
2
  <li{% if current_page() == 'initial-setup' %} class='active'{% endif %} id="initial-setup-tab"><a data-toggle='tab' href='#initial-setup'>Initial Setup <span class='badge'>3</span></a></li>
3
  <li{% if current_page() == 'menu' %} class='active'{% endif %} id="menu-tab"><a data-toggle='tab' href='#menu'>Menu <span class='badge'>60</span></a></li>
4
  <li{% if current_page() == 'button' %} class='active'{% endif %} id="button-tab"><a data-toggle='tab' href='#button'>Button <span class='badge'>33</span></a></li>
5
- <li{% if current_page() == 'sub-menus' %} class='active'{% endif %} id="sub-menus-tab"><a data-toggle='tab' href='#sub-menus'>Sub Menus <span class='badge'>33</span></a></li>
6
  <li{% if current_page() == 'technical' %} class='active'{% endif %} id="technical-tab"><a data-toggle='tab' href='#technical'>Technical <span class='badge'>10</span></a></li>
7
  <li{% if current_page() == 'import-export' %} class='active'{% endif %} id="import-export-tabZz"><a data-toggle='tab' href='#import-export'>Import/Export <span class='badge'>4</span></a></li>
8
  <li{% if current_page() == 'custom-css' %} class='active'{% endif %} id="custom-css-tab"><a data-toggle='tab' href='#custom-css'>Custom CSS <span class='badge progress-bar-danger'>Pro</span></a></li>
2
  <li{% if current_page() == 'initial-setup' %} class='active'{% endif %} id="initial-setup-tab"><a data-toggle='tab' href='#initial-setup'>Initial Setup <span class='badge'>3</span></a></li>
3
  <li{% if current_page() == 'menu' %} class='active'{% endif %} id="menu-tab"><a data-toggle='tab' href='#menu'>Menu <span class='badge'>60</span></a></li>
4
  <li{% if current_page() == 'button' %} class='active'{% endif %} id="button-tab"><a data-toggle='tab' href='#button'>Button <span class='badge'>33</span></a></li>
5
+ <li{% if current_page() == 'sub-menus' %} class='active'{% endif %} id="sub-menus-tab"><a data-toggle='tab' href='#sub-menus'>Sub Menus <span class='badge'>34</span></a></li>
6
  <li{% if current_page() == 'technical' %} class='active'{% endif %} id="technical-tab"><a data-toggle='tab' href='#technical'>Technical <span class='badge'>10</span></a></li>
7
  <li{% if current_page() == 'import-export' %} class='active'{% endif %} id="import-export-tabZz"><a data-toggle='tab' href='#import-export'>Import/Export <span class='badge'>4</span></a></li>
8
  <li{% if current_page() == 'custom-css' %} class='active'{% endif %} id="custom-css-tab"><a data-toggle='tab' href='#custom-css'>Custom CSS <span class='badge progress-bar-danger'>Pro</span></a></li>