Responsive Menu - Version 3.0.11

Version Description

(29th August 2016) = ** Requires PHP 5.4** * Fixed export options bug (Pro only) * Fixed shortcode attributes bug

Download this release

Release Info

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

Code changes from version 3.0.10 to 3.0.11

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, mobile, tablet, 3 lines, 3 line, three line, three lines
5
  Requires at least: 3.5.0
6
  Tested up to: 4.6
7
- Stable tag: 3.0.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -146,6 +146,11 @@ To view our whole FAQ, please go to https://responsive.menu/faq/
146
 
147
  == Changelog ==
148
 
 
 
 
 
 
149
  = 3.0.10 (27th August 2016) =
150
  * **Requires PHP 5.4**
151
  * Improved RTL support
4
  Tags: responsive, menu, responsive menu, mobile menu, wordpress responsive menu, wp responsive menu, tablet menu, mobile, tablet, 3 lines, 3 line, three line, three lines
5
  Requires at least: 3.5.0
6
  Tested up to: 4.6
7
+ Stable tag: 3.0.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
146
 
147
  == Changelog ==
148
 
149
+ = 3.0.11 (29th August 2016) =
150
+ ** Requires PHP 5.4**
151
+ * Fixed export options bug (Pro only)
152
+ * Fixed shortcode attributes bug
153
+
154
  = 3.0.10 (27th August 2016) =
155
  * **Requires PHP 5.4**
156
  * Improved RTL support
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.0.10
8
  Author: Responsive Menu
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://responsive.menu
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
+ Version: 3.0.11
8
  Author: Responsive Menu
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
src/app/Controllers/Front.php CHANGED
@@ -22,14 +22,11 @@ class Front {
22
 
23
  $this->view->echoOrIncludeScripts($options);
24
 
25
- $menu = $this->menu->getHtml($options);
26
- $button = $this->button->getHtml($options);
27
-
28
  if($options['shortcode'] == 'off'):
29
- $this->view->render('button', ['options' => $options, 'button' => $button]);
30
- return $this->view->render('menu', ['options' => $options, 'menu' => $menu]);
31
  else:
32
- return $this->view->addShortcode($options, $button, $menu);
33
  endif;
34
 
35
  }
22
 
23
  $this->view->echoOrIncludeScripts($options);
24
 
 
 
 
25
  if($options['shortcode'] == 'off'):
26
+ $this->view->render('button', ['options' => $options, 'button' => $this->button->getHtml($options)]);
27
+ return $this->view->render('menu', ['options' => $options, 'menu' => $this->menu->getHtml($options)]);
28
  else:
29
+ return $this->view->addShortcode($options, $this->button, $this->menu);
30
  endif;
31
 
32
  }
src/app/View/FrontView.php CHANGED
@@ -5,6 +5,8 @@ namespace ResponsiveMenu\View;
5
  use ResponsiveMenu\Factories\CssFactory;
6
  use ResponsiveMenu\Factories\JsFactory;
7
  use ResponsiveMenu\Collections\OptionsCollection;
 
 
8
 
9
  class FrontView implements View {
10
 
@@ -55,15 +57,15 @@ class FrontView implements View {
55
  endif;
56
  }
57
 
58
- public function addShortcode($options, $button, $menu) {
59
  add_shortcode('responsive_menu', function($atts) use($options, $button, $menu) {
60
 
61
  if($atts)
62
- array_walk($atts, function($a, $b) use ($options) { $options[$b] = $a; });
63
 
64
- $html = $this->make('button', ['options' => $options, 'button' => $button]);
65
 
66
- return $html . $this->make('menu', ['options' => $options, 'menu' => $menu]);
67
 
68
  });
69
  }
5
  use ResponsiveMenu\Factories\CssFactory;
6
  use ResponsiveMenu\Factories\JsFactory;
7
  use ResponsiveMenu\Collections\OptionsCollection;
8
+ use ResponsiveMenu\ViewModels\Menu;
9
+ use ResponsiveMenu\ViewModels\Button;
10
 
11
  class FrontView implements View {
12
 
57
  endif;
58
  }
59
 
60
+ public function addShortcode($options, Button $button, Menu $menu) {
61
  add_shortcode('responsive_menu', function($atts) use($options, $button, $menu) {
62
 
63
  if($atts)
64
+ array_walk($atts, function($a, $b) use ($options) { $options[$b]->setValue($a); });
65
 
66
+ $html = $this->make('button', ['options' => $options, 'button' => $button->getHtml($options)]);
67
 
68
+ return $html . $this->make('menu', ['options' => $options, 'menu' => $menu->getHtml($options)]);
69
 
70
  });
71
  }
src/config/routing.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  if(is_admin()):
4
  add_action('admin_menu', function() use($container) {
 
5
  if(isset($_POST['responsive_menu_submit'])):
6
  $method = 'update';
7
  elseif(isset($_POST['responsive_menu_reset'])):
2
 
3
  if(is_admin()):
4
  add_action('admin_menu', function() use($container) {
5
+
6
  if(isset($_POST['responsive_menu_submit'])):
7
  $method = 'update';
8
  elseif(isset($_POST['responsive_menu_reset'])):
src/config/services.php CHANGED
@@ -3,7 +3,7 @@
3
  $container = new ResponsiveMenu\Routing\Container();
4
 
5
  $container['current_version'] = function($c) {
6
- return '3.0.10';
7
  };
8
 
9
  $container['option_helpers'] = function($c) {
3
  $container = new ResponsiveMenu\Routing\Container();
4
 
5
  $container['current_version'] = function($c) {
6
+ return '3.0.11';
7
  };
8
 
9
  $container['option_helpers'] = function($c) {