Responsive Menu - Version 3.1.21

Version Description

(19th May 2019) = * Added Exclude Pages option.

Download this release

Release Info

Developer ResponsiveMenu
Plugin Icon 128x128 Responsive Menu
Version 3.1.21
Comparing to
See all releases

Code changes from version 3.1.20 to 3.1.21

config/default_options.php CHANGED
@@ -257,6 +257,7 @@ function get_responsive_menu_default_options() {
257
  'mobile_only' => 'off',
258
  'hide_on_mobile' => 'off',
259
  'hide_on_desktop' => 'off',
 
260
  'custom_walker' => null,
261
  'custom_css' => null,
262
 
257
  'mobile_only' => 'off',
258
  'hide_on_mobile' => 'off',
259
  'hide_on_desktop' => 'off',
260
+ 'excluded_pages' => null,
261
  'custom_walker' => null,
262
  'custom_css' => null,
263
 
config/twig.php CHANGED
@@ -69,6 +69,10 @@ else:
69
  return wp_get_nav_menu_items($menu);
70
  }));
71
 
 
 
 
 
72
  $twig->addFunction(new Twig_SimpleFunction('font_icons', function($array) {
73
  $new_array = [];
74
  for($i=0; $i < count($array['id']); $i++):
69
  return wp_get_nav_menu_items($menu);
70
  }));
71
 
72
+ $twig->addFunction(new Twig_SimpleFunction('all_pages', function() {
73
+ return get_pages();
74
+ }));
75
+
76
  $twig->addFunction(new Twig_SimpleFunction('font_icons', function($array) {
77
  $new_array = [];
78
  for($i=0; $i < count($array['id']); $i++):
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: 5.2
6
- Stable tag: 3.1.20
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,9 @@ To view our FAQ, please go to [https://responsive.menu/faq/](https://responsive.
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 3.1.20 (16th May 2019) =
115
  * Update tested up to flag for WordPress 5.2
116
  * Minor bug fixes.
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: 5.2
6
+ Stable tag: 3.1.21
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.21 (19th May 2019) =
115
+ * Added Exclude Pages option.
116
+
117
  = 3.1.20 (16th May 2019) =
118
  * Update tested up to flag for WordPress 5.2
119
  * Minor bug fixes.
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.20
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.21
8
  Author: Peter Featherstone
9
  Text Domain: responsive-menu
10
  Author URI: https://peterfeatherstone.com
views/admin/sections/advanced.html.twig CHANGED
@@ -7,6 +7,13 @@
7
 
8
  {% set section = 'Advanced' %}
9
 
 
 
 
 
 
 
 
10
  <div class='panel panel-default'>
11
  {{ macros.header('Animation Speeds', section) }}
12
  <table class='table table-bordered table-hover'>
7
 
8
  {% set section = 'Advanced' %}
9
 
10
+ <div class='panel panel-default'>
11
+ {{ macros.header('Excluded Pages', section) }}
12
+ <table class='table table-bordered table-hover'>
13
+ {% include 'admin/sections/modules/excluded-pages.html.twig' %}
14
+ </table>
15
+ </div>
16
+
17
  <div class='panel panel-default'>
18
  {{ macros.header('Animation Speeds', section) }}
19
  <table class='table table-bordered table-hover'>
views/admin/sections/modules/excluded-pages.html.twig ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <tr class='pro-row'>
2
+ <td class='col-left col-md-3'>
3
+ <label for='items_order' class='control-label'>Excluded Pages</label>
4
+ <div class='sub-text'>
5
+ Select one or more pages that will be excluded from displaying the plugin.
6
+ </div>
7
+ </td>
8
+ <td class='col-right pro'>
9
+ <div class="responsive-menu-pro-overlay">
10
+ <a href="https://responsive.menu/pricing?utm_source=free-plugin&utm_medium=option&utm_campaign=free-plugin-option-upgrade"
11
+ target="_blank">Click to upgrade now to use</a>
12
+ </div>
13
+ {% set excluded_pages = options.excluded_pages|json_decode %}
14
+ <select class='selectpicker show-tick' name='menu[excluded_pages][]' multiple>
15
+ {% for page in all_pages() %}
16
+ <option value='{{ page.ID }}' {% if page.ID in excluded_pages %}selected='selected'{% endif %}>{{ page.post_title }}</option>
17
+ {% endfor %}
18
+ </select>
19
+ </td>
20
+ </tr>