Responsive Menu - Version 3.1.17

Version Description

(21st September 2018) = * Improve logic around word wrap. * Change approach to disabling background scrolling. * Improvements to smooth scrolling across different URLs. * Added menu title text alignment option.

Download this release

Release Info

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

Code changes from version 3.1.16 to 3.1.17

config/default_options.php CHANGED
@@ -211,6 +211,7 @@ function get_responsive_menu_default_options() {
211
  'menu_additional_content' => null,
212
  'menu_additional_content_colour' => '#fff',
213
  'menu_title' => null,
 
214
 
215
  // Container > Title Image
216
  'menu_title_image' => null,
211
  'menu_additional_content' => null,
212
  'menu_additional_content_colour' => '#fff',
213
  'menu_title' => null,
214
+ 'menu_title_alignment' => 'left',
215
 
216
  // Container > Title Image
217
  'menu_title_image' => null,
public/css/app.css.twig CHANGED
@@ -427,6 +427,7 @@ button#responsive-menu-button,
427
  background-color: {{ options.menu_title_background_colour }};
428
  color: {{ options.menu_title_colour }};
429
  font-size: {{ options.menu_title_font_size }}px;
 
430
  }
431
 
432
  #responsive-menu-container #responsive-menu-title a {
@@ -451,6 +452,8 @@ button#responsive-menu-button,
451
  #responsive-menu-container #responsive-menu-title #responsive-menu-title-image {
452
  display: inline-block;
453
  vertical-align: middle;
 
 
454
  }
455
 
456
  #responsive-menu-container #responsive-menu-title #responsive-menu-title-image img {
@@ -460,6 +463,7 @@ button#responsive-menu-button,
460
  {% if options.menu_title_image_width %}
461
  width: {{ options.menu_title_image_width }}{{ options.menu_title_image_width_unit }};
462
  {% endif %}
 
463
  }
464
 
465
  #responsive-menu-container #responsive-menu > li.responsive-menu-item:first-child > a {
@@ -471,13 +475,16 @@ button#responsive-menu-button,
471
  }
472
 
473
  #responsive-menu-container #responsive-menu li.responsive-menu-item a {
474
- height: {{ options.menu_links_height }}px;
475
  line-height: {{ options.menu_links_line_height }}px;
476
  border-bottom: {{ options.menu_border_width }}px solid {{ options.menu_item_border_colour }};
477
  color: {{ options.menu_link_colour }};
478
  background-color: {{ options.menu_item_background_colour }};
479
  {% if options.menu_word_wrap != 'off' %}
480
  word-wrap: break-word;
 
 
 
 
481
  {% endif %}
482
  }
483
 
@@ -548,7 +555,13 @@ button#responsive-menu-button,
548
  }
549
 
550
  #responsive-menu-container #responsive-menu ul.responsive-menu-submenu li.responsive-menu-item a {
551
- height: {{ options.submenu_links_height }}px;
 
 
 
 
 
 
552
  line-height: {{ options.submenu_links_line_height }}px;
553
  border-bottom: {{ options.submenu_border_width }}px solid {{ options.submenu_item_border_colour }};
554
  color: {{ options.submenu_link_colour }};
427
  background-color: {{ options.menu_title_background_colour }};
428
  color: {{ options.menu_title_colour }};
429
  font-size: {{ options.menu_title_font_size }}px;
430
+ text-align: {{ options.menu_title_alignment }};
431
  }
432
 
433
  #responsive-menu-container #responsive-menu-title a {
452
  #responsive-menu-container #responsive-menu-title #responsive-menu-title-image {
453
  display: inline-block;
454
  vertical-align: middle;
455
+ max-width: 100%;
456
+ margin-bottom: 15px;
457
  }
458
 
459
  #responsive-menu-container #responsive-menu-title #responsive-menu-title-image img {
463
  {% if options.menu_title_image_width %}
464
  width: {{ options.menu_title_image_width }}{{ options.menu_title_image_width_unit }};
465
  {% endif %}
466
+ max-width: 100%;
467
  }
468
 
469
  #responsive-menu-container #responsive-menu > li.responsive-menu-item:first-child > a {
475
  }
476
 
477
  #responsive-menu-container #responsive-menu li.responsive-menu-item a {
 
478
  line-height: {{ options.menu_links_line_height }}px;
479
  border-bottom: {{ options.menu_border_width }}px solid {{ options.menu_item_border_colour }};
480
  color: {{ options.menu_link_colour }};
481
  background-color: {{ options.menu_item_background_colour }};
482
  {% if options.menu_word_wrap != 'off' %}
483
  word-wrap: break-word;
484
+ height: auto;
485
+ padding-right: {{ options.submenu_arrow_width }}px;
486
+ {% else %}
487
+ height: {{ options.menu_links_height }}px;
488
  {% endif %}
489
  }
490
 
555
  }
556
 
557
  #responsive-menu-container #responsive-menu ul.responsive-menu-submenu li.responsive-menu-item a {
558
+ {% if options.menu_word_wrap != 'off' %}
559
+ word-wrap: break-word;
560
+ height: auto;
561
+ padding-right: {{ options.submenu_arrow_width }}px;
562
+ {% else %}
563
+ height: {{ options.menu_links_height }}px;
564
+ {% endif %}
565
  line-height: {{ options.submenu_links_line_height }}px;
566
  border-bottom: {{ options.submenu_border_width }}px solid {{ options.submenu_item_border_colour }};
567
  color: {{ options.submenu_link_colour }};
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ResponsiveMenu, peterfeatherstone
3
  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
4
  Requires at least: 3.6
5
  Tested up to: 4.9.7
6
- Stable tag: 3.1.16
7
  Requires PHP: 5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -111,6 +111,12 @@ To view our FAQ, please go to [https://responsive.menu/faq/](https://responsive.
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
 
114
  = 3.1.16 (15th August 2018) =
115
  * Added ability to upload and use themes.
116
 
3
  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
4
  Requires at least: 3.6
5
  Tested up to: 4.9.7
6
+ Stable tag: 3.1.17
7
  Requires PHP: 5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
111
 
112
  == Changelog ==
113
 
114
+ = 3.1.17 (21st September 2018) =
115
+ * Improve logic around word wrap.
116
+ * Change approach to disabling background scrolling.
117
+ * Improvements to smooth scrolling across different URLs.
118
+ * Added menu title text alignment option.
119
+
120
  = 3.1.16 (15th August 2018) =
121
  * Added ability to upload and use themes.
122
 
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.16
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.17
8
  Author: Peter Featherstone
9
  Text Domain: responsive-menu
10
  Author URI: https://peterfeatherstone.com
views/admin/sections/container.html.twig CHANGED
@@ -38,6 +38,7 @@
38
  <table class='table table-bordered table-hover'>
39
  {{ macros.row('menu_title_font_size', 'Font Size', 'input', options, errors, 'has-unit', 'semi-pro', '', 'pixel', 'Specify a font size for the title') }}
40
  {{ macros.row('menu_title', 'Text', 'input', options, errors, '', '', '', '', 'Set the title text to appear for the title section.') }}
 
41
  {{ macros.row('menu_title_link', 'Link', 'input', options, errors, '', '', '', '', 'Specify a link for the title text to navigate to when clicked.') }}
42
  {{ macros.row('menu_title_link_location', 'Link Target', 'select', options, errors, '', '', 'link_locations', '', 'Determine how the title link opens when clicked on.', '', '', 'You can specify for it to open in the same page, on a new tab or in a completely separate window.') }}
43
  </table>
38
  <table class='table table-bordered table-hover'>
39
  {{ macros.row('menu_title_font_size', 'Font Size', 'input', options, errors, 'has-unit', 'semi-pro', '', 'pixel', 'Specify a font size for the title') }}
40
  {{ macros.row('menu_title', 'Text', 'input', options, errors, '', '', '', '', 'Set the title text to appear for the title section.') }}
41
+ {{ macros.row('menu_title_alignment', 'Text Alignment', 'select', options, errors, '', '', 'alignment', '', 'Set the alignment of the text for the title.') }}
42
  {{ macros.row('menu_title_link', 'Link', 'input', options, errors, '', '', '', '', 'Specify a link for the title text to navigate to when clicked.') }}
43
  {{ macros.row('menu_title_link_location', 'Link Target', 'select', options, errors, '', '', 'link_locations', '', 'Determine how the title link opens when clicked on.', '', '', 'You can specify for it to open in the same page, on a new tab or in a completely separate window.') }}
44
  </table>