Version Description
(22nd September 2017) = * Requires PHP 5.4 * Added depth padding side option * Enabled touch gestures - Pro Only * Fixed fade animation hiding the single menu bug - Pro Only
Download this release
Release Info
Developer | peterfeatherstone |
Plugin | Responsive Menu |
Version | 3.1.7 |
Comparing to | |
See all releases |
Code changes from version 3.1.6 to 3.1.7
- config/default_options.php +2 -0
- public/css/app.css.twig +5 -5
- public/js/app.js.twig +1 -1
- readme.txt +7 -1
- responsive-menu.php +1 -1
- vendor/twig/twig/.gitignore +0 -5
- vendor/twig/twig/ext/twig/.gitignore +0 -30
- views/admin/banners.html.twig +1 -0
- views/admin/sections/menu.html.twig +9 -7
- views/admin/tabs.html.twig +1 -1
config/default_options.php
CHANGED
@@ -7,6 +7,7 @@ function get_responsive_menu_default_options() {
|
|
7 |
'breakpoint' => 8000,
|
8 |
'menu_to_hide' => '',
|
9 |
'menu_depth' => 5,
|
|
|
10 |
'menu_depth_0' => 5,
|
11 |
'menu_depth_1' => 10,
|
12 |
'menu_depth_2' => 15,
|
@@ -159,6 +160,7 @@ function get_responsive_menu_default_options() {
|
|
159 |
'menu_width_unit' => '%',
|
160 |
'menu_close_on_link_click' => 'off',
|
161 |
'menu_close_on_body_click' => 'off',
|
|
|
162 |
'menu_item_click_to_trigger_submenu' => 'off',
|
163 |
'menu_disable_scrolling' => 'off',
|
164 |
'menu_overlay' => 'off',
|
7 |
'breakpoint' => 8000,
|
8 |
'menu_to_hide' => '',
|
9 |
'menu_depth' => 5,
|
10 |
+
'menu_depth_side' => 'left',
|
11 |
'menu_depth_0' => 5,
|
12 |
'menu_depth_1' => 10,
|
13 |
'menu_depth_2' => 15,
|
160 |
'menu_width_unit' => '%',
|
161 |
'menu_close_on_link_click' => 'off',
|
162 |
'menu_close_on_body_click' => 'off',
|
163 |
+
'enable_touch_gestures' => false,
|
164 |
'menu_item_click_to_trigger_submenu' => 'off',
|
165 |
'menu_disable_scrolling' => 'off',
|
166 |
'menu_overlay' => 'off',
|
public/css/app.css.twig
CHANGED
@@ -124,23 +124,23 @@ button#responsive-menu-button,
|
|
124 |
}
|
125 |
|
126 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-1 a.responsive-menu-item-link {
|
127 |
-
padding-{{ options.
|
128 |
}
|
129 |
|
130 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-2 a.responsive-menu-item-link {
|
131 |
-
padding-{{ options.
|
132 |
}
|
133 |
|
134 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-3 a.responsive-menu-item-link {
|
135 |
-
padding-{{ options.
|
136 |
}
|
137 |
|
138 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-4 a.responsive-menu-item-link {
|
139 |
-
padding-{{ options.
|
140 |
}
|
141 |
|
142 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-5 a.responsive-menu-item-link {
|
143 |
-
padding-{{ options.
|
144 |
}
|
145 |
|
146 |
#responsive-menu-container li.responsive-menu-item {
|
124 |
}
|
125 |
|
126 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-1 a.responsive-menu-item-link {
|
127 |
+
padding-{{ options.menu_depth_side }}: {{ options.menu_depth_1 }}%;
|
128 |
}
|
129 |
|
130 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-2 a.responsive-menu-item-link {
|
131 |
+
padding-{{ options.menu_depth_side }}: {{ options.menu_depth_2 }}%;
|
132 |
}
|
133 |
|
134 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-3 a.responsive-menu-item-link {
|
135 |
+
padding-{{ options.menu_depth_side }}: {{ options.menu_depth_3 }}%;
|
136 |
}
|
137 |
|
138 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-4 a.responsive-menu-item-link {
|
139 |
+
padding-{{ options.menu_depth_side }}: {{ options.menu_depth_4 }}%;
|
140 |
}
|
141 |
|
142 |
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu-depth-5 a.responsive-menu-item-link {
|
143 |
+
padding-{{ options.menu_depth_side }}: {{ options.menu_depth_5 }}%;
|
144 |
}
|
145 |
|
146 |
#responsive-menu-container li.responsive-menu-item {
|
public/js/app.js.twig
CHANGED
@@ -55,7 +55,7 @@ jQuery(document).ready(function($) {
|
|
55 |
this.isOpen ? this.closeMenu() : this.openMenu();
|
56 |
},
|
57 |
triggerSubArrow: function(subarrow) {
|
58 |
-
var sub_menu = $(subarrow).parent().
|
59 |
var self = this;
|
60 |
if(this.accordion == 'on') {
|
61 |
/* Get Top Most Parent and the siblings */
|
55 |
this.isOpen ? this.closeMenu() : this.openMenu();
|
56 |
},
|
57 |
triggerSubArrow: function(subarrow) {
|
58 |
+
var sub_menu = $(subarrow).parent().siblings('.responsive-menu-submenu');
|
59 |
var self = this;
|
60 |
if(this.accordion == 'on') {
|
61 |
/* Get Top Most Parent and the siblings */
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -111,6 +111,12 @@ To view our FAQ, please go to <a href="https://responsive.menu/faq">https://resp
|
|
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
|
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.7
|
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.7 (22nd September 2017) =
|
115 |
+
* **Requires PHP 5.4**
|
116 |
+
* Added depth padding side option
|
117 |
+
* Enabled touch gestures - Pro Only
|
118 |
+
* Fixed fade animation hiding the single menu bug - Pro Only
|
119 |
+
|
120 |
= 3.1.6 (28th July 2017) =
|
121 |
* **Requires PHP 5.4**
|
122 |
* Added more translatable options to PolyLang and WPML
|
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.
|
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.7
|
8 |
Author: Peter Featherstone
|
9 |
Text Domain: responsive-menu
|
10 |
Author URI: https://peterfeatherstone.com
|
vendor/twig/twig/.gitignore
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
/build
|
2 |
-
/composer.lock
|
3 |
-
/ext/twig/autom4te.cache/
|
4 |
-
/phpunit.xml
|
5 |
-
/vendor
|
|
|
|
|
|
|
|
|
|
vendor/twig/twig/ext/twig/.gitignore
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
*.sw*
|
2 |
-
.deps
|
3 |
-
Makefile
|
4 |
-
Makefile.fragments
|
5 |
-
Makefile.global
|
6 |
-
Makefile.objects
|
7 |
-
acinclude.m4
|
8 |
-
aclocal.m4
|
9 |
-
build/
|
10 |
-
config.cache
|
11 |
-
config.guess
|
12 |
-
config.h
|
13 |
-
config.h.in
|
14 |
-
config.log
|
15 |
-
config.nice
|
16 |
-
config.status
|
17 |
-
config.sub
|
18 |
-
configure
|
19 |
-
configure.in
|
20 |
-
install-sh
|
21 |
-
libtool
|
22 |
-
ltmain.sh
|
23 |
-
missing
|
24 |
-
mkinstalldirs
|
25 |
-
run-tests.php
|
26 |
-
twig.loT
|
27 |
-
.libs/
|
28 |
-
modules/
|
29 |
-
twig.la
|
30 |
-
twig.lo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/banners.html.twig
CHANGED
@@ -7,6 +7,7 @@
|
|
7 |
<li><span class="glyphicon glyphicon-star"></span>Create a Desktop Menu and style</li>
|
8 |
<li><span class="glyphicon glyphicon-star"></span>Create a Header Bar and style</li>
|
9 |
<li><span class="glyphicon glyphicon-star"></span>Keyboard shortcuts</li>
|
|
|
10 |
<li><span class="glyphicon glyphicon-star"></span>Auto-show menu on page load</li>
|
11 |
<li><span class="glyphicon glyphicon-star"></span>Preview Changes</li>
|
12 |
<li>And much more</li>
|
7 |
<li><span class="glyphicon glyphicon-star"></span>Create a Desktop Menu and style</li>
|
8 |
<li><span class="glyphicon glyphicon-star"></span>Create a Header Bar and style</li>
|
9 |
<li><span class="glyphicon glyphicon-star"></span>Keyboard shortcuts</li>
|
10 |
+
<li><span class="glyphicon glyphicon-star"></span>Touch gestures</li>
|
11 |
<li><span class="glyphicon glyphicon-star"></span>Auto-show menu on page load</li>
|
12 |
<li><span class="glyphicon glyphicon-star"></span>Preview Changes</li>
|
13 |
<li>And much more</li>
|
views/admin/sections/menu.html.twig
CHANGED
@@ -154,6 +154,7 @@
|
|
154 |
{{ macros.row('menu_appear_from', 'Appear From', 'select', options, errors, '', '', 'side', '', 'This determines which side the menu slides in from.') }}
|
155 |
{{ macros.row('animation_type', 'Type', 'select', options, errors, '', 'semi-pro', 'animation') }}
|
156 |
{{ macros.row('page_wrapper', 'Push Wrapper', 'input', options, errors, '', '', 'animation', '', 'Only needed if you are using the push animation above.') }}
|
|
|
157 |
{{ macros.row('menu_close_on_body_click', 'Close on Body Clicks', 'checkbox', options, errors) }}
|
158 |
{{ macros.row('menu_close_on_link_click', 'Close on Link Clicks', 'checkbox', options, errors) }}
|
159 |
</table>
|
@@ -219,13 +220,14 @@
|
|
219 |
<div class='panel panel-default'>
|
220 |
<div class='panel-body'>Depth<small>Menu</small></div>
|
221 |
<table class='table table-bordered table-hover'>
|
222 |
-
{{ macros.row('menu_depth', 'Depth', 'select', options, errors, '', '', 'depth') }}
|
223 |
-
{{ macros.row('
|
224 |
-
{{ macros.row('
|
225 |
-
{{ macros.row('
|
226 |
-
{{ macros.row('
|
227 |
-
{{ macros.row('
|
228 |
-
{{ macros.row('
|
|
|
229 |
</table>
|
230 |
</div>
|
231 |
|
154 |
{{ macros.row('menu_appear_from', 'Appear From', 'select', options, errors, '', '', 'side', '', 'This determines which side the menu slides in from.') }}
|
155 |
{{ macros.row('animation_type', 'Type', 'select', options, errors, '', 'semi-pro', 'animation') }}
|
156 |
{{ macros.row('page_wrapper', 'Push Wrapper', 'input', options, errors, '', '', 'animation', '', 'Only needed if you are using the push animation above.') }}
|
157 |
+
{{ macros.row('enable_touch_gestures', 'Enable Touch Gestures', 'checkbox', options, errors, '', 'pro', '', '', 'This will enable swiping in and out to open and close the menu.') }}
|
158 |
{{ macros.row('menu_close_on_body_click', 'Close on Body Clicks', 'checkbox', options, errors) }}
|
159 |
{{ macros.row('menu_close_on_link_click', 'Close on Link Clicks', 'checkbox', options, errors) }}
|
160 |
</table>
|
220 |
<div class='panel panel-default'>
|
221 |
<div class='panel-body'>Depth<small>Menu</small></div>
|
222 |
<table class='table table-bordered table-hover'>
|
223 |
+
{{ macros.row('menu_depth', 'Depth', 'select', options, errors, '', '', 'depth', '', 'This determines how many levels deep your sub-menus will go.') }}
|
224 |
+
{{ macros.row('menu_depth_side', 'Depth Padding Side', 'select', options, errors, '', '', 'left_right') }}
|
225 |
+
{{ macros.row('menu_depth_0', 'Depth Level Zero Padding', 'input', options, errors, 'has-unit', 'semi-pro', '', 'percentage') }}
|
226 |
+
{{ macros.row('menu_depth_1', 'Depth Level One Padding', 'input', options, errors, 'has-unit', 'semi-pro', '', 'percentage') }}
|
227 |
+
{{ macros.row('menu_depth_2', 'Depth Level Two Padding', 'input', options, errors, 'has-unit', 'semi-pro', '', 'percentage') }}
|
228 |
+
{{ macros.row('menu_depth_3', 'Depth Level Three Padding', 'input', options, errors, 'has-unit', 'semi-pro', '', 'percentage') }}
|
229 |
+
{{ macros.row('menu_depth_4', 'Depth Level Four Padding', 'input', options, errors, 'has-unit', 'semi-pro', '', 'percentage') }}
|
230 |
+
{{ macros.row('menu_depth_5', 'Depth Level Five Padding', 'input', options, errors, 'has-unit', 'semi-pro', '', 'percentage') }}
|
231 |
</table>
|
232 |
</div>
|
233 |
|
views/admin/tabs.html.twig
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<ul class='nav nav-tabs'>
|
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'>
|
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>
|
1 |
<ul class='nav nav-tabs'>
|
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'>62</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>
|