Version Description
Notification bar fix
Download this release
Release Info
Developer | galdub |
Plugin | myStickymenu |
Version | 2.3.9 |
Comparing to | |
See all releases |
Code changes from version 2.3.8 to 2.3.9
- mystickymenu.php +2 -2
- readme.txt +3 -1
- welcome-bar.php +14 -11
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 and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
|
6 |
-
Version: 2.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.3.
|
16 |
require_once("mystickymenu-fonts.php");
|
17 |
require_once("welcome-bar.php");
|
18 |
|
3 |
Plugin Name: myStickymenu
|
4 |
Plugin URI: https://premio.io/
|
5 |
Description: Simple sticky (fixed on top) menu implementation for navigation menu and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
|
6 |
+
Version: 2.3.9
|
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.3.9' );
|
16 |
require_once("mystickymenu-fonts.php");
|
17 |
require_once("welcome-bar.php");
|
18 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: tomeraharon, galdub, premio
|
|
3 |
Tags:menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar, floating bar, notification bar
|
4 |
Requires at least: 3.5.1
|
5 |
Tested up to: 5.4
|
6 |
-
Stable tag: 2.3.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
This sticky menu plugin will make your menu or header stick to the top of page, when scrolled down and up. Also create a beautiful welcome notification bar with it.
|
@@ -263,6 +263,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
|
|
263 |
|
264 |
|
265 |
== Changelog ==
|
|
|
|
|
266 |
= 2.3.8 =
|
267 |
You can add custom HTML to your notification bar now
|
268 |
= 2.3.7 =
|
3 |
Tags:menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar, floating bar, notification bar
|
4 |
Requires at least: 3.5.1
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 2.3.9
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
This sticky menu plugin will make your menu or header stick to the top of page, when scrolled down and up. Also create a beautiful welcome notification bar with it.
|
263 |
|
264 |
|
265 |
== Changelog ==
|
266 |
+
= 2.3.9 =
|
267 |
+
Notification bar fix
|
268 |
= 2.3.8 =
|
269 |
You can add custom HTML to your notification bar now
|
270 |
= 2.3.7 =
|
welcome-bar.php
CHANGED
@@ -936,7 +936,7 @@ function mysticky_welcome_bar_frontend(){
|
|
936 |
<script>
|
937 |
|
938 |
jQuery(document).ready(function($){
|
939 |
-
var mysticky_welcomebar_height = jQuery( '.mysticky-welcomebar-fixed' ).
|
940 |
if( jQuery( '.mysticky-welcomebar-fixed' ).data('position') == 'top' ) {
|
941 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
|
942 |
} else {
|
@@ -961,7 +961,7 @@ function mysticky_welcome_bar_frontend(){
|
|
961 |
if ( $( window ).width() > 767 ) {
|
962 |
var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
|
963 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
964 |
-
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).
|
965 |
setTimeout(function(){
|
966 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
967 |
if ( welcombar_position == 'top' ) {
|
@@ -986,7 +986,7 @@ function mysticky_welcome_bar_frontend(){
|
|
986 |
if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
|
987 |
var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
|
988 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
989 |
-
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).
|
990 |
setTimeout(function(){
|
991 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
992 |
if ( welcombar_position == 'top' ) {
|
@@ -1022,7 +1022,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1022 |
if ( after_trigger == 'after_a_few_seconds' ) {
|
1023 |
var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
|
1024 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1025 |
-
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).
|
1026 |
if ( $( window ).width() < 767 ) {
|
1027 |
if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
|
1028 |
setTimeout(function(){
|
@@ -1076,7 +1076,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1076 |
var welcomebar_storage = null;
|
1077 |
}
|
1078 |
if ( welcomebar_storage === null ){
|
1079 |
-
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).
|
1080 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1081 |
if ( welcombar_position == 'top' ) {
|
1082 |
$( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
|
@@ -1085,7 +1085,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1085 |
var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
|
1086 |
var after_scroll_val = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec');
|
1087 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1088 |
-
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).
|
1089 |
if( scroll > after_scroll_val ) {
|
1090 |
if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
|
1091 |
if ( $( window ).width() > 767 ) {
|
@@ -1139,7 +1139,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1139 |
}
|
1140 |
}
|
1141 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1142 |
-
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).
|
1143 |
jQuery( '.mysticky-welcomebar-fixed' ).slideUp( 'slow' );
|
1144 |
if ( welcombar_position == 'top' ) {
|
1145 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
|
@@ -1163,7 +1163,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1163 |
var mystickyelements_show = jQuery( '.mystickyelements-fixed' ).length;
|
1164 |
if( mystickyelements_show ) {
|
1165 |
var welcombar_position = jQuery( '.mysticky-welcomebar-fixed' ).data('position');
|
1166 |
-
var welcombar_height = jQuery( '.mysticky-welcomebar-fixed' ).
|
1167 |
var mystickyelements_height = jQuery( '.mystickyelements-fixed' ).height();
|
1168 |
var mystickyelements_total_height = welcombar_height + mystickyelements_height;
|
1169 |
if ( jQuery( window ).width() <= 1024 && jQuery( '.mystickyelements-fixed' ).hasClass( 'mystickyelements-position-mobile-top' ) ) {
|
@@ -1213,8 +1213,13 @@ function mysticky_welcome_bar_frontend(){
|
|
1213 |
|
1214 |
</script>
|
1215 |
<style>
|
|
|
|
|
|
|
|
|
|
|
1216 |
.mysticky-welcomebar-fixed {
|
1217 |
-
height: 60px;
|
1218 |
background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
|
1219 |
font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
|
1220 |
position: fixed;
|
@@ -1706,8 +1711,6 @@ function mysticky_welcome_bar_frontend(){
|
|
1706 |
}
|
1707 |
@media only screen and (max-width: 480px) {
|
1708 |
.mysticky-welcomebar-fixed {
|
1709 |
-
height: auto;
|
1710 |
-
min-height: 60px;
|
1711 |
padding: 15px 36px 35px 10px;
|
1712 |
}
|
1713 |
.mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
|
936 |
<script>
|
937 |
|
938 |
jQuery(document).ready(function($){
|
939 |
+
var mysticky_welcomebar_height = jQuery( '.mysticky-welcomebar-fixed' ).outerHeight();
|
940 |
if( jQuery( '.mysticky-welcomebar-fixed' ).data('position') == 'top' ) {
|
941 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
|
942 |
} else {
|
961 |
if ( $( window ).width() > 767 ) {
|
962 |
var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
|
963 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
964 |
+
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).outerHeight();
|
965 |
setTimeout(function(){
|
966 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
967 |
if ( welcombar_position == 'top' ) {
|
986 |
if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
|
987 |
var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
|
988 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
989 |
+
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).outerHeight();
|
990 |
setTimeout(function(){
|
991 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
992 |
if ( welcombar_position == 'top' ) {
|
1022 |
if ( after_trigger == 'after_a_few_seconds' ) {
|
1023 |
var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
|
1024 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1025 |
+
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1026 |
if ( $( window ).width() < 767 ) {
|
1027 |
if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
|
1028 |
setTimeout(function(){
|
1076 |
var welcomebar_storage = null;
|
1077 |
}
|
1078 |
if ( welcomebar_storage === null ){
|
1079 |
+
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1080 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1081 |
if ( welcombar_position == 'top' ) {
|
1082 |
$( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
|
1085 |
var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
|
1086 |
var after_scroll_val = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec');
|
1087 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1088 |
+
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1089 |
if( scroll > after_scroll_val ) {
|
1090 |
if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
|
1091 |
if ( $( window ).width() > 767 ) {
|
1139 |
}
|
1140 |
}
|
1141 |
var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
|
1142 |
+
var welcombar_height = $( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1143 |
jQuery( '.mysticky-welcomebar-fixed' ).slideUp( 'slow' );
|
1144 |
if ( welcombar_position == 'top' ) {
|
1145 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
|
1163 |
var mystickyelements_show = jQuery( '.mystickyelements-fixed' ).length;
|
1164 |
if( mystickyelements_show ) {
|
1165 |
var welcombar_position = jQuery( '.mysticky-welcomebar-fixed' ).data('position');
|
1166 |
+
var welcombar_height = jQuery( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1167 |
var mystickyelements_height = jQuery( '.mystickyelements-fixed' ).height();
|
1168 |
var mystickyelements_total_height = welcombar_height + mystickyelements_height;
|
1169 |
if ( jQuery( window ).width() <= 1024 && jQuery( '.mystickyelements-fixed' ).hasClass( 'mystickyelements-position-mobile-top' ) ) {
|
1213 |
|
1214 |
</script>
|
1215 |
<style>
|
1216 |
+
.mysticky-welcomebar-fixed , .mysticky-welcomebar-fixed * {
|
1217 |
+
-webkit-box-sizing: border-box;
|
1218 |
+
-moz-box-sizing: border-box;
|
1219 |
+
box-sizing: border-box;
|
1220 |
+
}
|
1221 |
.mysticky-welcomebar-fixed {
|
1222 |
+
min-height: 60px;
|
1223 |
background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
|
1224 |
font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
|
1225 |
position: fixed;
|
1711 |
}
|
1712 |
@media only screen and (max-width: 480px) {
|
1713 |
.mysticky-welcomebar-fixed {
|
|
|
|
|
1714 |
padding: 15px 36px 35px 10px;
|
1715 |
}
|
1716 |
.mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
|