myStickymenu - Version 2.1.4

Version Description

Fixed some page builders issues

Download this release

Release Info

Developer galdub
Plugin Icon 128x128 myStickymenu
Version 2.1.4
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.4

js/mystickymenu.js CHANGED
@@ -422,6 +422,8 @@
422
423
if (mysticky_disable_down == "on") {
424
wrappernav.style.top = "-" + (mydivHeight + adminBarHeight ) + "px";
425
}
426
427
@@ -465,6 +467,9 @@
465
466
if (mysticky_disable_down == "on") {
467
wrappernav.style.top = adminBarHeight + "px";
468
}
469
470
}
422
423
if (mysticky_disable_down == "on") {
424
wrappernav.style.top = "-" + (mydivHeight + adminBarHeight ) + "px";
425
+ jQuery('#mysticky-nav ' + option.mystickyClass+'.elementor-sticky').hide();
426
+ //jQuery('#mysticky-nav ' + option.mystickyClass).css( 'top' , "-" + (mydivHeight + adminBarHeight ) + "px");
427
}
428
429
467
468
if (mysticky_disable_down == "on") {
469
wrappernav.style.top = adminBarHeight + "px";
470
+ jQuery('#mysticky-nav '+ option.mystickyClass).css( 'width' , mydivWidth + "px");
471
+ jQuery('#mysticky-nav ' + option.mystickyClass+'.elementor-sticky').show();
472
+
473
}
474
475
}
js/mystickymenu.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){"use strict";jQuery(document).ready(function(e){if(jQuery.browser.mobile&&!option.device_mobile)return!1;if(!jQuery.browser.mobile&&!option.device_desktop)return!1;if(e(option.mystickyClass)[0]){var t,i=document.querySelector(option.mystickyClass),o=parseInt(option.disableWidth),s=parseInt(option.disableLargeWidth),n=option.mystickyTransition,d=parseInt(option.activationHeight),r=option.adminBar,a=option.mysticky_disable_down;E();for(var l=i.parentNode,c=document.createElement("div"),p=0,m=0;m<l.childNodes.length;m++)if(l.childNodes[m]==i){p=m;break}c.id="mysticky-wrap",c.appendChild(i),l.insertBefore(c,l.childNodes[p]);var f,y,u=i.parentNode,w=document.createElement("div");if(w.id="mysticky-nav",u.replaceChild(w,i),w.appendChild(i),"0"==d)var h=!0;C(),B();var v,x=0;S(),H();var L=d;N(),I();var g="scrollY"in window,b=0;document.addEventListener("scroll",function(e){if(t>=o&&(0==s||t<=s)){var r=g?window.scrollY:document.documentElement.scrollTop;if(0<=r){if(r>=b)r>=d&&i.classList.add("myfixed"),r>=d&&w.classList.add("wrapfixed"),r>=d&&(c.style.height=f+"px"),r>=d&&(i.style.width=v+"px"),"on"==n&&("false"==a&&(w.style.top=r>=d+y-x?x+"px":"-"+y+"px"),f>y&&"false"==a&&(r<d+y&&(w.style.top="-"+f+"px"),r>=d+y&&(w.style.top=x+"px"))),w.classList.add("down"),w.classList.remove("up"),"on"==a&&(w.style.top="-"+(f+x)+"px");else{var l=g?window.scrollY:document.documentElement.scrollTop;!(l>L)&&(c.style.height=""),!(l>L)&&(i.style.width=""),"on"==n?(!(l>L)&&i.classList.remove("myfixed"),!(l>L)&&w.classList.remove("wrapfixed"),"false"==a&&l<L+y+200-x&&(w.style.top="-"+y+"px")):(!(l>L)&&i.classList.remove("myfixed"),!(l>L)&&w.classList.remove("wrapfixed")),w.classList.remove("down"),w.classList.add("up"),"on"==a&&(w.style.top=x+"px")}b=r}else w.classList.remove("up")}});var k=e(window).width();window.addEventListener("resize",W),window.addEventListener("orientationchange",W)}else console.log("myStickymenu: Entered Sticky Class does not exist, change it in Dashboard / Settings / myStickymenu / Sticky Class. ");function E(e){e=window;var i="inner";"innerWidth"in window||(i="client",e=document.documentElement||document.body),t=e[i+"Width"]}function C(){f=i.offsetHeight,parseInt(e(i).css("marginBottom"))>0&&(c.style.marginBottom=e(i).css("marginBottom")),"0"==f&&e(i).children().filter(":visible").each(function(){f=e(this).outerHeight(!0)})}function B(){i.classList.add("myfixed"),"0"==(y=e(".myfixed").outerHeight())&&e(".myfixed").children().filter(":visible").each(function(){y=e(this).outerHeight(!0)}),i.classList.remove("myfixed")}function S(){x="true"==r&&t>600&&e("#wpadminbar")[0]?e("#wpadminbar").height():0,w.style.top="on"==n?"-"+y+"px":x+"px"}function H(){var t=e(i)[0].getBoundingClientRect();v=t.width}function N(){1==h&&("on"==n&&(d=e(i).offset().top+f-x,L=e(i).offset().top+f-x,"on"==a&&(L=e(i).offset().top-x)),"fade"==n&&("false"==a&&(d=e(i).offset().top-x,L=e(i).offset().top-x),"on"==a&&(d=e(i).offset().top-x+f,L=e(i).offset().top-x)))}function I(){1==h&&f>y&&("on"==n?(L=d,"on"==a&&(L=d-y)):(d=f,L=f))}function W(){e(window).width()!=k&&(w.classList.remove("up"),w.classList.remove("down"),e(".wrapfixed")[0]?(i.classList.remove("myfixed"),w.classList.remove("wrapfixed")):(C(),i.style.removeProperty("width"),H()),E(),S(),B(),N(),I())}})}();
1
+ !function(e){"use strict";jQuery(document).ready(function(e){if(jQuery.browser.mobile&&!option.device_mobile)return!1;if(!jQuery.browser.mobile&&!option.device_desktop)return!1;if(e(option.mystickyClass)[0]){var t,i=document.querySelector(option.mystickyClass),o=parseInt(option.disableWidth),s=parseInt(option.disableLargeWidth),n=option.mystickyTransition,d=parseInt(option.activationHeight),r=option.adminBar,a=option.mysticky_disable_down;C();for(var c=i.parentNode,l=document.createElement("div"),m=0,p=0;p<c.childNodes.length;p++)if(c.childNodes[p]==i){m=p;break}l.id="mysticky-wrap",l.appendChild(i),c.insertBefore(l,c.childNodes[m]);var y,f,u=i.parentNode,h=document.createElement("div");if(h.id="mysticky-nav",u.replaceChild(h,i),h.appendChild(i),"0"==d)var w=!0;E(),j();var v,x=0;B(),Q();var L=d;S(),H();var k="scrollY"in window,g=0;document.addEventListener("scroll",function(e){if(t>=o&&(0==s||t<=s)){var r=k?window.scrollY:document.documentElement.scrollTop;if(0<=r){if(r>=g)r>=d&&i.classList.add("myfixed"),r>=d&&h.classList.add("wrapfixed"),r>=d&&(l.style.height=y+"px"),r>=d&&(i.style.width=v+"px"),"on"==n&&("false"==a&&(h.style.top=r>=d+f-x?x+"px":"-"+f+"px"),y>f&&"false"==a&&(r<d+f&&(h.style.top="-"+y+"px"),r>=d+f&&(h.style.top=x+"px"))),h.classList.add("down"),h.classList.remove("up"),"on"==a&&(h.style.top="-"+(y+x)+"px",jQuery("#mysticky-nav "+option.mystickyClass+".elementor-sticky").hide());else{var c=k?window.scrollY:document.documentElement.scrollTop;!(c>L)&&(l.style.height=""),!(c>L)&&(i.style.width=""),"on"==n?(!(c>L)&&i.classList.remove("myfixed"),!(c>L)&&h.classList.remove("wrapfixed"),"false"==a&&c<L+f+200-x&&(h.style.top="-"+f+"px")):(!(c>L)&&i.classList.remove("myfixed"),!(c>L)&&h.classList.remove("wrapfixed")),h.classList.remove("down"),h.classList.add("up"),"on"==a&&(h.style.top=x+"px",jQuery("#mysticky-nav "+option.mystickyClass).css("width",v+"px"),jQuery("#mysticky-nav "+option.mystickyClass+".elementor-sticky").show())}g=r}else h.classList.remove("up")}});var b=e(window).width();window.addEventListener("resize",N),window.addEventListener("orientationchange",N)}else console.log("myStickymenu: Entered Sticky Class does not exist, change it in Dashboard / Settings / myStickymenu / Sticky Class. ");function C(e){e=window;var i="inner";"innerWidth"in window||(i="client",e=document.documentElement||document.body),t=e[i+"Width"]}function E(){y=i.offsetHeight,parseInt(e(i).css("marginBottom"))>0&&(l.style.marginBottom=e(i).css("marginBottom")),"0"==y&&e(i).children().filter(":visible").each(function(){y=e(this).outerHeight(!0)})}function j(){i.classList.add("myfixed"),"0"==(f=e(".myfixed").outerHeight())&&e(".myfixed").children().filter(":visible").each(function(){f=e(this).outerHeight(!0)}),i.classList.remove("myfixed")}function B(){x="true"==r&&t>600&&e("#wpadminbar")[0]?e("#wpadminbar").height():0,h.style.top="on"==n?"-"+f+"px":x+"px"}function Q(){var t=e(i)[0].getBoundingClientRect();v=t.width}function S(){1==w&&("on"==n&&(d=e(i).offset().top+y-x,L=e(i).offset().top+y-x,"on"==a&&(L=e(i).offset().top-x)),"fade"==n&&("false"==a&&(d=e(i).offset().top-x,L=e(i).offset().top-x),"on"==a&&(d=e(i).offset().top-x+y,L=e(i).offset().top-x)))}function H(){1==w&&y>f&&("on"==n?(L=d,"on"==a&&(L=d-f)):(d=y,L=y))}function N(){e(window).width()!=b&&(h.classList.remove("up"),h.classList.remove("down"),e(".wrapfixed")[0]?(i.classList.remove("myfixed"),h.classList.remove("wrapfixed")):(E(),i.style.removeProperty("width"),Q()),C(),B(),j(),S(),H())}})}();
mystickymenu.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: myStickymenu
4
Plugin URI: https://premio.io/
5
Description: Simple sticky (fixed on top) menu implementation for navigation menu. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
- Version: 2.1.3
7
Author: Premio
8
Author URI: https://premio.io/downloads/mystickymenu/
9
Text Domain: mystickymenu
@@ -12,7 +12,7 @@ License: GPLv2 or later
12
*/
13
14
defined('ABSPATH') or die("Cannot access pages directly.");
15
- define( 'MYSTICKY_VERSION', '2.1.3' );
16
17
class MyStickyMenuBackend
18
{
3
Plugin Name: myStickymenu
4
Plugin URI: https://premio.io/
5
Description: Simple sticky (fixed on top) menu implementation for navigation menu. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
+ Version: 2.1.4
7
Author: Premio
8
Author URI: https://premio.io/downloads/mystickymenu/
9
Text Domain: mystickymenu
12
*/
13
14
defined('ABSPATH') or die("Cannot access pages directly.");
15
+ define( 'MYSTICKY_VERSION', '2.1.4' );
16
17
class MyStickyMenuBackend
18
{
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
Contributors: tomeraharon, galdub, premio
3
Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu
4
Requires at least: 3.5.1
5
- Tested up to: 5.0
6
- Stable tag: 2.1.3
7
License: GPLv2 or later
8
9
This sticky menu plugin will make your menu or header stick to the top of page, after desired number of pixels when scrolled down and up.
@@ -24,6 +24,8 @@ The sticky header function is localized (multi language support) and responsive
24
25
My Sticky Menu plugin is originally designed for Twenty Thirteen template but should work on any theme, like: OceanWP, Nirvana Template, Travelify, Twenty Sixteen, Twenty Ten, Twenty Eleven, Max Magazine, Graduate, Lawyer theme, Spacious, Suits and more.
26
27
= WITH MY STICKY MENU YOU CAN: =
28
* Show sticky header on scroll down/up
29
* Fade or slide effect
@@ -214,6 +216,8 @@ Just follow our <a href="https://premio.io/wordpress-premio-pro-version-installa
214
215
216
== Changelog ==
217
= 2.1.3 =
218
Fixed variable output warnings bugs
219
= 2.1.2 =
2
Contributors: tomeraharon, galdub, premio
3
Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu
4
Requires at least: 3.5.1
5
+ Tested up to: 5.2
6
+ Stable tag: 2.1.4
7
License: GPLv2 or later
8
9
This sticky menu plugin will make your menu or header stick to the top of page, after desired number of pixels when scrolled down and up.
24
25
My Sticky Menu plugin is originally designed for Twenty Thirteen template but should work on any theme, like: OceanWP, Nirvana Template, Travelify, Twenty Sixteen, Twenty Ten, Twenty Eleven, Max Magazine, Graduate, Lawyer theme, Spacious, Suits and more.
26
27
+ My Sticky Menu is tested and compatible with Elementor website builder, Divi, WPBakery, Gutenberg, Visual composer, Beaver and other WordPress website builders.
28
+
29
= WITH MY STICKY MENU YOU CAN: =
30
* Show sticky header on scroll down/up
31
* Fade or slide effect
216
217
218
== Changelog ==
219
+ = 2.1.4 =
220
+ Fixed some page builders issues
221
= 2.1.3 =
222
Fixed variable output warnings bugs
223
= 2.1.2 =