WP Responsive Menu - Version 2.0.2

Version Description

Download this release

Release Info

Developer sagarseth9
Plugin Icon 128x128 WP Responsive Menu
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

Files changed (4) hide show
  1. css/wprmenu.css +6 -0
  2. js/wprmenu.js +1 -1
  3. readme.txt +9 -2
  4. wp-responsive-menu.php +1 -1
css/wprmenu.css CHANGED
@@ -166,6 +166,7 @@ body { position: relative!important; }
166
  width:100%;
167
  display: none;
168
  position: relative;
 
169
  }
170
  #wprmenu_menu.left, #wprmenu_menu.right {
171
  display: none;
@@ -178,21 +179,26 @@ body { position: relative!important; }
178
  overflow-y: auto;
179
  background: #2E2E2E;
180
  top: 42px;
 
181
  }
182
  body.admin-bar #wprmenu_bar {
183
  top:32px;
 
184
  }
185
  body.admin-bar #wprmenu_menu.left,
186
  body.admin-bar #wprmenu_menu.right {
187
  top: 74px;
 
188
  }
189
  @media only screen and (max-width: 782px) {
190
  body.admin-bar #wprmenu_menu.left,
191
  body.admin-bar #wprmenu_menu.right {
192
  top: 86px;
 
193
  }
194
  body.admin-bar #wprmenu_bar {
195
  top:46px;
 
196
  }
197
  }
198
  /*1st level*/
166
  width:100%;
167
  display: none;
168
  position: relative;
169
+ z-index: 9999;
170
  }
171
  #wprmenu_menu.left, #wprmenu_menu.right {
172
  display: none;
179
  overflow-y: auto;
180
  background: #2E2E2E;
181
  top: 42px;
182
+ padding-bottom: 43px;
183
  }
184
  body.admin-bar #wprmenu_bar {
185
  top:32px;
186
+ padding-bottom: 33px;
187
  }
188
  body.admin-bar #wprmenu_menu.left,
189
  body.admin-bar #wprmenu_menu.right {
190
  top: 74px;
191
+ padding-bottom: 75px;
192
  }
193
  @media only screen and (max-width: 782px) {
194
  body.admin-bar #wprmenu_menu.left,
195
  body.admin-bar #wprmenu_menu.right {
196
  top: 86px;
197
+ padding-bottom: 87px;
198
  }
199
  body.admin-bar #wprmenu_bar {
200
  top:46px;
201
+ padding-bottom: 47px;
202
  }
203
  }
204
  /*1st level*/
js/wprmenu.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(n){function e(){n(".wprmenu_parent_item_li").each(function(){var e=n(this),i=0,t=(e.find(".wprmenu_icon_par").first(),e.find("a.wprmenu_parent_item").first());i=s.hasClass("top")?window.innerWidth:a.innerWidth(),0==e.find(".wprmenu_clear").length&&t.after('<br class="wprmenu_clear"/>')})}function i(){s.find("ul.sub-menu").each(function(){var e=n(this),i=e.parent("li").find(".wprmenu_icon_par"),t=e.parent("li");e.is(":visible")&&e.slideUp(300),i.removeClass("wprmenu_par_opened"),t.removeClass("wprmenu_no_border_bottom")})}function t(){window.scrollBy(1,1),window.scrollBy(-1,-1),m=s.width(),s.is(":visible")&&s.hasClass("left")&&(l.css({left:m}),l.scrollLeft(0))}var r=n("#wprmenu_bar"),o=(r.outerHeight(!0),wprmenu.from_width),s=n("#wprmenu_menu"),a=n("#wprmenu_menu_ul"),d=s.find("a"),l=n("body"),u=(n("html"),300),w=(n("#wpadminbar"),r.length>0&&s.length>0?!0:!1),m=s.width(),p=(window.innerHeight<l.height()?l.height():window.innerHeight,window.innerWidth<l.width()?l.width():window.innerWidth);if(w){a.find("li").first().css({"border-top":"none"}),n(document).mouseup(function(e){s.is(e.target)||0!==s.has(e.target).length||s.is(":visible")&&n.sidr("close","wprmenu_menu")}),s.find("ul.sub-menu").each(function(){var e=n(this),i=e.prev("a"),t=i.parent("li").first();i.addClass("wprmenu_parent_item"),t.addClass("wprmenu_parent_item_li");i.before('<span class="wprmenu_icon wprmenu_icon_par icon_default"></span> ').find(".wprmenu_icon_par");e.hide()}),e(),n(".wprmenu_icon_par").on("click",function(){var e=n(this),i=e.parent("li").find("ul.sub-menu").first();i.slideToggle(300),e.toggleClass("wprmenu_par_opened"),e.parent("li").first().toggleClass("wprmenu_no_border_bottom")});var c=n("meta[name=viewport]");if(c=c.length?c:n('<meta name="viewport" />').appendTo("head"),"no"==wprmenu.zooming?c.attr("content","user-scalable=no, width=device-width, maximum-scale=1, minimum-scale=1"):c.attr("content","user-scalable=yes, width=device-width, initial-scale=1.0, minimum-scale=1"),n.browser.mozilla?screen.addEventListener("orientationchange",function(){t()}):window.addEventListener("orientationchange",t,!1),s.hasClass("left")||s.hasClass("right")){var h=s.hasClass("left")?"left":"right";r.sidr({name:"wprmenu_menu",side:h,speed:u,onOpen:function(){r.addClass("menu_is_opened")},onClose:function(){r.removeClass("menu_is_opened"),i()}}),d.on("click",function(){n.sidr("close","wprmenu_menu")}),"no"!=wprmenu.swipe&&n("body").touchwipe({wipeLeft:function(){n.sidr("close","wprmenu_menu")},wipeRight:function(){n.sidr("open","wprmenu_menu")},min_move_x:60,min_move_y:60,preventDefaultEvents:!1}),n(window).resize(function(){p=window.innerWidth<l.width()?l.width():window.innerWidth,p>o&&s.is(":visible")&&n.sidr("close","wprmenu_menu")})}else s.hasClass("top")&&(l.prepend(s),r.on("click",function(){n("html, body").animate({scrollTop:0},u),i(),s.stop(!0,!1).slideToggle(u)}),d.on("click",function(e){e.preventDefault();var i=n(this).attr("href");s.slideUp(u,function(){window.location.href=i})}),n(window).resize(function(){p=window.innerWidth<l.width()?l.width():window.innerWidth,p>o&&s.is(":visible")&&(i(),s.slideUp(u,function(){}))}))}});
1
+ jQuery(document).ready(function(e){var t=e("#wprmenu_bar"),n=t.outerHeight(true),r=wprmenu.from_width,i=e("#wprmenu_menu"),s=e("#wprmenu_menu_ul"),o=i.find("a"),u=e("body"),a=e("html"),f=300,l=e("#wpadminbar"),c=t.length>0&&i.length>0?true:false,h=i.width(),p=window.innerHeight<u.height()?u.height():window.innerHeight,d=window.innerWidth<u.width()?u.width():window.innerWidth;if(c){s.find("li").first().css({"border-top":"none"});e(document).mouseup(function(t){if(!i.is(t.target)&&i.has(t.target).length===0){if(i.is(":visible")&&!i.hasClass("top")){e.sidr("close","wprmenu_menu")}}});i.find("ul.sub-menu").each(function(){var t=e(this),n=t.prev("a"),r=n.parent("li").first();n.addClass("wprmenu_parent_item");r.addClass("wprmenu_parent_item_li");var i=n.before('<span class="wprmenu_icon wprmenu_icon_par '+wprmenu.submenu_open_icon+'"></span> ').find(".wprmenu_icon_par");t.hide()});function v(){e(".wprmenu_parent_item_li").each(function(){var t=e(this),n=0,r=t.find(".wprmenu_icon_par").first(),o=t.find("a.wprmenu_parent_item").first();if(i.hasClass("top")){n=window.innerWidth}else{n=s.innerWidth()}if(t.find(".wprmenu_clear").length==0)o.after('<br class="wprmenu_clear"/>')})}v();e(".wprmenu_icon_par").on("click",function(){var t=e(this),n=t.parent("li").find("ul.sub-menu").first();n.slideToggle(300);t.toggleClass(wprmenu.submenu_open_icon).toggleClass(wprmenu.submenu_close_icon);t.parent("li").first().toggleClass("wprmenu_no_border_bottom")});function m(){i.find("ul.sub-menu").each(function(){var t=e(this),n=t.parent("li").find(".wprmenu_icon_par"),r=t.parent("li");if(t.is(":visible"))t.slideUp(300);n.removeClass(wprmenu.submenu_close_icon).addClass(wprmenu.submenu_open_icon);r.removeClass("wprmenu_no_border_bottom")})}var g=e("meta[name=viewport]");g=g.length?g:e('<meta name="viewport" />').appendTo("head");if(wprmenu.zooming=="no"){g.attr("content","user-scalable=no, width=device-width, maximum-scale=1, minimum-scale=1")}else{g.attr("content","user-scalable=yes, width=device-width, initial-scale=1.0, minimum-scale=1")}if(e.browser.mozilla){screen.addEventListener("orientationchange",function(){y()})}else{window.addEventListener("orientationchange",y,false)}function y(){window.scrollBy(1,1);window.scrollBy(-1,-1);h=i.width();if(i.is(":visible")&&i.hasClass("left")){u.css({left:h});u.scrollLeft(0)}}if(i.hasClass("left")||i.hasClass("right")){var b=i.hasClass("left")?"left":"right";t.sidr({name:"wprmenu_menu",side:b,speed:f,onOpen:function(){e(".wpr_open").hide();e(".wpr_close").show()},onClose:function(){e(".wpr_open").show();e(".wpr_close").hide();m()}});o.on("click",function(t){e.sidr("close","wprmenu_menu")});if(wprmenu.swipe!="no"){e("body").touchwipe({wipeLeft:function(){e.sidr("close","wprmenu_menu")},wipeRight:function(){e.sidr("open","wprmenu_menu")},min_move_x:60,min_move_y:60,preventDefaultEvents:false})}e(window).resize(function(){d=window.innerWidth<u.width()?u.width():window.innerWidth;if(d>r&&i.is(":visible")){e.sidr("close","wprmenu_menu")}})}else if(i.hasClass("top")){u.prepend(i);t.on("click",function(t){e("html, body").animate({scrollTop:0},f);m();i.stop(true,false).slideToggle(f)});o.on("click",function(t){t.preventDefault();var n=e(this).attr("href");i.slideUp(f,function(){window.location.href=n})});e(window).resize(function(){d=window.innerWidth<u.width()?u.width():window.innerWidth;if(d>r&&i.is(":visible")){m();i.slideUp(f,function(){})}})}}})
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sagarseth9,magnigenie
3
  Tags: Wordpress Responsive Menu, Genesis responsive menu, Genesis Mobile Menu, Thesis Mobile Menu, Thesis Responsive Menu, Mobile Menu, Responsive Menu Plugin, WP Responsive Menu, Wordpress mobile menu
4
  Requires at least: 3.4
5
  Tested up to: 3.9.2
6
- Stable tag: 2.0.1
7
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sagar.seth9@gmail.com&item_name=WP%20Responsive%20Menu&return=http://magnigenie.com
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -55,6 +55,13 @@ Check out [the demo](http://magnigenie.com/wp-responsive-menu-mobile-menu-plugin
55
 
56
  == ChangeLog ==
57
 
 
 
 
 
 
 
 
58
  = Version 2.0.1 =
59
 
60
  * Fixed plugin conflict with the themes already using options framework for their theme configuration.
@@ -72,6 +79,6 @@ Check out [the demo](http://magnigenie.com/wp-responsive-menu-mobile-menu-plugin
72
 
73
  == Upgrade Notice ==
74
 
75
- = Version 2.0.1 =
76
 
77
  * As I have updated the plugin options panel so there might be few settings problems. If you are having any such problem try to check the plugin settings and configure it accordingly.
3
  Tags: Wordpress Responsive Menu, Genesis responsive menu, Genesis Mobile Menu, Thesis Mobile Menu, Thesis Responsive Menu, Mobile Menu, Responsive Menu Plugin, WP Responsive Menu, Wordpress mobile menu
4
  Requires at least: 3.4
5
  Tested up to: 3.9.2
6
+ Stable tag: 2.0.2
7
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sagar.seth9@gmail.com&item_name=WP%20Responsive%20Menu&return=http://magnigenie.com
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
55
 
56
  == ChangeLog ==
57
 
58
+
59
+ = Version 2.0.2 =
60
+
61
+ * Fixed jquery sidr issue for the top menu.
62
+ * Fixed menu scroll issue when there is more items inside menu.
63
+ * Fixed top menu z-index issue.
64
+
65
  = Version 2.0.1 =
66
 
67
  * Fixed plugin conflict with the themes already using options framework for their theme configuration.
79
 
80
  == Upgrade Notice ==
81
 
82
+ = Version 2.0.2 =
83
 
84
  * As I have updated the plugin options panel so there might be few settings problems. If you are having any such problem try to check the plugin settings and configure it accordingly.
wp-responsive-menu.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Responsive Menu
4
  Plugin URI: http://magnigenie.com/wp-responsive-menu-mobile-menu-plugin-wordpress/
5
  Description: WP Responsive menu is a mobile menu plugin which comes with 1 click installation and has lots of admin option to customize the plugin as per your needs.
6
- Version: 2.0.1
7
  Author: Nirmal Ram
8
  Author URI: http://magnigenie.com
9
  License: GPLv2 or later
3
  Plugin Name: WP Responsive Menu
4
  Plugin URI: http://magnigenie.com/wp-responsive-menu-mobile-menu-plugin-wordpress/
5
  Description: WP Responsive menu is a mobile menu plugin which comes with 1 click installation and has lots of admin option to customize the plugin as per your needs.
6
+ Version: 2.0.2
7
  Author: Nirmal Ram
8
  Author URI: http://magnigenie.com
9
  License: GPLv2 or later