ShiftNav – Responsive Mobile Menu - Version 1.6.1

Version Description

  • [Pro] Feature: Setting to choose the open and close icons for accordion menus
  • Enhancement: Add body padding-top via a CSS style tag rather than directly applying styling to the body node, to improve compatibility with other themes/plugins controlling the body tag
Download this release

Release Info

Developer sevenspark
Plugin Icon 128x128 ShiftNav – Responsive Mobile Menu
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6 to 1.6.1

admin/settings.config.php CHANGED
@@ -851,7 +851,7 @@ function shiftnav_settings_panel() {
851
  <?php do_action( 'shiftnav_settings_before_title' ); ?>
852
  </div>
853
 
854
- <h1>ShiftNav <?php if( SHIFTNAV_PRO ) echo 'Pro <i class="fa fa-rocket"></i> <span class="shiftnav-version">v'.SHIFTNAV_VERSION.'</span>'; ?></h1>
855
 
856
  <?php
857
 
851
  <?php do_action( 'shiftnav_settings_before_title' ); ?>
852
  </div>
853
 
854
+ <h1>ShiftNav <?php if( SHIFTNAV_PRO ) echo 'Pro <i class="fa fa-rocket"></i>'; ?> <span class="shiftnav-version">v<?php echo SHIFTNAV_VERSION; ?></span> </h1>
855
 
856
  <?php
857
 
assets/js/shiftnav.js CHANGED
@@ -176,7 +176,20 @@ var shift_supports = (function() {
176
  var toggleHeight = $main_toggle.outerHeight();
177
  $wrap.css( 'padding-top' , toggleHeight );
178
  $main_toggle.addClass( 'shiftnav-togglebar-gap-on' );
179
- if( shiftnav_data.shift_body == 'off' ) $body.css( 'padding-top' , toggleHeight );
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  }
181
  else if( $( 'body' ).hasClass( 'admin-bar' ) ) $( 'html' ).addClass( 'shiftnav-nogap' );
182
 
176
  var toggleHeight = $main_toggle.outerHeight();
177
  $wrap.css( 'padding-top' , toggleHeight );
178
  $main_toggle.addClass( 'shiftnav-togglebar-gap-on' );
179
+
180
+ if( shiftnav_data.shift_body == 'off' ){
181
+ //$body.css( 'padding-top' , toggleHeight );
182
+ // var css = document.createElement("style");
183
+ // css.type = "text/css";
184
+ var style = '@media screen and (max-width:'+(shiftnav_data.breakpoint-1)+'px){ body.shiftnav-disable-shift-body{ padding-top:'+ toggleHeight + 'px; } }';
185
+ var sheet = document.getElementById( 'shiftnav-dynamic-css' ).sheet;
186
+ if( "insertRule" in sheet ){
187
+ sheet.insertRule( style , 0 );
188
+ }
189
+ // else{
190
+ // $body.css( 'padding-top' , toggleHeight ); //would need to pair with an extra class and padding-top:0 in PHP generated CSS
191
+ // }
192
+ }
193
  }
194
  else if( $( 'body' ).hasClass( 'admin-bar' ) ) $( 'html' ).addClass( 'shiftnav-nogap' );
195
 
assets/js/shiftnav.min.js CHANGED
@@ -1,27 +1,27 @@
1
- 'use strict';(function(b,f){var g=function(b,f,g){var a;return function(){var d=this,c=arguments;a?clearTimeout(a):g&&b.apply(d,c);a=setTimeout(function(){g||b.apply(d,c);a=null},f||100)}};jQuery.fn[f]=function(b){return b?this.bind("resize",g(b)):this.trigger(f)}})(jQuery,"shiftsmartresize");
2
- var shift_supports=function(){var b=document.createElement("div"),f=["Khtml","Ms","O","Moz","Webkit"];return function(g){var e=f.length;if(g in b.style)return!0;for(g=g.replace(/^[a-z]/,function(b){return b.toUpperCase()});e--;)if(f[e]+g in b.style)return!0;return!1}}();
3
- (function(b,f,g,e){function k(a,d){this.element=a;this.$shiftnav=b(this.element);this.$menu=this.$shiftnav.find("ul.shiftnav-menu");this.settings=b.extend({},l,d);this._defaults=l;this._name="shiftnav";this.touchenabled="ontouchstart"in f||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints;f.navigator.pointerEnabled?(this.touchStart="pointerdown",this.touchEnd="pointerup",this.touchMove="pointermove"):f.navigator.msPointerEnabled?(this.touchStart="MSPointerDown",this.touchEnd="MSPointerUp",
4
- this.touchMove="MSPointerMove"):(this.touchStart="touchstart",this.touchEnd="touchend",this.touchMove="touchmove");this.toggleevent="touchend"==this.touchEnd?this.touchEnd+" click":this.touchEnd;this.transitionend="transitionend.shiftnav webkitTransitionEnd.shiftnav msTransitionEnd.shiftnav oTransitionEnd.shiftnav";this.settings.clicktest&&(this.touchEnd="click");this.init()}var l={mouseEvents:!0,retractors:!0,touchOffClose:!0,clicktest:!1,windowstest:!1,debug:!1,open_current:!1,collapse_accordions:!1,
5
  scroll_offset:100,disable_transforms:!1};k.prototype={init:function(){this.$shiftnav.removeClass("shiftnav-nojs");this.$toggles=b('.shiftnav-toggle[data-shiftnav-target="'+this.$shiftnav.data("shiftnav-id")+'"]');this.initializeShiftNav();this.initializeTargets();this.initializeSubmenuToggleMouseEvents();this.initializeRetractors();this.initializeResponsiveToggle()},initializeShiftNav:function(){var a=b("body"),d=this;if(!a.hasClass("shiftnav-enabled")){a.addClass("shiftnav-enabled");"on"==shiftnav_data.lock_body&&
6
  a.addClass("shiftnav-lock");"on"==shiftnav_data.lock_body_x&&a.addClass("shiftnav-lock-x");"off"!=shiftnav_data.shift_body?""!=shiftnav_data.shift_body_wrapper?b(shiftnav_data.shift_body_wrapper).addClass("shiftnav-wrap"):(a.wrapInner('<div class="shiftnav-wrap"></div>'),b("video[autoplay]").each(function(){b(this).get(0).play()})):a.addClass("shiftnav-disable-shift-body");b("#shiftnav-toggle-main, #wpadminbar, .shiftnav-fixed-left, .shiftnav-fixed-right").appendTo("body");var c=b(".shiftnav-wrap"),
7
- h=b("#shiftnav-toggle-main");if(!h.hasClass("shiftnav-toggle-style-burger_only")&&h.hasClass("shiftnav-togglebar-gap-auto")||h.hasClass("shiftnav-togglebar-gap-on")){var e=h.outerHeight();c.css("padding-top",e);h.addClass("shiftnav-togglebar-gap-on");"off"==shiftnav_data.shift_body&&a.css("padding-top",e)}else b("body").hasClass("admin-bar")&&b("html").addClass("shiftnav-nogap");c=!1;h=navigator.userAgent.toLowerCase();/android/.test(h)&&(c=!0,/android [1-3]/.test(h)?c=!0:/chrome/.test(h)?c=!1:/firefox/.test(h)&&
8
- (c=!1));(!shift_supports("transform")||c||d.settings.disable_transforms)&&a.addClass("shiftnav-no-transforms");b(".shiftnav-searchbar-toggle").on(this.toggleevent,function(a){a.stopPropagation();a.preventDefault();a=b(this).next(".shiftnav-searchbar-drop");a.hasClass("shiftnav-searchbar-drop-open")?(a.removeClass("shiftnav-searchbar-drop-open"),b("body").off("click.shiftnav-searchbar-drop")):(a.addClass("shiftnav-searchbar-drop-open"),a.find(".shiftnav-search-input").focus(),d.settings.touchOffClose&&
9
- setTimeout(function(){b("body").on("click.shiftnav-searchbar-drop",function(a){b(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open");b("body").off("click.shiftnav-searchbar-drop")})},100))});b(".shiftnav-searchbar-drop").on(this.toggleevent,function(a){a.stopPropagation()});if(this.settings.touchOffClose)b(".shiftnav-searchbar-drop .shiftnav-search-input").on("blur",function(a){""!=b(this).val()||g||b(this).parents(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open")});
10
- var g;b(".shiftnav-searchbar-toggle").on("mousedown",function(a){g=!0});b(".shiftnav-searchbar-toggle").on("mouseup",function(a){g=!1});b(".shiftnav").css("max-height",f.innerHeight);b(f).shiftsmartresize(function(){b(".shiftnav").css("max-height",f.innerHeight)})}this.$shiftnav.appendTo("body");this.$shiftnav.hasClass("shiftnav-right-edge")?this.edge="right":this.edge="left";this.openclass="shiftnav-open shiftnav-open-"+this.edge;this.$shiftnav.find(".shiftnav-panel-close").on("click",function(){d.closeShiftNav()});
11
- this.$shiftnav.find(".shiftnav-submenu-activation").each(function(){var a=b(this).siblings(".shiftnav-target").outerHeight();b(this).css({height:a,width:a})});d.settings.open_current&&b(".shiftnav .shiftnav-sub-accordion.current-menu-item, .shiftnav .shiftnav-sub-accordion.current-menu-ancestor").addClass("shiftnav-active")},initializeTargets:function(){var a=this;this.$shiftnav.find(".shiftnav-scrollto").removeClass("current-menu-item").removeClass("current-menu-ancestor");this.$shiftnav.on("click",
12
- ".shiftnav-target",function(d){var c=b(this).data("shiftnav-scrolltarget");if(c){var h=b(c).first();if(0<h.length)return d=b(this).parent(".menu-item"),d.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),d.addClass("current-menu-item"),d=h.offset().top,d-=a.settings.scroll_offset,b("html,body").animate({scrollTop:d},1E3,"swing",function(){a.closeShiftNav()}),!1;(h=b(this).attr("href"))&&-1==h.indexOf("#")&&(-1==c.indexOf("#")&&(c="#"+c),f.location=h+c,d.preventDefault())}else b(this).is("span")&&
13
- (d=b(this).parent(".menu-item"),d.hasClass("shiftnav-active")?a.closeSubmenu(d,"disabledLink",a):a.openSubmenu(d,"disabledLink",a))})},initializeSubmenuToggleMouseEvents:function(){if(this.settings.mouseEvents&&!this.settings.clicktest&&!this.settings.windowstest){this.settings.debug&&console.log("initializeSubmenuToggleMouseEvents");var a=this;this.$shiftnav.on("mouseup.shift-submenu-toggle",".shiftnav-submenu-activation",function(b){a.handleMouseActivation(b,this,a)})}},disableSubmenuToggleMouseEvents:function(){this.settings.debug&&
14
- console.log("disableSubmenuToggleMouseEvents");$shiftnav.off("mouseover.shift-submenu-toggle");$shiftnav.off("mouseout.shift-submenu-toggle")},initializeRetractors:function(){if(this.settings.retractors){var a=this;this.$shiftnav.on("mouseup.shiftnav",".shiftnav-retract",function(b){a.handleSubmenuRetractorEnd(b,this,a)})}},initializeResponsiveToggle:function(){var a=this;this.$toggles.on("click","a",function(a){a.stopPropagation()});this.$toggles.on("click",function(d){a.toggle(b(this),a,d)})},toggle:function(a,
15
- d,c){c.preventDefault();c.stopPropagation();if("click"!=c.originalEvent.type||!b(this).data("disableToggle")){if(d.$shiftnav.hasClass("shiftnav-open-target"))d.closeShiftNav();else{a=a.attr("id");var h="shiftnav-toggle-main"==a?"[Main Toggle Bar]":'"'+b(this).text()+'"';"shiftnav-toggle-main-button"!=a&&"shiftnav-toggle-main"!=a||!b("body").hasClass("shiftnav-open")?d.openShiftNav("toggle: "+h):b(".shiftnav.shiftnav-open-target").shiftnav("closeShiftNav")}"click"!=c.originalEvent.type&&(b(this).data("disableToggle",
16
- !0),setTimeout(function(){b(this).data("disableToggle",!1)},1E3));return!1}},openShiftNav:function(a){var d=this;this.settings.debug&&console.log("openShiftNav "+(a||"?"));b("body").removeClass("shiftnav-open-right shiftnav-open-left").addClass(this.openclass).addClass("shiftnav-transitioning");b(".shiftnav-open-target").removeClass("shiftnav-open-target");this.$shiftnav.addClass("shiftnav-open-target").on(d.transitionend,function(){b("body").removeClass("shiftnav-transitioning");b(this).off(d.transitionend)});
17
- this.disableTouchoffClose();this.initializeTouchoffClose()},closeShiftNav:function(){var a=this;b("body").removeClass(this.openclass).addClass("shiftnav-transitioning");this.$shiftnav.removeClass("shiftnav-open-target").on(a.transitionend,function(){b("body").removeClass("shiftnav-transitioning");b(this).off(a.transitionend)});this.disableTouchoffClose()},initializeTouchoffClose:function(){if(this.settings.touchOffClose){var a=this;b(g).on("click.shiftnav "+this.touchEnd+".shiftnav",function(b){a.handleTouchoffClose(b,
18
- this,a)})}},disableTouchoffClose:function(){b(g).off(".shiftnav")},handleMouseActivation:function(a,d,c){c.settings.debug&&console.log("handleMouseover, add mouseout",a);a=b(d).parent();a.hasClass("shiftnav-active")?c.closeSubmenu(a,"mouseActivate",c):c.openSubmenu(a,"mouseActivate",c)},handleSubmenuRetractorEnd:function(a,d,c){a.preventDefault();a.stopPropagation();a=b(d).parent("ul").parent("li");c.closeSubmenu(a,"handleSubmenuRetractor",c);c.settings.debug&&console.log("handleSubmenuRetractorEnd "+
19
- a.find("> a").text())},handleTouchoffClose:function(a,d,c){b("body").is(".shiftnav-transitioning")||0!==b(a.target).parents().add(b(a.target)).filter(".shiftnav, .shiftnav-toggle, .shiftnav-ignore").length||(c.settings.debug&&console.log("touchoff close ",a),a.preventDefault(),a.stopPropagation(),c.closeShiftNav(),c.disableTouchoffClose())},scrollPanel:function(a){if("off"==shiftnav_data.scroll_panel)return 0;if("undefined"==typeof a)return this.$shiftnav.find(".shiftnav-inner").scrollTop();this.$shiftnav.find(".shiftnav-inner").scrollTop(a)},
20
- openSubmenu:function(a,b,c){a.hasClass("shiftnav-active")||(a.hasClass("shiftnav-sub-shift")?(a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.toggleClass("shiftnav-caulk"),c.$shiftnav.addClass("shiftnav-sub-shift-active")):c.settings.collapse_accordions&&a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.parents("ul").removeClass("shiftnav-sub-active-current"),a.find("> ul").addClass("shiftnav-sub-active").addClass("shiftnav-sub-active-current"),setTimeout(function(){a.addClass("shiftnav-active");
21
- a.trigger("shiftnav-open-submenu");a.removeClass("shiftnav-caulk");setTimeout(function(){var b=c.scrollPanel();a.data("scroll-back",b);b=a.offset().top+b;c.scrollPanel(b)},100)},1))},closeSubmenu:function(a,d,c){this.settings.debug&&console.log("closeSubmenu "+a.find(">a").text()+" ["+d+"]");a.hasClass("menu-item-has-children")&&a.hasClass("shiftnav-active")&&(a.addClass("shiftnav-in-transition"),a.each(function(){var a=b(this),e=a.find("> ul");e.on(c.transitionend+"_closesubmenu",function(){c.settings.debug&&
22
- console.log("finished submenu close transition");a.removeClass("shiftnav-in-transition");e.off(c.transitionend+"_closesubmenu")});c.closeSubmenu(a.find(".shiftnav-active"),d+"_recursive",c)}));a.removeClass("shiftnav-active");if(a.hasClass("shiftnav-sub-shift")){0==a.parents(".shiftnav-sub-shift").length&&c.$shiftnav.removeClass("shiftnav-sub-shift-active");var e=a.data("scroll-back");"undefined"!==e&&c.scrollPanel(e)}a.find("> ul").removeClass("shiftnav-sub-active").removeClass("shiftnav-sub-active-current");
23
- a.closest("ul").addClass("shiftnav-sub-active-current");a.trigger("shiftnav-close-submenu")},closeAllSubmenus:function(){b(this.element).find("li.menu-item-has-children").removeClass("shiftnav-active")}};b.fn.shiftnav=function(a){var d=arguments;if(a===e||"object"===typeof a)return this.each(function(){b.data(this,"plugin_shiftnav")||b.data(this,"plugin_shiftnav",new k(this,a))});if("string"===typeof a&&"_"!==a[0]&&"init"!==a){var c;this.each(function(){var e=b.data(this,"plugin_shiftnav");e instanceof
24
- k&&"function"===typeof e[a]&&(c=e[a].apply(e,Array.prototype.slice.call(d,1)));"destroy"===a&&b.data(this,"plugin_shiftnav",null)});return c!==e?c:this}}})(jQuery,window,document);
25
- (function(b){function f(e){if(!g){g=!0;"undefined"!=typeof console&&"window.load"==e&&console.log("ShiftNav initialized via "+e);b(".shiftnav-loading").remove();jQuery(".shiftnav").shiftnav({open_current:"on"==shiftnav_data.open_current?!0:!1,collapse_accordions:"on"==shiftnav_data.collapse_accordions?!0:!1,breakpoint:parseInt(shiftnav_data.breakpoint),touchOffClose:"on"==shiftnav_data.touch_off_close?!0:!1,scroll_offset:shiftnav_data.scroll_offset,disable_transforms:"on"==shiftnav_data.disable_transforms?
26
- !0:!1});if("."==window.location.hash.substring(1,2)&&(e=b(window.location.hash.substring(1)),e.length)){var f=e.offset().top-shiftnav_data.scroll_offset;e.length&&window.scrollTo(0,f)}window.location.hash&&(e=window.location.hash,"."==e.substring(1,2)&&(e=e.substring(1)),e=e.replace(/[^#a-z0-9!$&'()*+,;=]/gi,""),e=b(".shiftnav").find('.shiftnav-target[data-shiftnav-scrolltarget="'+e+'"]').parent(),e.length&&(e.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),e.addClass("current-menu-item")));
27
- b(".shiftnav").trigger("shiftnav-loaded")}}var g=!1;jQuery(function(b){f("document.ready")});b(window).on("load",function(){f("window.load")})})(jQuery);
1
+ 'use strict';(function(b,g){var h=function(b,g,h){var a;return function(){var d=this,c=arguments;a?clearTimeout(a):h&&b.apply(d,c);a=setTimeout(function(){h||b.apply(d,c);a=null},g||100)}};jQuery.fn[g]=function(b){return b?this.bind("resize",h(b)):this.trigger(g)}})(jQuery,"shiftsmartresize");
2
+ var shift_supports=function(){var b=document.createElement("div"),g=["Khtml","Ms","O","Moz","Webkit"];return function(h){var f=g.length;if(h in b.style)return!0;for(h=h.replace(/^[a-z]/,function(b){return b.toUpperCase()});f--;)if(g[f]+h in b.style)return!0;return!1}}();
3
+ (function(b,g,h,f){function k(a,d){this.element=a;this.$shiftnav=b(this.element);this.$menu=this.$shiftnav.find("ul.shiftnav-menu");this.settings=b.extend({},m,d);this._defaults=m;this._name="shiftnav";this.touchenabled="ontouchstart"in g||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints;g.navigator.pointerEnabled?(this.touchStart="pointerdown",this.touchEnd="pointerup",this.touchMove="pointermove"):g.navigator.msPointerEnabled?(this.touchStart="MSPointerDown",this.touchEnd="MSPointerUp",
4
+ this.touchMove="MSPointerMove"):(this.touchStart="touchstart",this.touchEnd="touchend",this.touchMove="touchmove");this.toggleevent="touchend"==this.touchEnd?this.touchEnd+" click":this.touchEnd;this.transitionend="transitionend.shiftnav webkitTransitionEnd.shiftnav msTransitionEnd.shiftnav oTransitionEnd.shiftnav";this.settings.clicktest&&(this.touchEnd="click");this.init()}var m={mouseEvents:!0,retractors:!0,touchOffClose:!0,clicktest:!1,windowstest:!1,debug:!1,open_current:!1,collapse_accordions:!1,
5
  scroll_offset:100,disable_transforms:!1};k.prototype={init:function(){this.$shiftnav.removeClass("shiftnav-nojs");this.$toggles=b('.shiftnav-toggle[data-shiftnav-target="'+this.$shiftnav.data("shiftnav-id")+'"]');this.initializeShiftNav();this.initializeTargets();this.initializeSubmenuToggleMouseEvents();this.initializeRetractors();this.initializeResponsiveToggle()},initializeShiftNav:function(){var a=b("body"),d=this;if(!a.hasClass("shiftnav-enabled")){a.addClass("shiftnav-enabled");"on"==shiftnav_data.lock_body&&
6
  a.addClass("shiftnav-lock");"on"==shiftnav_data.lock_body_x&&a.addClass("shiftnav-lock-x");"off"!=shiftnav_data.shift_body?""!=shiftnav_data.shift_body_wrapper?b(shiftnav_data.shift_body_wrapper).addClass("shiftnav-wrap"):(a.wrapInner('<div class="shiftnav-wrap"></div>'),b("video[autoplay]").each(function(){b(this).get(0).play()})):a.addClass("shiftnav-disable-shift-body");b("#shiftnav-toggle-main, #wpadminbar, .shiftnav-fixed-left, .shiftnav-fixed-right").appendTo("body");var c=b(".shiftnav-wrap"),
7
+ e=b("#shiftnav-toggle-main");if(!e.hasClass("shiftnav-toggle-style-burger_only")&&e.hasClass("shiftnav-togglebar-gap-auto")||e.hasClass("shiftnav-togglebar-gap-on")){var f=e.outerHeight();c.css("padding-top",f);e.addClass("shiftnav-togglebar-gap-on");"off"==shiftnav_data.shift_body&&(c="@media screen and (max-width:"+(shiftnav_data.breakpoint-1)+"px){ body.shiftnav-disable-shift-body{ padding-top:"+f+"px; } }",e=h.getElementById("shiftnav-dynamic-css").sheet,"insertRule"in e&&e.insertRule(c,0))}else b("body").hasClass("admin-bar")&&
8
+ b("html").addClass("shiftnav-nogap");c=!1;e=navigator.userAgent.toLowerCase();/android/.test(e)&&(c=!0,/android [1-3]/.test(e)?c=!0:/chrome/.test(e)?c=!1:/firefox/.test(e)&&(c=!1));(!shift_supports("transform")||c||d.settings.disable_transforms)&&a.addClass("shiftnav-no-transforms");b(".shiftnav-searchbar-toggle").on(this.toggleevent,function(a){a.stopPropagation();a.preventDefault();a=b(this).next(".shiftnav-searchbar-drop");a.hasClass("shiftnav-searchbar-drop-open")?(a.removeClass("shiftnav-searchbar-drop-open"),
9
+ b("body").off("click.shiftnav-searchbar-drop")):(a.addClass("shiftnav-searchbar-drop-open"),a.find(".shiftnav-search-input").focus(),d.settings.touchOffClose&&setTimeout(function(){b("body").on("click.shiftnav-searchbar-drop",function(a){b(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open");b("body").off("click.shiftnav-searchbar-drop")})},100))});b(".shiftnav-searchbar-drop").on(this.toggleevent,function(a){a.stopPropagation()});if(this.settings.touchOffClose)b(".shiftnav-searchbar-drop .shiftnav-search-input").on("blur",
10
+ function(a){""!=b(this).val()||l||b(this).parents(".shiftnav-searchbar-drop").removeClass("shiftnav-searchbar-drop-open")});var l;b(".shiftnav-searchbar-toggle").on("mousedown",function(a){l=!0});b(".shiftnav-searchbar-toggle").on("mouseup",function(a){l=!1});b(".shiftnav").css("max-height",g.innerHeight);b(g).shiftsmartresize(function(){b(".shiftnav").css("max-height",g.innerHeight)})}this.$shiftnav.appendTo("body");this.$shiftnav.hasClass("shiftnav-right-edge")?this.edge="right":this.edge="left";
11
+ this.openclass="shiftnav-open shiftnav-open-"+this.edge;this.$shiftnav.find(".shiftnav-panel-close").on("click",function(){d.closeShiftNav()});this.$shiftnav.find(".shiftnav-submenu-activation").each(function(){var a=b(this).siblings(".shiftnav-target").outerHeight();b(this).css({height:a,width:a})});d.settings.open_current&&b(".shiftnav .shiftnav-sub-accordion.current-menu-item, .shiftnav .shiftnav-sub-accordion.current-menu-ancestor").addClass("shiftnav-active")},initializeTargets:function(){var a=
12
+ this;this.$shiftnav.find(".shiftnav-scrollto").removeClass("current-menu-item").removeClass("current-menu-ancestor");this.$shiftnav.on("click",".shiftnav-target",function(d){var c=b(this).data("shiftnav-scrolltarget");if(c){var e=b(c).first();if(0<e.length)return d=b(this).parent(".menu-item"),d.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),d.addClass("current-menu-item"),d=e.offset().top,d-=a.settings.scroll_offset,b("html,body").animate({scrollTop:d},1E3,"swing",
13
+ function(){a.closeShiftNav()}),!1;(e=b(this).attr("href"))&&-1==e.indexOf("#")&&(-1==c.indexOf("#")&&(c="#"+c),g.location=e+c,d.preventDefault())}else b(this).is("span")&&(d=b(this).parent(".menu-item"),d.hasClass("shiftnav-active")?a.closeSubmenu(d,"disabledLink",a):a.openSubmenu(d,"disabledLink",a))})},initializeSubmenuToggleMouseEvents:function(){if(this.settings.mouseEvents&&!this.settings.clicktest&&!this.settings.windowstest){this.settings.debug&&console.log("initializeSubmenuToggleMouseEvents");
14
+ var a=this;this.$shiftnav.on("mouseup.shift-submenu-toggle",".shiftnav-submenu-activation",function(b){a.handleMouseActivation(b,this,a)})}},disableSubmenuToggleMouseEvents:function(){this.settings.debug&&console.log("disableSubmenuToggleMouseEvents");$shiftnav.off("mouseover.shift-submenu-toggle");$shiftnav.off("mouseout.shift-submenu-toggle")},initializeRetractors:function(){if(this.settings.retractors){var a=this;this.$shiftnav.on("mouseup.shiftnav",".shiftnav-retract",function(b){a.handleSubmenuRetractorEnd(b,
15
+ this,a)})}},initializeResponsiveToggle:function(){var a=this;this.$toggles.on("click","a",function(a){a.stopPropagation()});this.$toggles.on("click",function(d){a.toggle(b(this),a,d)})},toggle:function(a,d,c){c.preventDefault();c.stopPropagation();if("click"!=c.originalEvent.type||!b(this).data("disableToggle")){if(d.$shiftnav.hasClass("shiftnav-open-target"))d.closeShiftNav();else{a=a.attr("id");var e="shiftnav-toggle-main"==a?"[Main Toggle Bar]":'"'+b(this).text()+'"';"shiftnav-toggle-main-button"!=
16
+ a&&"shiftnav-toggle-main"!=a||!b("body").hasClass("shiftnav-open")?d.openShiftNav("toggle: "+e):b(".shiftnav.shiftnav-open-target").shiftnav("closeShiftNav")}"click"!=c.originalEvent.type&&(b(this).data("disableToggle",!0),setTimeout(function(){b(this).data("disableToggle",!1)},1E3));return!1}},openShiftNav:function(a){var d=this;this.settings.debug&&console.log("openShiftNav "+(a||"?"));b("body").removeClass("shiftnav-open-right shiftnav-open-left").addClass(this.openclass).addClass("shiftnav-transitioning");
17
+ b(".shiftnav-open-target").removeClass("shiftnav-open-target");this.$shiftnav.addClass("shiftnav-open-target").on(d.transitionend,function(){b("body").removeClass("shiftnav-transitioning");b(this).off(d.transitionend)});this.disableTouchoffClose();this.initializeTouchoffClose()},closeShiftNav:function(){var a=this;b("body").removeClass(this.openclass).addClass("shiftnav-transitioning");this.$shiftnav.removeClass("shiftnav-open-target").on(a.transitionend,function(){b("body").removeClass("shiftnav-transitioning");
18
+ b(this).off(a.transitionend)});this.disableTouchoffClose()},initializeTouchoffClose:function(){if(this.settings.touchOffClose){var a=this;b(h).on("click.shiftnav "+this.touchEnd+".shiftnav",function(b){a.handleTouchoffClose(b,this,a)})}},disableTouchoffClose:function(){b(h).off(".shiftnav")},handleMouseActivation:function(a,d,c){c.settings.debug&&console.log("handleMouseover, add mouseout",a);a=b(d).parent();a.hasClass("shiftnav-active")?c.closeSubmenu(a,"mouseActivate",c):c.openSubmenu(a,"mouseActivate",
19
+ c)},handleSubmenuRetractorEnd:function(a,d,c){a.preventDefault();a.stopPropagation();a=b(d).parent("ul").parent("li");c.closeSubmenu(a,"handleSubmenuRetractor",c);c.settings.debug&&console.log("handleSubmenuRetractorEnd "+a.find("> a").text())},handleTouchoffClose:function(a,d,c){b("body").is(".shiftnav-transitioning")||0!==b(a.target).parents().add(b(a.target)).filter(".shiftnav, .shiftnav-toggle, .shiftnav-ignore").length||(c.settings.debug&&console.log("touchoff close ",a),a.preventDefault(),a.stopPropagation(),
20
+ c.closeShiftNav(),c.disableTouchoffClose())},scrollPanel:function(a){if("off"==shiftnav_data.scroll_panel)return 0;if("undefined"==typeof a)return this.$shiftnav.find(".shiftnav-inner").scrollTop();this.$shiftnav.find(".shiftnav-inner").scrollTop(a)},openSubmenu:function(a,b,c){a.hasClass("shiftnav-active")||(a.hasClass("shiftnav-sub-shift")?(a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.toggleClass("shiftnav-caulk"),c.$shiftnav.addClass("shiftnav-sub-shift-active")):c.settings.collapse_accordions&&
21
+ a.siblings(".shiftnav-active").removeClass("shiftnav-active"),a.parents("ul").removeClass("shiftnav-sub-active-current"),a.find("> ul").addClass("shiftnav-sub-active").addClass("shiftnav-sub-active-current"),setTimeout(function(){a.addClass("shiftnav-active");a.trigger("shiftnav-open-submenu");a.removeClass("shiftnav-caulk");setTimeout(function(){var b=c.scrollPanel();a.data("scroll-back",b);b=a.offset().top+b;c.scrollPanel(b)},100)},1))},closeSubmenu:function(a,d,c){this.settings.debug&&console.log("closeSubmenu "+
22
+ a.find(">a").text()+" ["+d+"]");a.hasClass("menu-item-has-children")&&a.hasClass("shiftnav-active")&&(a.addClass("shiftnav-in-transition"),a.each(function(){var a=b(this),e=a.find("> ul");e.on(c.transitionend+"_closesubmenu",function(){c.settings.debug&&console.log("finished submenu close transition");a.removeClass("shiftnav-in-transition");e.off(c.transitionend+"_closesubmenu")});c.closeSubmenu(a.find(".shiftnav-active"),d+"_recursive",c)}));a.removeClass("shiftnav-active");if(a.hasClass("shiftnav-sub-shift")){0==
23
+ a.parents(".shiftnav-sub-shift").length&&c.$shiftnav.removeClass("shiftnav-sub-shift-active");var e=a.data("scroll-back");"undefined"!==e&&c.scrollPanel(e)}a.find("> ul").removeClass("shiftnav-sub-active").removeClass("shiftnav-sub-active-current");a.closest("ul").addClass("shiftnav-sub-active-current");a.trigger("shiftnav-close-submenu")},closeAllSubmenus:function(){b(this.element).find("li.menu-item-has-children").removeClass("shiftnav-active")}};b.fn.shiftnav=function(a){var d=arguments;if(a===
24
+ f||"object"===typeof a)return this.each(function(){b.data(this,"plugin_shiftnav")||b.data(this,"plugin_shiftnav",new k(this,a))});if("string"===typeof a&&"_"!==a[0]&&"init"!==a){var c;this.each(function(){var e=b.data(this,"plugin_shiftnav");e instanceof k&&"function"===typeof e[a]&&(c=e[a].apply(e,Array.prototype.slice.call(d,1)));"destroy"===a&&b.data(this,"plugin_shiftnav",null)});return c!==f?c:this}}})(jQuery,window,document);
25
+ (function(b){function g(f){if(!h){h=!0;"undefined"!=typeof console&&"window.load"==f&&console.log("ShiftNav initialized via "+f);b(".shiftnav-loading").remove();jQuery(".shiftnav").shiftnav({open_current:"on"==shiftnav_data.open_current?!0:!1,collapse_accordions:"on"==shiftnav_data.collapse_accordions?!0:!1,breakpoint:parseInt(shiftnav_data.breakpoint),touchOffClose:"on"==shiftnav_data.touch_off_close?!0:!1,scroll_offset:shiftnav_data.scroll_offset,disable_transforms:"on"==shiftnav_data.disable_transforms?
26
+ !0:!1});if("."==window.location.hash.substring(1,2)&&(f=b(window.location.hash.substring(1)),f.length)){var g=f.offset().top-shiftnav_data.scroll_offset;f.length&&window.scrollTo(0,g)}window.location.hash&&(f=window.location.hash,"."==f.substring(1,2)&&(f=f.substring(1)),f=f.replace(/[^#a-z0-9!$&'()*+,;=]/gi,""),f=b(".shiftnav").find('.shiftnav-target[data-shiftnav-scrolltarget="'+f+'"]').parent(),f.length&&(f.siblings().removeClass("current-menu-item").removeClass("current-menu-ancestor"),f.addClass("current-menu-item")));
27
+ b(".shiftnav").trigger("shiftnav-loaded")}}var h=!1;jQuery(function(b){g("document.ready")});b(window).on("load",function(){g("window.load")})})(jQuery);
includes/ShiftNavWalker.class.php CHANGED
@@ -11,7 +11,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
11
 
12
  private $index = 0;
13
  protected $menuItemOptions;
14
-
15
  protected $submenu_type;
16
  protected $default_submenu_type = false;
17
 
@@ -57,7 +57,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
57
  $output .= $this->get_back_retractor();
58
  }
59
 
60
-
61
  }
62
 
63
  function get_back_retractor(){
@@ -98,7 +98,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
98
  if( shiftnav_op( 'back_button_bottom' , 'general' ) != 'off' ){
99
  $output .= $this->get_back_retractor();
100
  }
101
-
102
  $indent = str_repeat("\t", $depth);
103
  $output .= "$indent</ul>\n";
104
  }
@@ -136,7 +136,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
136
 
137
  $data = shiftnav_get_menu_item_data( $item->ID );
138
  //shiftp( $data );
139
-
140
  $class_names = $value = '';
141
 
142
  $classes = empty( $item->classes ) ? array() : (array) $item->classes;
@@ -144,12 +144,12 @@ class ShiftNavWalker extends Walker_Nav_Menu {
144
 
145
  /** ShiftNav Stuff **/
146
  $shiftnav_atts = array();
147
-
148
  //Submenus
149
  $has_sub = $item->has_sub; //determined via children array in display_element()
150
  // $has_sub = false;
151
  // if( in_array( 'menu-item-has-children' , $classes ) ) $has_sub = true;
152
-
153
  if( SHIFTNAV_PRO ){
154
  $this->submenu_type = $submenu_type = isset( $data['submenu_type'] ) ? $data['submenu_type'] : 'default';
155
  if( $submenu_type == 'default' ){
@@ -167,7 +167,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
167
 
168
  //Depth
169
  $classes[] = 'shiftnav-depth-'.$depth;
170
-
171
 
172
  //Highlight
173
  if( isset( $data['highlight'] ) && ( $data['highlight'] == 'on' ) ){
@@ -214,7 +214,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
214
  $classes[] = 'shiftnav-text-disabled';
215
  }
216
 
217
-
218
  /**
219
  * Filter the CSS class(es) applied to a menu item's <li>.
220
  *
@@ -224,7 +224,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
224
  * @param object $item The current menu item.
225
  * @param array $args An array of arguments. @see wp_nav_menu()
226
  */
227
-
228
  if( isset( $data['disable_current'] ) && $data['disable_current'] == 'on' ){
229
  $remove_current = array( 'current-menu-item' , 'current-menu-parent' , 'current-menu-ancestor' );
230
  foreach( $classes as $k => $c ){
@@ -300,9 +300,9 @@ class ShiftNavWalker extends Walker_Nav_Menu {
300
 
301
  $item_output = $args->before;
302
  $item_output .= '<'.$el.' class="shiftnav-target" '. $attributes .'>';
303
-
304
 
305
-
 
306
  if( $icon ) $title = '<span class="shiftnav-target-text">'.$title.'</span>';
307
  $item_output .= $args->link_before . $icon . $title . $args->link_after;
308
 
@@ -314,12 +314,14 @@ class ShiftNavWalker extends Walker_Nav_Menu {
314
  $item_output.= '<span class="shiftnav-submenu-activation"><i class="fa fa-chevron-right"></i></span>';
315
  break;
316
  case 'accordion':
317
- $item_output.= '<span class="shiftnav-submenu-activation shiftnav-submenu-activation-open"><i class="fa fa-chevron-down"></i></span>';
318
- $item_output.= '<span class="shiftnav-submenu-activation shiftnav-submenu-activation-close"><i class="fa fa-chevron-up"></i></span>';
 
 
319
  break;
320
  }
321
  }
322
-
323
  $item_output .= $args->after;
324
 
325
  /**
@@ -353,9 +355,9 @@ class ShiftNavWalker extends Walker_Nav_Menu {
353
  */
354
  function end_el( &$output, $item, $depth = 0, $args = array() ) {
355
  if( $item->object != 'ubermenu-custom' ||
356
- $item->type_label != '[UberMenu Menu Segment]' ||
357
  shiftnav_op( 'process_uber_segments' , 'general' ) == 'off' ){
358
-
359
  $output .= "</li>";
360
  }
361
  }
@@ -417,7 +419,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
417
  $cb_args = array_merge( array(&$output, $depth), $args);
418
  //call_user_func_array(array($this, 'start_lvl'), $cb_args); // removed, as we don't want the opening UL
419
  }
420
- $this->display_element( $child, $children_elements, $max_depth, $depth+1, $args, $output );
421
  }
422
  unset( $children_elements[ $id ] );
423
  }
@@ -429,7 +431,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
429
 
430
 
431
 
432
-
433
 
434
  $data = shiftnav_get_menu_item_data( $id );
435
 
@@ -449,12 +451,12 @@ class ShiftNavWalker extends Walker_Nav_Menu {
449
 
450
 
451
  //UberMenu Conditionals
452
- if( shiftnav_op( 'inherit_ubermenu_conditionals' , 'general' ) == 'on' ){
453
 
454
  if( function_exists( 'ubermenu' ) ){
455
 
456
  $has_children = ! empty( $children_elements[$element->$id_field] );
457
- if ( isset( $args[0] ) && is_array( $args[0] ) ){
458
  $args[0]['has_children'] = $has_children;
459
  }
460
  $cb_args = array_merge( array(&$output, $element, $depth), $args);
@@ -475,7 +477,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
475
  return;
476
  }
477
  }
478
-
479
  Walker_Nav_Menu::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
480
  }
481
 
@@ -492,7 +494,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
492
 
493
  //We haven't investigated this item yet
494
  if( !isset( $this->menuItemOptions[ $item_id ] ) ){
495
-
496
  $uber_options = false;
497
  if( empty( $this->noUberOps[ $item_id ] ) ) {
498
  $uber_options = get_post_meta( $item_id , '_uber_options', true ); //TODO - wrap in API for UberMenu - ubermenu_get_menu_item_data()?
@@ -502,7 +504,7 @@ class ShiftNavWalker extends Walker_Nav_Menu {
502
  //If $uber_options are set, use them
503
  if( $uber_options ){
504
  $this->menuItemOptions[ $item_id ] = $uber_options;
505
- }
506
  //Otherwise get the old meta
507
  else{
508
  $option_id = '_menu_item_'.$id; //UberMenu::convertToOldParameter( $id );
@@ -539,16 +541,16 @@ class ShiftNavWalker extends Walker_Nav_Menu {
539
 
540
  //shiftp( $args );
541
  //Set Depth offset for segment
542
- $current_depth_offset = $this->offset_depth; //potential issue? Could set in $args and increment that way.
543
  $this->offset_depth = $depth;
544
 
545
- $menu_segment_args = array(
546
- 'menu' => $menu_segment,
547
  'menu_class' => 'na', //just to prevent PHP notice
548
  'echo' => false ,
549
  'container' => false,
550
  'items_wrap' => '%3$s',
551
- 'walker' => $this,
552
  'depth' => 0,
553
  'shiftnav_segment' => $item->ID,
554
  'shiftnav_instance' => $args->shiftnav,
@@ -566,13 +568,13 @@ class ShiftNavWalker extends Walker_Nav_Menu {
566
  $output .= $segment_html;
567
 
568
 
569
- $output .= "<!-- end Segment: Menu ID $menu_segment -->";
570
 
571
- $this->offset_depth = $current_depth_offset;
572
 
573
  //shiftp( $um_args );
574
 
575
-
576
 
577
  }
578
 
@@ -608,4 +610,4 @@ class dummy_um_item{
608
  function get_url(){
609
  return $this->shiftnav_item->url;
610
  }
611
- }
11
 
12
  private $index = 0;
13
  protected $menuItemOptions;
14
+
15
  protected $submenu_type;
16
  protected $default_submenu_type = false;
17
 
57
  $output .= $this->get_back_retractor();
58
  }
59
 
60
+
61
  }
62
 
63
  function get_back_retractor(){
98
  if( shiftnav_op( 'back_button_bottom' , 'general' ) != 'off' ){
99
  $output .= $this->get_back_retractor();
100
  }
101
+
102
  $indent = str_repeat("\t", $depth);
103
  $output .= "$indent</ul>\n";
104
  }
136
 
137
  $data = shiftnav_get_menu_item_data( $item->ID );
138
  //shiftp( $data );
139
+
140
  $class_names = $value = '';
141
 
142
  $classes = empty( $item->classes ) ? array() : (array) $item->classes;
144
 
145
  /** ShiftNav Stuff **/
146
  $shiftnav_atts = array();
147
+
148
  //Submenus
149
  $has_sub = $item->has_sub; //determined via children array in display_element()
150
  // $has_sub = false;
151
  // if( in_array( 'menu-item-has-children' , $classes ) ) $has_sub = true;
152
+
153
  if( SHIFTNAV_PRO ){
154
  $this->submenu_type = $submenu_type = isset( $data['submenu_type'] ) ? $data['submenu_type'] : 'default';
155
  if( $submenu_type == 'default' ){
167
 
168
  //Depth
169
  $classes[] = 'shiftnav-depth-'.$depth;
170
+
171
 
172
  //Highlight
173
  if( isset( $data['highlight'] ) && ( $data['highlight'] == 'on' ) ){
214
  $classes[] = 'shiftnav-text-disabled';
215
  }
216
 
217
+
218
  /**
219
  * Filter the CSS class(es) applied to a menu item's <li>.
220
  *
224
  * @param object $item The current menu item.
225
  * @param array $args An array of arguments. @see wp_nav_menu()
226
  */
227
+
228
  if( isset( $data['disable_current'] ) && $data['disable_current'] == 'on' ){
229
  $remove_current = array( 'current-menu-item' , 'current-menu-parent' , 'current-menu-ancestor' );
230
  foreach( $classes as $k => $c ){
300
 
301
  $item_output = $args->before;
302
  $item_output .= '<'.$el.' class="shiftnav-target" '. $attributes .'>';
 
303
 
304
+
305
+
306
  if( $icon ) $title = '<span class="shiftnav-target-text">'.$title.'</span>';
307
  $item_output .= $args->link_before . $icon . $title . $args->link_after;
308
 
314
  $item_output.= '<span class="shiftnav-submenu-activation"><i class="fa fa-chevron-right"></i></span>';
315
  break;
316
  case 'accordion':
317
+ $open_icon = shiftnav_op( 'accordion_toggle_icon_open' , '__current_instance__' );
318
+ $close_icon = shiftnav_op( 'accordion_toggle_icon_close' , '__current_instance__' );
319
+ $item_output.= '<span class="shiftnav-submenu-activation shiftnav-submenu-activation-open"><i class="fa fa-'.$open_icon.'"></i></span>';
320
+ $item_output.= '<span class="shiftnav-submenu-activation shiftnav-submenu-activation-close"><i class="fa fa-'.$close_icon.'"></i></span>';
321
  break;
322
  }
323
  }
324
+
325
  $item_output .= $args->after;
326
 
327
  /**
355
  */
356
  function end_el( &$output, $item, $depth = 0, $args = array() ) {
357
  if( $item->object != 'ubermenu-custom' ||
358
+ $item->type_label != '[UberMenu Menu Segment]' ||
359
  shiftnav_op( 'process_uber_segments' , 'general' ) == 'off' ){
360
+
361
  $output .= "</li>";
362
  }
363
  }
419
  $cb_args = array_merge( array(&$output, $depth), $args);
420
  //call_user_func_array(array($this, 'start_lvl'), $cb_args); // removed, as we don't want the opening UL
421
  }
422
+ $this->display_element( $child, $children_elements, $max_depth, $depth+1, $args, $output );
423
  }
424
  unset( $children_elements[ $id ] );
425
  }
431
 
432
 
433
 
434
+
435
 
436
  $data = shiftnav_get_menu_item_data( $id );
437
 
451
 
452
 
453
  //UberMenu Conditionals
454
+ if( shiftnav_op( 'inherit_ubermenu_conditionals' , 'general' ) == 'on' ){
455
 
456
  if( function_exists( 'ubermenu' ) ){
457
 
458
  $has_children = ! empty( $children_elements[$element->$id_field] );
459
+ if ( isset( $args[0] ) && is_array( $args[0] ) ){
460
  $args[0]['has_children'] = $has_children;
461
  }
462
  $cb_args = array_merge( array(&$output, $element, $depth), $args);
477
  return;
478
  }
479
  }
480
+
481
  Walker_Nav_Menu::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
482
  }
483
 
494
 
495
  //We haven't investigated this item yet
496
  if( !isset( $this->menuItemOptions[ $item_id ] ) ){
497
+
498
  $uber_options = false;
499
  if( empty( $this->noUberOps[ $item_id ] ) ) {
500
  $uber_options = get_post_meta( $item_id , '_uber_options', true ); //TODO - wrap in API for UberMenu - ubermenu_get_menu_item_data()?
504
  //If $uber_options are set, use them
505
  if( $uber_options ){
506
  $this->menuItemOptions[ $item_id ] = $uber_options;
507
+ }
508
  //Otherwise get the old meta
509
  else{
510
  $option_id = '_menu_item_'.$id; //UberMenu::convertToOldParameter( $id );
541
 
542
  //shiftp( $args );
543
  //Set Depth offset for segment
544
+ $current_depth_offset = $this->offset_depth; //potential issue? Could set in $args and increment that way.
545
  $this->offset_depth = $depth;
546
 
547
+ $menu_segment_args = array(
548
+ 'menu' => $menu_segment,
549
  'menu_class' => 'na', //just to prevent PHP notice
550
  'echo' => false ,
551
  'container' => false,
552
  'items_wrap' => '%3$s',
553
+ 'walker' => $this,
554
  'depth' => 0,
555
  'shiftnav_segment' => $item->ID,
556
  'shiftnav_instance' => $args->shiftnav,
568
  $output .= $segment_html;
569
 
570
 
571
+ $output .= "<!-- end Segment: Menu ID $menu_segment -->";
572
 
573
+ $this->offset_depth = $current_depth_offset;
574
 
575
  //shiftp( $um_args );
576
 
577
+
578
 
579
  }
580
 
610
  function get_url(){
611
  return $this->shiftnav_item->url;
612
  }
613
+ }
includes/functions.php CHANGED
@@ -36,7 +36,7 @@ function shiftnav_inject_css(){
36
  $css.= "\t@media only screen and (min-width:{$toggle_breakpoint}){ ";
37
  //Set the padding-top to 0 above the breakpoint, because it gets set to the toggle height below the breakpoint
38
  $css.= "#shiftnav-toggle-main, .shiftnav-toggle-mobile{ display:none; } .shiftnav-wrap { padding-top:0 !important; } ";
39
- if( shiftnav_op( 'shift_body' , 'general' ) == 'off' ) $css.= "body.shiftnav-disable-shift-body{ padding-top:0 !important; } ";
40
  $css.= "}\n";
41
 
42
  $hide_theme_menu = shiftnav_op( 'hide_theme_menu', 'togglebar' );
36
  $css.= "\t@media only screen and (min-width:{$toggle_breakpoint}){ ";
37
  //Set the padding-top to 0 above the breakpoint, because it gets set to the toggle height below the breakpoint
38
  $css.= "#shiftnav-toggle-main, .shiftnav-toggle-mobile{ display:none; } .shiftnav-wrap { padding-top:0 !important; } ";
39
+ //if( shiftnav_op( 'shift_body' , 'general' ) == 'off' ) $css.= "body.shiftnav-disable-shift-body{ padding-top:0 !important; } ";
40
  $css.= "}\n";
41
 
42
  $hide_theme_menu = shiftnav_op( 'hide_theme_menu', 'togglebar' );
languages/shiftnav.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the ShiftNav Pro - Responsive Mobile Menu package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: ShiftNav Pro - Responsive Mobile Menu 1.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/shiftnav\n"
7
- "POT-Creation-Date: 2017-06-25 01:55:30+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -38,7 +38,7 @@ msgid ""
38
  "entirely."
39
  msgstr ""
40
 
41
- #: admin/settings.config.php:72 pro/admin/settings.pro.php:378
42
  msgid "Edge"
43
  msgstr ""
44
 
@@ -46,19 +46,19 @@ msgstr ""
46
  msgid "Which edge of the viewport should the ShiftNav panel appear on?"
47
  msgstr ""
48
 
49
- #: admin/settings.config.php:88 pro/admin/settings.pro.php:402
50
  msgid "Skin"
51
  msgstr ""
52
 
53
- #: admin/settings.config.php:99 pro/admin/settings.pro.php:430
54
  msgid "Indent Always Visible Submenus"
55
  msgstr ""
56
 
57
- #: admin/settings.config.php:100 pro/admin/settings.pro.php:431
58
  msgid "Check this to indent submenu items of always-visible submenus"
59
  msgstr ""
60
 
61
- #: admin/settings.config.php:109 pro/admin/settings.pro.php:450
62
  msgid "Display Site Title"
63
  msgstr ""
64
 
@@ -66,11 +66,11 @@ msgstr ""
66
  msgid "Display the site title in the menu panel"
67
  msgstr ""
68
 
69
- #: admin/settings.config.php:119 pro/admin/settings.pro.php:470
70
  msgid "Display Panel Close Button"
71
  msgstr ""
72
 
73
- #: admin/settings.config.php:120 pro/admin/settings.pro.php:471
74
  msgid "Display an &times; close button in the upper right of the ShiftNav panel"
75
  msgstr ""
76
 
@@ -150,7 +150,7 @@ msgid ""
150
  "specific UberMenu ID."
151
  msgstr ""
152
 
153
- #: admin/settings.config.php:209 pro/admin/settings.pro.php:440
154
  msgid "Toggle Content"
155
  msgstr ""
156
 
@@ -643,7 +643,7 @@ msgid "Menu Default"
643
  msgstr ""
644
 
645
  #: admin/settings.menu.php:340 pro/admin/item.settings.pro.php:47
646
- #: pro/admin/settings.pro.php:206 pro/admin/settings.pro.php:418
647
  msgid "Always visible"
648
  msgstr ""
649
 
@@ -720,506 +720,522 @@ msgid ""
720
  msgstr ""
721
 
722
  #: pro/admin/item.settings.pro.php:48 pro/admin/settings.pro.php:207
723
- #: pro/admin/settings.pro.php:419
724
  msgid "Accordion"
725
  msgstr ""
726
 
727
  #: pro/admin/item.settings.pro.php:49 pro/admin/settings.pro.php:208
728
- #: pro/admin/settings.pro.php:420
729
  msgid "Shift"
730
  msgstr ""
731
 
732
- #: pro/admin/settings.pro.php:202 pro/admin/settings.pro.php:414
733
  msgid "Submenu Type Default"
734
  msgstr ""
735
 
736
- #: pro/admin/settings.pro.php:203 pro/admin/settings.pro.php:415
737
  msgid ""
738
  "This submenu type will be used by any Menu Item whose Submenu Type is set "
739
  "to \"Menu Default\""
740
  msgstr ""
741
 
742
- #: pro/admin/settings.pro.php:218 pro/admin/settings.pro.php:392
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
743
  msgid "Disable Menu"
744
  msgstr ""
745
 
746
- #: pro/admin/settings.pro.php:219
747
  msgid ""
748
  "Check this to disable the menu entirely; the panel will still be displayed "
749
  "and can be used for custom content"
750
  msgstr ""
751
 
752
- #: pro/admin/settings.pro.php:228 pro/admin/settings.pro.php:480
753
  msgid "Top Image"
754
  msgstr ""
755
 
756
- #: pro/admin/settings.pro.php:238 pro/admin/settings.pro.php:490
757
  msgid "Pad Image"
758
  msgstr ""
759
 
760
- #: pro/admin/settings.pro.php:239 pro/admin/settings.pro.php:491
761
  msgid ""
762
  "Add padding to align image with menu item text. Uncheck to expand to the "
763
  "edges of the panel."
764
  msgstr ""
765
 
766
- #: pro/admin/settings.pro.php:248 pro/admin/settings.pro.php:500
767
  msgid "Image Link (URL)"
768
  msgstr ""
769
 
770
- #: pro/admin/settings.pro.php:249 pro/admin/settings.pro.php:501
771
  msgid "Make the image a link to this URL."
772
  msgstr ""
773
 
774
- #: pro/admin/settings.pro.php:258 pro/admin/settings.pro.php:510
775
  msgid "Custom Content Before Menu"
776
  msgstr ""
777
 
778
- #: pro/admin/settings.pro.php:269 pro/admin/settings.pro.php:521
779
  msgid "Custom Content After Menu"
780
  msgstr ""
781
 
782
- #: pro/admin/settings.pro.php:287
783
  msgid "Toggle Content Left Edge"
784
  msgstr ""
785
 
786
- #: pro/admin/settings.pro.php:288
787
  msgid ""
788
  "For the Full Bar toggle style, this content will appear at the left edge of "
789
  "the toggle bar, to the right of the toggle icon. To pad your custom "
790
  "content vertically, use the class <code>shiftnav-toggle-main-block</code>."
791
  msgstr ""
792
 
793
- #: pro/admin/settings.pro.php:299
794
  msgid "Toggle Content Right Edge"
795
  msgstr ""
796
 
797
- #: pro/admin/settings.pro.php:300
798
  msgid ""
799
  "For the Full Bar toggle style, this content will appear at the right edge "
800
  "of the toggle bar. To pad your custom content vertically, use the class "
801
  "<code>shiftnav-toggle-main-block</code>."
802
  msgstr ""
803
 
804
- #: pro/admin/settings.pro.php:334
805
  msgid "Integration Code"
806
  msgstr ""
807
 
808
- #: pro/admin/settings.pro.php:340
809
  msgid "Instance Name"
810
  msgstr ""
811
 
812
- #: pro/admin/settings.pro.php:349
813
  msgid "Automatically Generate Panel"
814
  msgstr ""
815
 
816
- #: pro/admin/settings.pro.php:350
817
  msgid ""
818
  "Automatically generate this ShiftNav instance. It'll be added to each page "
819
  "of the site"
820
  msgstr ""
821
 
822
- #: pro/admin/settings.pro.php:358
823
  msgid "Display Menu"
824
  msgstr ""
825
 
826
- #: pro/admin/settings.pro.php:368
827
  msgid "Theme Location"
828
  msgstr ""
829
 
830
- #: pro/admin/settings.pro.php:369
831
  msgid ""
832
  "Select the Theme Location to display. The Menu setting will override this "
833
  "setting if a menu is selected."
834
  msgstr ""
835
 
836
- #: pro/admin/settings.pro.php:379
837
  msgid "Select which edge of your site to display the menu on"
838
  msgstr ""
839
 
840
- #: pro/admin/settings.pro.php:393
841
  msgid ""
842
  "Check this to disable the menu entirely; the panel can be used for custom "
843
  "content"
844
  msgstr ""
845
 
846
- #: pro/admin/settings.pro.php:403
847
  msgid "Select which skin to use for this instance"
848
  msgstr ""
849
 
850
- #: pro/admin/settings.pro.php:441
851
  msgid ""
852
  "Enter the content to be displayed in the toggle, which you will insert into "
853
  "your template with the integration code at the top of this tab."
854
  msgstr ""
855
 
856
- #: pro/admin/settings.pro.php:451
857
  msgid "Display the site title in the menu"
858
  msgstr ""
859
 
860
- #: pro/admin/settings.pro.php:460
861
  msgid "Display Instance Name"
862
  msgstr ""
863
 
864
- #: pro/admin/settings.pro.php:461
865
  msgid "Display the instance name in the menu"
866
  msgstr ""
867
 
868
- #: pro/admin/settings.pro.php:549
869
  msgid "Delete Instance"
870
  msgstr ""
871
 
872
- #: pro/admin/settings.pro.php:550
873
  msgid "Permanently Delete Instance"
874
  msgstr ""
875
 
876
- #: pro/admin/settings.pro.php:584
877
  msgid "Panel Background Color"
878
  msgstr ""
879
 
880
- #: pro/admin/settings.pro.php:595
881
  msgid "Panel Default Font Color"
882
  msgstr ""
883
 
884
- #: pro/admin/settings.pro.php:596
885
  msgid ""
886
  "The default font color for custom content within the panel (menu-specific "
887
  "styles will override this for menu items)"
888
  msgstr ""
889
 
890
- #: pro/admin/settings.pro.php:611
891
  msgid "Panel Title Font Color"
892
  msgstr ""
893
 
894
- #: pro/admin/settings.pro.php:612
895
  msgid "The font color for the header/title within the panel."
896
  msgstr ""
897
 
898
- #: pro/admin/settings.pro.php:622
899
  msgid "Panel Title Font Size"
900
  msgstr ""
901
 
902
- #: pro/admin/settings.pro.php:623 pro/admin/settings.pro.php:848
903
  msgid "The font size for the header/title within the panel."
904
  msgstr ""
905
 
906
- #: pro/admin/settings.pro.php:633
907
  msgid "Panel Title Text Alignment"
908
  msgstr ""
909
 
910
- #: pro/admin/settings.pro.php:634
911
  msgid "The alignment of the text in the header/title within the panel."
912
  msgstr ""
913
 
914
- #: pro/admin/settings.pro.php:637 pro/admin/settings.pro.php:654
915
- #: pro/admin/settings.pro.php:767 pro/admin/settings.pro.php:937
916
- #: pro/admin/settings.pro.php:1023
917
  msgid "Defaut"
918
  msgstr ""
919
 
920
- #: pro/admin/settings.pro.php:638 pro/admin/settings.pro.php:938
921
  msgid "Center"
922
  msgstr ""
923
 
924
- #: pro/admin/settings.pro.php:639 pro/admin/settings.pro.php:939
925
  msgid "Left"
926
  msgstr ""
927
 
928
- #: pro/admin/settings.pro.php:640 pro/admin/settings.pro.php:940
929
  msgid "Right"
930
  msgstr ""
931
 
932
- #: pro/admin/settings.pro.php:650
933
  msgid "Panel Title Font Weight"
934
  msgstr ""
935
 
936
- #: pro/admin/settings.pro.php:651
937
  msgid "The font weight of the text in the header/title within the panel."
938
  msgstr ""
939
 
940
- #: pro/admin/settings.pro.php:655 pro/admin/settings.pro.php:768
941
- #: pro/admin/settings.pro.php:1024
942
  msgid "Normal"
943
  msgstr ""
944
 
945
- #: pro/admin/settings.pro.php:656 pro/admin/settings.pro.php:769
946
- #: pro/admin/settings.pro.php:1025
947
  msgid "Bold"
948
  msgstr ""
949
 
950
- #: pro/admin/settings.pro.php:673
951
  msgid "Menu Item Background Color"
952
  msgstr ""
953
 
954
- #: pro/admin/settings.pro.php:674
955
  msgid ""
956
  "The color of the menu item background. Normally not necessary to set "
957
  "unless you want it to differ from the panel background"
958
  msgstr ""
959
 
960
- #: pro/admin/settings.pro.php:682
961
  msgid "Menu Item Font Color"
962
  msgstr ""
963
 
964
- #: pro/admin/settings.pro.php:683
965
  msgid "The color of the menu item text."
966
  msgstr ""
967
 
968
- #: pro/admin/settings.pro.php:693
969
  msgid "Menu Item Background Color [Active]"
970
  msgstr ""
971
 
972
- #: pro/admin/settings.pro.php:694
973
  msgid "The color of the menu item background when activated."
974
  msgstr ""
975
 
976
- #: pro/admin/settings.pro.php:702
977
  msgid "Menu Item Font Color [Active]"
978
  msgstr ""
979
 
980
- #: pro/admin/settings.pro.php:703
981
  msgid "The color of the menu item text when activated."
982
  msgstr ""
983
 
984
- #: pro/admin/settings.pro.php:713
985
  msgid "Menu Item Background Color [Current]"
986
  msgstr ""
987
 
988
- #: pro/admin/settings.pro.php:714
989
  msgid "The background color of current menu items."
990
  msgstr ""
991
 
992
- #: pro/admin/settings.pro.php:722
993
  msgid "Menu Item Font Color [Current]"
994
  msgstr ""
995
 
996
- #: pro/admin/settings.pro.php:723
997
  msgid "The font color of current menu items"
998
  msgstr ""
999
 
1000
- #: pro/admin/settings.pro.php:733
1001
  msgid "Menu Item Background Color [Highlight]"
1002
  msgstr ""
1003
 
1004
- #: pro/admin/settings.pro.php:734
1005
  msgid "The background color of highlighted menu items."
1006
  msgstr ""
1007
 
1008
- #: pro/admin/settings.pro.php:742
1009
  msgid "Menu Item Font Color [Highlight]"
1010
  msgstr ""
1011
 
1012
- #: pro/admin/settings.pro.php:743
1013
  msgid "The color of highlighted menu items"
1014
  msgstr ""
1015
 
1016
- #: pro/admin/settings.pro.php:754
1017
  msgid "Menu Item Font Size"
1018
  msgstr ""
1019
 
1020
- #: pro/admin/settings.pro.php:755
1021
  msgid "The size of the menu item text."
1022
  msgstr ""
1023
 
1024
- #: pro/admin/settings.pro.php:763
1025
  msgid "Menu Item Font Weight"
1026
  msgstr ""
1027
 
1028
- #: pro/admin/settings.pro.php:764
1029
  msgid "The weight of the menu item text."
1030
  msgstr ""
1031
 
1032
- #: pro/admin/settings.pro.php:777
1033
  msgid "Menu Item Padding"
1034
  msgstr ""
1035
 
1036
- #: pro/admin/settings.pro.php:778
1037
  msgid "The padding around the menu item text."
1038
  msgstr ""
1039
 
1040
- #: pro/admin/settings.pro.php:786
1041
  msgid "Menu Item Top Border Color"
1042
  msgstr ""
1043
 
1044
- #: pro/admin/settings.pro.php:787
1045
  msgid "The color of the top border of the menu item."
1046
  msgstr ""
1047
 
1048
- #: pro/admin/settings.pro.php:795
1049
  msgid "Menu Item Top Border Color [Active]"
1050
  msgstr ""
1051
 
1052
- #: pro/admin/settings.pro.php:796
1053
  msgid "The color of the top border of an active menu item."
1054
  msgstr ""
1055
 
1056
- #: pro/admin/settings.pro.php:804
1057
  msgid "Menu Item Bottom Border Color"
1058
  msgstr ""
1059
 
1060
- #: pro/admin/settings.pro.php:805
1061
  msgid "The color of the bottom border of the menu item."
1062
  msgstr ""
1063
 
1064
- #: pro/admin/settings.pro.php:814
1065
  msgid "Menu Item Bottom Border Color [Active]"
1066
  msgstr ""
1067
 
1068
- #: pro/admin/settings.pro.php:815
1069
  msgid "The color of the bottom border of the active menu item."
1070
  msgstr ""
1071
 
1072
- #: pro/admin/settings.pro.php:824 pro/admin/settings.pro.php:1000
1073
  msgid "Disable Menu Item Borders"
1074
  msgstr ""
1075
 
1076
- #: pro/admin/settings.pro.php:825 pro/admin/settings.pro.php:1001
1077
  msgid "Remove the borders between menu items."
1078
  msgstr ""
1079
 
1080
- #: pro/admin/settings.pro.php:835
1081
  msgid "Disable Menu Item Text Shadow"
1082
  msgstr ""
1083
 
1084
- #: pro/admin/settings.pro.php:836
1085
  msgid "Remove the text shadow on the menu items."
1086
  msgstr ""
1087
 
1088
- #: pro/admin/settings.pro.php:847
1089
  msgid "Top Level Menu Item Text Transform"
1090
  msgstr ""
1091
 
1092
- #: pro/admin/settings.pro.php:851
1093
  msgid "Default"
1094
  msgstr ""
1095
 
1096
- #: pro/admin/settings.pro.php:852
1097
  msgid "None"
1098
  msgstr ""
1099
 
1100
- #: pro/admin/settings.pro.php:853
1101
  msgid "Uppercase"
1102
  msgstr ""
1103
 
1104
- #: pro/admin/settings.pro.php:868
1105
  msgid "Menu Item Activator Button Background"
1106
  msgstr ""
1107
 
1108
- #: pro/admin/settings.pro.php:869
1109
  msgid "The background color of the button used to open and close the submenus"
1110
  msgstr ""
1111
 
1112
- #: pro/admin/settings.pro.php:877
1113
  msgid "Menu Item Activator Button Background [Active]"
1114
  msgstr ""
1115
 
1116
- #: pro/admin/settings.pro.php:878
1117
  msgid ""
1118
  "The active background color of the button used to open and close the "
1119
  "submenus"
1120
  msgstr ""
1121
 
1122
- #: pro/admin/settings.pro.php:886
1123
  msgid "Menu Item Activator Arrow Color"
1124
  msgstr ""
1125
 
1126
- #: pro/admin/settings.pro.php:887
1127
  msgid "The arrow color of the button used to open and close the submenus"
1128
  msgstr ""
1129
 
1130
- #: pro/admin/settings.pro.php:895
1131
  msgid "Menu Item Activator Arrow Color [Active]"
1132
  msgstr ""
1133
 
1134
- #: pro/admin/settings.pro.php:896
1135
  msgid "The active arrow color of the button used to open and close the submenus"
1136
  msgstr ""
1137
 
1138
- #: pro/admin/settings.pro.php:915
1139
  msgid "Submenu Retractor / Back Button Background"
1140
  msgstr ""
1141
 
1142
- #: pro/admin/settings.pro.php:916
1143
  msgid "The background color of the submenu retractor button"
1144
  msgstr ""
1145
 
1146
- #: pro/admin/settings.pro.php:924
1147
  msgid "Submenu Retractor / Back Button Font Color"
1148
  msgstr ""
1149
 
1150
- #: pro/admin/settings.pro.php:925
1151
  msgid "The font color of the submenu retractor button"
1152
  msgstr ""
1153
 
1154
- #: pro/admin/settings.pro.php:933
1155
  msgid "Submenu Retractor / Back Button Alignment"
1156
  msgstr ""
1157
 
1158
- #: pro/admin/settings.pro.php:934
1159
  msgid "The alignment of the submenu retractor button text"
1160
  msgstr ""
1161
 
1162
- #: pro/admin/settings.pro.php:952
1163
  msgid "Submenu Background Color"
1164
  msgstr ""
1165
 
1166
- #: pro/admin/settings.pro.php:953
1167
  msgid "The background color of the submenu"
1168
  msgstr ""
1169
 
1170
- #: pro/admin/settings.pro.php:962
1171
  msgid "Submenu Item Background Color"
1172
  msgstr ""
1173
 
1174
- #: pro/admin/settings.pro.php:963
1175
  msgid "The background color of the individual submenu items"
1176
  msgstr ""
1177
 
1178
- #: pro/admin/settings.pro.php:972
1179
  msgid "Submenu Item Font Color"
1180
  msgstr ""
1181
 
1182
- #: pro/admin/settings.pro.php:973
1183
  msgid "The font color of the submenu items"
1184
  msgstr ""
1185
 
1186
- #: pro/admin/settings.pro.php:981
1187
  msgid "Submenu Item Top Border Color"
1188
  msgstr ""
1189
 
1190
- #: pro/admin/settings.pro.php:982
1191
  msgid "The color of the submenu item top border"
1192
  msgstr ""
1193
 
1194
- #: pro/admin/settings.pro.php:990
1195
  msgid "Submenu Item Bottom Border Color"
1196
  msgstr ""
1197
 
1198
- #: pro/admin/settings.pro.php:991
1199
  msgid "The color of the bottom border of the submenu items"
1200
  msgstr ""
1201
 
1202
- #: pro/admin/settings.pro.php:1010
1203
  msgid "Submenu Item Font Size"
1204
  msgstr ""
1205
 
1206
- #: pro/admin/settings.pro.php:1011
1207
  msgid "The font size of the submenu items"
1208
  msgstr ""
1209
 
1210
- #: pro/admin/settings.pro.php:1019
1211
  msgid "Submenu Item Font Weight"
1212
  msgstr ""
1213
 
1214
- #: pro/admin/settings.pro.php:1020
1215
  msgid "The font weight of the submenu items"
1216
  msgstr ""
1217
 
1218
- #: pro/admin/settings.pro.php:1036
1219
  msgid "Font Family"
1220
  msgstr ""
1221
 
1222
- #: pro/admin/settings.pro.php:1037
1223
  msgid ""
1224
  "The font family the panel. This should be a system font or else the font "
1225
  "assets should already be loaded on your site, via @font-face or Google "
2
  # This file is distributed under the same license as the ShiftNav Pro - Responsive Mobile Menu package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ShiftNav Pro - Responsive Mobile Menu 1.6.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/shiftnav\n"
7
+ "POT-Creation-Date: 2017-06-25 12:47:42+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
38
  "entirely."
39
  msgstr ""
40
 
41
+ #: admin/settings.config.php:72 pro/admin/settings.pro.php:445
42
  msgid "Edge"
43
  msgstr ""
44
 
46
  msgid "Which edge of the viewport should the ShiftNav panel appear on?"
47
  msgstr ""
48
 
49
+ #: admin/settings.config.php:88 pro/admin/settings.pro.php:469
50
  msgid "Skin"
51
  msgstr ""
52
 
53
+ #: admin/settings.config.php:99 pro/admin/settings.pro.php:522
54
  msgid "Indent Always Visible Submenus"
55
  msgstr ""
56
 
57
+ #: admin/settings.config.php:100 pro/admin/settings.pro.php:523
58
  msgid "Check this to indent submenu items of always-visible submenus"
59
  msgstr ""
60
 
61
+ #: admin/settings.config.php:109 pro/admin/settings.pro.php:542
62
  msgid "Display Site Title"
63
  msgstr ""
64
 
66
  msgid "Display the site title in the menu panel"
67
  msgstr ""
68
 
69
+ #: admin/settings.config.php:119 pro/admin/settings.pro.php:562
70
  msgid "Display Panel Close Button"
71
  msgstr ""
72
 
73
+ #: admin/settings.config.php:120 pro/admin/settings.pro.php:563
74
  msgid "Display an &times; close button in the upper right of the ShiftNav panel"
75
  msgstr ""
76
 
150
  "specific UberMenu ID."
151
  msgstr ""
152
 
153
+ #: admin/settings.config.php:209 pro/admin/settings.pro.php:532
154
  msgid "Toggle Content"
155
  msgstr ""
156
 
643
  msgstr ""
644
 
645
  #: admin/settings.menu.php:340 pro/admin/item.settings.pro.php:47
646
+ #: pro/admin/settings.pro.php:206 pro/admin/settings.pro.php:485
647
  msgid "Always visible"
648
  msgstr ""
649
 
720
  msgstr ""
721
 
722
  #: pro/admin/item.settings.pro.php:48 pro/admin/settings.pro.php:207
723
+ #: pro/admin/settings.pro.php:486
724
  msgid "Accordion"
725
  msgstr ""
726
 
727
  #: pro/admin/item.settings.pro.php:49 pro/admin/settings.pro.php:208
728
+ #: pro/admin/settings.pro.php:487
729
  msgid "Shift"
730
  msgstr ""
731
 
732
+ #: pro/admin/settings.pro.php:202 pro/admin/settings.pro.php:481
733
  msgid "Submenu Type Default"
734
  msgstr ""
735
 
736
+ #: pro/admin/settings.pro.php:203 pro/admin/settings.pro.php:482
737
  msgid ""
738
  "This submenu type will be used by any Menu Item whose Submenu Type is set "
739
  "to \"Menu Default\""
740
  msgstr ""
741
 
742
+ #: pro/admin/settings.pro.php:237 pro/admin/settings.pro.php:497
743
+ msgid "Accordion Toggle Open Icon"
744
+ msgstr ""
745
+
746
+ #: pro/admin/settings.pro.php:238 pro/admin/settings.pro.php:498
747
+ msgid "The icon that, when tapped, will open the accordion submenu"
748
+ msgstr ""
749
+
750
+ #: pro/admin/settings.pro.php:271 pro/admin/settings.pro.php:509
751
+ msgid "Accordion Toggle Close Icon"
752
+ msgstr ""
753
+
754
+ #: pro/admin/settings.pro.php:272 pro/admin/settings.pro.php:510
755
+ msgid "The icon that, when tapped, will close the accordion submenu"
756
+ msgstr ""
757
+
758
+ #: pro/admin/settings.pro.php:285 pro/admin/settings.pro.php:459
759
  msgid "Disable Menu"
760
  msgstr ""
761
 
762
+ #: pro/admin/settings.pro.php:286
763
  msgid ""
764
  "Check this to disable the menu entirely; the panel will still be displayed "
765
  "and can be used for custom content"
766
  msgstr ""
767
 
768
+ #: pro/admin/settings.pro.php:295 pro/admin/settings.pro.php:572
769
  msgid "Top Image"
770
  msgstr ""
771
 
772
+ #: pro/admin/settings.pro.php:305 pro/admin/settings.pro.php:582
773
  msgid "Pad Image"
774
  msgstr ""
775
 
776
+ #: pro/admin/settings.pro.php:306 pro/admin/settings.pro.php:583
777
  msgid ""
778
  "Add padding to align image with menu item text. Uncheck to expand to the "
779
  "edges of the panel."
780
  msgstr ""
781
 
782
+ #: pro/admin/settings.pro.php:315 pro/admin/settings.pro.php:592
783
  msgid "Image Link (URL)"
784
  msgstr ""
785
 
786
+ #: pro/admin/settings.pro.php:316 pro/admin/settings.pro.php:593
787
  msgid "Make the image a link to this URL."
788
  msgstr ""
789
 
790
+ #: pro/admin/settings.pro.php:325 pro/admin/settings.pro.php:602
791
  msgid "Custom Content Before Menu"
792
  msgstr ""
793
 
794
+ #: pro/admin/settings.pro.php:336 pro/admin/settings.pro.php:613
795
  msgid "Custom Content After Menu"
796
  msgstr ""
797
 
798
+ #: pro/admin/settings.pro.php:354
799
  msgid "Toggle Content Left Edge"
800
  msgstr ""
801
 
802
+ #: pro/admin/settings.pro.php:355
803
  msgid ""
804
  "For the Full Bar toggle style, this content will appear at the left edge of "
805
  "the toggle bar, to the right of the toggle icon. To pad your custom "
806
  "content vertically, use the class <code>shiftnav-toggle-main-block</code>."
807
  msgstr ""
808
 
809
+ #: pro/admin/settings.pro.php:366
810
  msgid "Toggle Content Right Edge"
811
  msgstr ""
812
 
813
+ #: pro/admin/settings.pro.php:367
814
  msgid ""
815
  "For the Full Bar toggle style, this content will appear at the right edge "
816
  "of the toggle bar. To pad your custom content vertically, use the class "
817
  "<code>shiftnav-toggle-main-block</code>."
818
  msgstr ""
819
 
820
+ #: pro/admin/settings.pro.php:401
821
  msgid "Integration Code"
822
  msgstr ""
823
 
824
+ #: pro/admin/settings.pro.php:407
825
  msgid "Instance Name"
826
  msgstr ""
827
 
828
+ #: pro/admin/settings.pro.php:416
829
  msgid "Automatically Generate Panel"
830
  msgstr ""
831
 
832
+ #: pro/admin/settings.pro.php:417
833
  msgid ""
834
  "Automatically generate this ShiftNav instance. It'll be added to each page "
835
  "of the site"
836
  msgstr ""
837
 
838
+ #: pro/admin/settings.pro.php:425
839
  msgid "Display Menu"
840
  msgstr ""
841
 
842
+ #: pro/admin/settings.pro.php:435
843
  msgid "Theme Location"
844
  msgstr ""
845
 
846
+ #: pro/admin/settings.pro.php:436
847
  msgid ""
848
  "Select the Theme Location to display. The Menu setting will override this "
849
  "setting if a menu is selected."
850
  msgstr ""
851
 
852
+ #: pro/admin/settings.pro.php:446
853
  msgid "Select which edge of your site to display the menu on"
854
  msgstr ""
855
 
856
+ #: pro/admin/settings.pro.php:460
857
  msgid ""
858
  "Check this to disable the menu entirely; the panel can be used for custom "
859
  "content"
860
  msgstr ""
861
 
862
+ #: pro/admin/settings.pro.php:470
863
  msgid "Select which skin to use for this instance"
864
  msgstr ""
865
 
866
+ #: pro/admin/settings.pro.php:533
867
  msgid ""
868
  "Enter the content to be displayed in the toggle, which you will insert into "
869
  "your template with the integration code at the top of this tab."
870
  msgstr ""
871
 
872
+ #: pro/admin/settings.pro.php:543
873
  msgid "Display the site title in the menu"
874
  msgstr ""
875
 
876
+ #: pro/admin/settings.pro.php:552
877
  msgid "Display Instance Name"
878
  msgstr ""
879
 
880
+ #: pro/admin/settings.pro.php:553
881
  msgid "Display the instance name in the menu"
882
  msgstr ""
883
 
884
+ #: pro/admin/settings.pro.php:641
885
  msgid "Delete Instance"
886
  msgstr ""
887
 
888
+ #: pro/admin/settings.pro.php:642
889
  msgid "Permanently Delete Instance"
890
  msgstr ""
891
 
892
+ #: pro/admin/settings.pro.php:676
893
  msgid "Panel Background Color"
894
  msgstr ""
895
 
896
+ #: pro/admin/settings.pro.php:687
897
  msgid "Panel Default Font Color"
898
  msgstr ""
899
 
900
+ #: pro/admin/settings.pro.php:688
901
  msgid ""
902
  "The default font color for custom content within the panel (menu-specific "
903
  "styles will override this for menu items)"
904
  msgstr ""
905
 
906
+ #: pro/admin/settings.pro.php:703
907
  msgid "Panel Title Font Color"
908
  msgstr ""
909
 
910
+ #: pro/admin/settings.pro.php:704
911
  msgid "The font color for the header/title within the panel."
912
  msgstr ""
913
 
914
+ #: pro/admin/settings.pro.php:714
915
  msgid "Panel Title Font Size"
916
  msgstr ""
917
 
918
+ #: pro/admin/settings.pro.php:715 pro/admin/settings.pro.php:940
919
  msgid "The font size for the header/title within the panel."
920
  msgstr ""
921
 
922
+ #: pro/admin/settings.pro.php:725
923
  msgid "Panel Title Text Alignment"
924
  msgstr ""
925
 
926
+ #: pro/admin/settings.pro.php:726
927
  msgid "The alignment of the text in the header/title within the panel."
928
  msgstr ""
929
 
930
+ #: pro/admin/settings.pro.php:729 pro/admin/settings.pro.php:746
931
+ #: pro/admin/settings.pro.php:859 pro/admin/settings.pro.php:1029
932
+ #: pro/admin/settings.pro.php:1115
933
  msgid "Defaut"
934
  msgstr ""
935
 
936
+ #: pro/admin/settings.pro.php:730 pro/admin/settings.pro.php:1030
937
  msgid "Center"
938
  msgstr ""
939
 
940
+ #: pro/admin/settings.pro.php:731 pro/admin/settings.pro.php:1031
941
  msgid "Left"
942
  msgstr ""
943
 
944
+ #: pro/admin/settings.pro.php:732 pro/admin/settings.pro.php:1032
945
  msgid "Right"
946
  msgstr ""
947
 
948
+ #: pro/admin/settings.pro.php:742
949
  msgid "Panel Title Font Weight"
950
  msgstr ""
951
 
952
+ #: pro/admin/settings.pro.php:743
953
  msgid "The font weight of the text in the header/title within the panel."
954
  msgstr ""
955
 
956
+ #: pro/admin/settings.pro.php:747 pro/admin/settings.pro.php:860
957
+ #: pro/admin/settings.pro.php:1116
958
  msgid "Normal"
959
  msgstr ""
960
 
961
+ #: pro/admin/settings.pro.php:748 pro/admin/settings.pro.php:861
962
+ #: pro/admin/settings.pro.php:1117
963
  msgid "Bold"
964
  msgstr ""
965
 
966
+ #: pro/admin/settings.pro.php:765
967
  msgid "Menu Item Background Color"
968
  msgstr ""
969
 
970
+ #: pro/admin/settings.pro.php:766
971
  msgid ""
972
  "The color of the menu item background. Normally not necessary to set "
973
  "unless you want it to differ from the panel background"
974
  msgstr ""
975
 
976
+ #: pro/admin/settings.pro.php:774
977
  msgid "Menu Item Font Color"
978
  msgstr ""
979
 
980
+ #: pro/admin/settings.pro.php:775
981
  msgid "The color of the menu item text."
982
  msgstr ""
983
 
984
+ #: pro/admin/settings.pro.php:785
985
  msgid "Menu Item Background Color [Active]"
986
  msgstr ""
987
 
988
+ #: pro/admin/settings.pro.php:786
989
  msgid "The color of the menu item background when activated."
990
  msgstr ""
991
 
992
+ #: pro/admin/settings.pro.php:794
993
  msgid "Menu Item Font Color [Active]"
994
  msgstr ""
995
 
996
+ #: pro/admin/settings.pro.php:795
997
  msgid "The color of the menu item text when activated."
998
  msgstr ""
999
 
1000
+ #: pro/admin/settings.pro.php:805
1001
  msgid "Menu Item Background Color [Current]"
1002
  msgstr ""
1003
 
1004
+ #: pro/admin/settings.pro.php:806
1005
  msgid "The background color of current menu items."
1006
  msgstr ""
1007
 
1008
+ #: pro/admin/settings.pro.php:814
1009
  msgid "Menu Item Font Color [Current]"
1010
  msgstr ""
1011
 
1012
+ #: pro/admin/settings.pro.php:815
1013
  msgid "The font color of current menu items"
1014
  msgstr ""
1015
 
1016
+ #: pro/admin/settings.pro.php:825
1017
  msgid "Menu Item Background Color [Highlight]"
1018
  msgstr ""
1019
 
1020
+ #: pro/admin/settings.pro.php:826
1021
  msgid "The background color of highlighted menu items."
1022
  msgstr ""
1023
 
1024
+ #: pro/admin/settings.pro.php:834
1025
  msgid "Menu Item Font Color [Highlight]"
1026
  msgstr ""
1027
 
1028
+ #: pro/admin/settings.pro.php:835
1029
  msgid "The color of highlighted menu items"
1030
  msgstr ""
1031
 
1032
+ #: pro/admin/settings.pro.php:846
1033
  msgid "Menu Item Font Size"
1034
  msgstr ""
1035
 
1036
+ #: pro/admin/settings.pro.php:847
1037
  msgid "The size of the menu item text."
1038
  msgstr ""
1039
 
1040
+ #: pro/admin/settings.pro.php:855
1041
  msgid "Menu Item Font Weight"
1042
  msgstr ""
1043
 
1044
+ #: pro/admin/settings.pro.php:856
1045
  msgid "The weight of the menu item text."
1046
  msgstr ""
1047
 
1048
+ #: pro/admin/settings.pro.php:869
1049
  msgid "Menu Item Padding"
1050
  msgstr ""
1051
 
1052
+ #: pro/admin/settings.pro.php:870
1053
  msgid "The padding around the menu item text."
1054
  msgstr ""
1055
 
1056
+ #: pro/admin/settings.pro.php:878
1057
  msgid "Menu Item Top Border Color"
1058
  msgstr ""
1059
 
1060
+ #: pro/admin/settings.pro.php:879
1061
  msgid "The color of the top border of the menu item."
1062
  msgstr ""
1063
 
1064
+ #: pro/admin/settings.pro.php:887
1065
  msgid "Menu Item Top Border Color [Active]"
1066
  msgstr ""
1067
 
1068
+ #: pro/admin/settings.pro.php:888
1069
  msgid "The color of the top border of an active menu item."
1070
  msgstr ""
1071
 
1072
+ #: pro/admin/settings.pro.php:896
1073
  msgid "Menu Item Bottom Border Color"
1074
  msgstr ""
1075
 
1076
+ #: pro/admin/settings.pro.php:897
1077
  msgid "The color of the bottom border of the menu item."
1078
  msgstr ""
1079
 
1080
+ #: pro/admin/settings.pro.php:906
1081
  msgid "Menu Item Bottom Border Color [Active]"
1082
  msgstr ""
1083
 
1084
+ #: pro/admin/settings.pro.php:907
1085
  msgid "The color of the bottom border of the active menu item."
1086
  msgstr ""
1087
 
1088
+ #: pro/admin/settings.pro.php:916 pro/admin/settings.pro.php:1092
1089
  msgid "Disable Menu Item Borders"
1090
  msgstr ""
1091
 
1092
+ #: pro/admin/settings.pro.php:917 pro/admin/settings.pro.php:1093
1093
  msgid "Remove the borders between menu items."
1094
  msgstr ""
1095
 
1096
+ #: pro/admin/settings.pro.php:927
1097
  msgid "Disable Menu Item Text Shadow"
1098
  msgstr ""
1099
 
1100
+ #: pro/admin/settings.pro.php:928
1101
  msgid "Remove the text shadow on the menu items."
1102
  msgstr ""
1103
 
1104
+ #: pro/admin/settings.pro.php:939
1105
  msgid "Top Level Menu Item Text Transform"
1106
  msgstr ""
1107
 
1108
+ #: pro/admin/settings.pro.php:943
1109
  msgid "Default"
1110
  msgstr ""
1111
 
1112
+ #: pro/admin/settings.pro.php:944
1113
  msgid "None"
1114
  msgstr ""
1115
 
1116
+ #: pro/admin/settings.pro.php:945
1117
  msgid "Uppercase"
1118
  msgstr ""
1119
 
1120
+ #: pro/admin/settings.pro.php:960
1121
  msgid "Menu Item Activator Button Background"
1122
  msgstr ""
1123
 
1124
+ #: pro/admin/settings.pro.php:961
1125
  msgid "The background color of the button used to open and close the submenus"
1126
  msgstr ""
1127
 
1128
+ #: pro/admin/settings.pro.php:969
1129
  msgid "Menu Item Activator Button Background [Active]"
1130
  msgstr ""
1131
 
1132
+ #: pro/admin/settings.pro.php:970
1133
  msgid ""
1134
  "The active background color of the button used to open and close the "
1135
  "submenus"
1136
  msgstr ""
1137
 
1138
+ #: pro/admin/settings.pro.php:978
1139
  msgid "Menu Item Activator Arrow Color"
1140
  msgstr ""
1141
 
1142
+ #: pro/admin/settings.pro.php:979
1143
  msgid "The arrow color of the button used to open and close the submenus"
1144
  msgstr ""
1145
 
1146
+ #: pro/admin/settings.pro.php:987
1147
  msgid "Menu Item Activator Arrow Color [Active]"
1148
  msgstr ""
1149
 
1150
+ #: pro/admin/settings.pro.php:988
1151
  msgid "The active arrow color of the button used to open and close the submenus"
1152
  msgstr ""
1153
 
1154
+ #: pro/admin/settings.pro.php:1007
1155
  msgid "Submenu Retractor / Back Button Background"
1156
  msgstr ""
1157
 
1158
+ #: pro/admin/settings.pro.php:1008
1159
  msgid "The background color of the submenu retractor button"
1160
  msgstr ""
1161
 
1162
+ #: pro/admin/settings.pro.php:1016
1163
  msgid "Submenu Retractor / Back Button Font Color"
1164
  msgstr ""
1165
 
1166
+ #: pro/admin/settings.pro.php:1017
1167
  msgid "The font color of the submenu retractor button"
1168
  msgstr ""
1169
 
1170
+ #: pro/admin/settings.pro.php:1025
1171
  msgid "Submenu Retractor / Back Button Alignment"
1172
  msgstr ""
1173
 
1174
+ #: pro/admin/settings.pro.php:1026
1175
  msgid "The alignment of the submenu retractor button text"
1176
  msgstr ""
1177
 
1178
+ #: pro/admin/settings.pro.php:1044
1179
  msgid "Submenu Background Color"
1180
  msgstr ""
1181
 
1182
+ #: pro/admin/settings.pro.php:1045
1183
  msgid "The background color of the submenu"
1184
  msgstr ""
1185
 
1186
+ #: pro/admin/settings.pro.php:1054
1187
  msgid "Submenu Item Background Color"
1188
  msgstr ""
1189
 
1190
+ #: pro/admin/settings.pro.php:1055
1191
  msgid "The background color of the individual submenu items"
1192
  msgstr ""
1193
 
1194
+ #: pro/admin/settings.pro.php:1064
1195
  msgid "Submenu Item Font Color"
1196
  msgstr ""
1197
 
1198
+ #: pro/admin/settings.pro.php:1065
1199
  msgid "The font color of the submenu items"
1200
  msgstr ""
1201
 
1202
+ #: pro/admin/settings.pro.php:1073
1203
  msgid "Submenu Item Top Border Color"
1204
  msgstr ""
1205
 
1206
+ #: pro/admin/settings.pro.php:1074
1207
  msgid "The color of the submenu item top border"
1208
  msgstr ""
1209
 
1210
+ #: pro/admin/settings.pro.php:1082
1211
  msgid "Submenu Item Bottom Border Color"
1212
  msgstr ""
1213
 
1214
+ #: pro/admin/settings.pro.php:1083
1215
  msgid "The color of the bottom border of the submenu items"
1216
  msgstr ""
1217
 
1218
+ #: pro/admin/settings.pro.php:1102
1219
  msgid "Submenu Item Font Size"
1220
  msgstr ""
1221
 
1222
+ #: pro/admin/settings.pro.php:1103
1223
  msgid "The font size of the submenu items"
1224
  msgstr ""
1225
 
1226
+ #: pro/admin/settings.pro.php:1111
1227
  msgid "Submenu Item Font Weight"
1228
  msgstr ""
1229
 
1230
+ #: pro/admin/settings.pro.php:1112
1231
  msgid "The font weight of the submenu items"
1232
  msgstr ""
1233
 
1234
+ #: pro/admin/settings.pro.php:1128
1235
  msgid "Font Family"
1236
  msgstr ""
1237
 
1238
+ #: pro/admin/settings.pro.php:1129
1239
  msgid ""
1240
  "The font family the panel. This should be a system font or else the font "
1241
  "assets should already be loaded on your site, via @font-face or Google "
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://shiftnav.io/pro
4
  Tags: responsive, menu, navigation, mobile, off-canvas, app, slide, sidebar
5
  Requires at least: 4.0
6
  Tested up to: 4.8
7
- Stable tag: 1.6
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -56,6 +56,11 @@ Please see the [ShiftNav Quick Setup Guide](http://sevenspark.com/docs/shiftnav-
56
 
57
  == Changelog ==
58
 
 
 
 
 
 
59
 
60
  = 1.6 =
61
 
4
  Tags: responsive, menu, navigation, mobile, off-canvas, app, slide, sidebar
5
  Requires at least: 4.0
6
  Tested up to: 4.8
7
+ Stable tag: 1.6.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
56
 
57
  == Changelog ==
58
 
59
+ = 1.6.1 =
60
+
61
+ * [Pro] Feature: Setting to choose the open and close icons for accordion menus
62
+ * Enhancement: Add body padding-top via a CSS style tag rather than directly applying styling to the body node, to improve compatibility with other themes/plugins controlling the body tag
63
+
64
 
65
  = 1.6 =
66
 
shiftnav-responsive-mobile-menu.php CHANGED
@@ -6,7 +6,7 @@ Description: An off-canvas mobile menu for WordPress
6
  Author: Chris Mavricos, SevenSpark
7
  Author URI: http://sevenspark.com
8
  License: GPLv2
9
- Version: 1.6
10
  */
11
 
12
  /* Copyright 2014-2017 Chris Mavricos, SevenSpark */
@@ -53,7 +53,7 @@ final class ShiftNav {
53
  // Plugin version
54
 
55
  if( ! defined( 'SHIFTNAV_VERSION' ) )
56
- define( 'SHIFTNAV_VERSION', '1.6' );
57
 
58
  if( ! defined( 'SHIFTNAV_PRO' ) )
59
  define( 'SHIFTNAV_PRO', false );
6
  Author: Chris Mavricos, SevenSpark
7
  Author URI: http://sevenspark.com
8
  License: GPLv2
9
+ Version: 1.6.1
10
  */
11
 
12
  /* Copyright 2014-2017 Chris Mavricos, SevenSpark */
53
  // Plugin version
54
 
55
  if( ! defined( 'SHIFTNAV_VERSION' ) )
56
+ define( 'SHIFTNAV_VERSION', '1.6.1' );
57
 
58
  if( ! defined( 'SHIFTNAV_PRO' ) )
59
  define( 'SHIFTNAV_PRO', false );