Responsive Menu - Version 3.0.1

Version Description

(7th July 2016) = * Requires PHP 5.4 * Initial Bug Fixes * Catch non-updated option errors * Those using under PHP 5.4 will not crash their site but deactivate * License Key Checking Fixed (Pro)

Download this release

Release Info

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

Code changes from version 3.0.0 to 3.0.1

readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ResponsiveMenu
3
  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
4
  Requires at least: 3.5.0
5
  Tested up to: 4.5.3
6
- Stable tag: 3.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -145,6 +145,13 @@ To view our whole FAQ, please go to https://responsive.menu/faq/
145
 
146
  == Changelog ==
147
 
 
 
 
 
 
 
 
148
  = 3.0.0 (5th July 2016) =
149
  * **Requires PHP 5.4** - Please ensure you have it installed to work
150
  * Version 3 released!
@@ -368,3 +375,4 @@ To view our whole FAQ, please go to https://responsive.menu/faq/
368
  * Initial Version Released.
369
 
370
  == Upgrade Notice ==
 
3
  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
4
  Requires at least: 3.5.0
5
  Tested up to: 4.5.3
6
+ Stable tag: 3.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
145
 
146
  == Changelog ==
147
 
148
+ = 3.0.1 (7th July 2016) =
149
+ * **Requires PHP 5.4**
150
+ * Initial Bug Fixes
151
+ * Catch non-updated option errors
152
+ * Those using under PHP 5.4 will not crash their site but deactivate
153
+ * License Key Checking Fixed (Pro)
154
+
155
  = 3.0.0 (5th July 2016) =
156
  * **Requires PHP 5.4** - Please ensure you have it installed to work
157
  * Version 3 released!
375
  * Initial Version Released.
376
 
377
  == Upgrade Notice ==
378
+ Requires PHP 5.4 to function - please check before upgrading
responsive-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Responsive Menu
5
  Plugin URI: http://responsive.menu
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
- Version: 3.0.0
8
  Author: Responsive Menu
9
  Text Domain: responsive-menu
10
  Author URI: http://responsive.menu
@@ -12,14 +12,14 @@ License: GPL2
12
  Tags: responsive, menu, responsive menu
13
  */
14
 
15
- /* Check correct PHP version first */
16
  register_activation_hook(__FILE__, 'activate_responsive_menu');
17
- function activate_responsive_menu() {
18
- if(version_compare(PHP_VERSION, '5.4', '<')):
19
  deactivate_plugins(plugin_basename(__FILE__ ));
20
- wp_die(sprintf('Responsive Menu requires PHP 5.4 or higher. You are still on %s', PHP_VERSION));
21
- endif;
22
- }
23
 
24
  /* Required includes for plugin to function */
25
  include dirname(__FILE__) . '/autoload.php';
4
  Plugin Name: Responsive Menu
5
  Plugin URI: http://responsive.menu
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
+ Version: 3.0.1
8
  Author: Responsive Menu
9
  Text Domain: responsive-menu
10
  Author URI: http://responsive.menu
12
  Tags: responsive, menu, responsive menu
13
  */
14
 
15
+ /* Check correct PHP version first */
16
  register_activation_hook(__FILE__, 'activate_responsive_menu');
17
+ function activate_responsive_menu() {
18
+ if(version_compare(PHP_VERSION, '5,4', '<')):
19
  deactivate_plugins(plugin_basename(__FILE__ ));
20
+ wp_die(sprintf('Responsive Menu requires PHP 5.4 or higher. You are still on %s', PHP_VERSION));
21
+ endif;
22
+ }
23
 
24
  /* Required includes for plugin to function */
25
  include dirname(__FILE__) . '/autoload.php';
src/app/Mappers/scssphp/scss.inc.php CHANGED
@@ -134,6 +134,7 @@ class scssc {
134
 
135
  return $out;
136
  } catch(Exception $e) {}
 
137
  }
138
 
139
  protected function isSelfExtend($target, $origin) {
134
 
135
  return $out;
136
  } catch(Exception $e) {}
137
+
138
  }
139
 
140
  protected function isSelfExtend($target, $origin) {
src/app/View/AdminView.php CHANGED
@@ -27,8 +27,6 @@ class AdminView implements View
27
  wp_register_script('admin-js', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/js/admin/main.js', 'jquery', null );
28
  wp_enqueue_script('admin-js' );
29
 
30
- wp_register_script('sticky-sidebar-js', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/js/admin/sticky-sidebar.js', 'jquery', null );
31
- wp_enqueue_script('sticky-sidebar-js');
32
  endif;
33
  }
34
 
27
  wp_register_script('admin-js', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/js/admin/main.js', 'jquery', null );
28
  wp_enqueue_script('admin-js' );
29
 
 
 
30
  endif;
31
  }
32
 
src/public/css/admin/main.css CHANGED
@@ -305,9 +305,10 @@ input[type="text"].image,
305
  font-weight: bold;
306
  font-size: 13px;
307
  color: #333;
308
- display: inline-block;
309
  margin: auto;
310
  width: auto;
 
311
  }
312
 
313
  #docs_banner .button {
305
  font-weight: bold;
306
  font-size: 13px;
307
  color: #333;
308
+ display: block;
309
  margin: auto;
310
  width: auto;
311
+ text-align: center;
312
  }
313
 
314
  #docs_banner .button {
src/public/js/admin/main.js CHANGED
@@ -1,9 +1,7 @@
1
  jQuery(function($) {
2
 
3
  $('.wp-color-picker').wpColorPicker();
4
-
5
- $('#banner_area').stick_in_parent();
6
-
7
  var custom_uploader;
8
 
9
  $('.image_button').click(function (e) {
1
  jQuery(function($) {
2
 
3
  $('.wp-color-picker').wpColorPicker();
4
+
 
 
5
  var custom_uploader;
6
 
7
  $('.image_button').click(function (e) {
src/public/js/admin/sticky-sidebar.js DELETED
@@ -1,9 +0,0 @@
1
- /*
2
- Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net
3
- */
4
- (function(){var b,f;b=this.jQuery||window.jQuery;f=b(window);b.fn.stick_in_parent=function(d){var A,w,J,n,B,K,p,q,k,E,t;null==d&&(d={});t=d.sticky_class;B=d.inner_scrolling;E=d.recalc_every;k=d.parent;q=d.offset_top;p=d.spacer;w=d.bottoming;null==q&&(q=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=b(document);null==w&&(w=!0);J=function(a,d,n,C,F,u,r,G){var v,H,m,D,I,c,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k));
5
- if(!g.length)throw"failed to find stick parent";v=m=!1;(h=null!=p?p&&a.closest(p):b("<div />"))&&h.css("position",a.css("position"));x=function(){var c,f,e;if(!G&&(I=A.height(),c=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),d=parseInt(g.css("padding-bottom"),10),n=g.offset().top+c+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-q,
6
- u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:a.outerWidth(!0),height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,c=q,z=E,l=function(){var b,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+c>C+n,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:c}).trigger("sticky_kit:unbottom"))),e<F&&(m=!1,c=q,null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),
7
- h.detach()),b={position:"",width:"",top:""},a.css(b).removeClass(t).trigger("sticky_kit:unstick")),B&&(b=f.height(),u+q>b&&!v&&(c-=l,c=Math.max(b-u,c),c=Math.min(q,c),m&&a.css({top:c+"px"})))):e>F&&(m=!0,b={position:"fixed",top:c},b.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(b).addClass(t),null==p&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+c>C+n),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}),
8
- a.css({position:"absolute",bottom:d,top:"auto"}).trigger("sticky_kit:bottom")},y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);b(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize",
9
- y),b(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,0)}};n=0;for(K=this.length;n<K;n++)d=this[n],J(b(d));return this}}).call(this);
 
 
 
 
 
 
 
 
 
src/views/admin/main.phtml CHANGED
@@ -79,7 +79,7 @@ $boxes = new ResponsiveMenu\ViewModels\Components\Admin\Boxes($order_mapping, $l
79
  <li><?php _e('Header Bar', 'responsive-menu'); ?></li>
80
  <li><?php _e('And much more', 'responsive-menu'); ?></li>
81
  </ul>
82
- <a target="_blank" href="http://responsive.menu/why-go-pro" class="button"><?php _e('Buy today for just $14.99', 'responsive-menu'); ?></a>
83
  </div>
84
  <div id="docs_banner">
85
  <?php _e('Confused? Check out our documentation', 'responsive-menu'); ?>
79
  <li><?php _e('Header Bar', 'responsive-menu'); ?></li>
80
  <li><?php _e('And much more', 'responsive-menu'); ?></li>
81
  </ul>
82
+ <a target="_blank" href="http://responsive.menu/why-go-pro" class="button"><?php _e('Upgrade Now', 'responsive-menu'); ?></a>
83
  </div>
84
  <div id="docs_banner">
85
  <?php _e('Confused? Check out our documentation', 'responsive-menu'); ?>