Version Description
Fixed notification bar & WordPress admin panel bar overlap bug
Download this release
Release Info
Developer | galdub |
Plugin | myStickymenu |
Version | 2.5.5 |
Comparing to | |
See all releases |
Code changes from version 2.5.4 to 2.5.5
- mystickymenu.php +2 -2
- readme.txt +3 -1
- welcome-bar.php +32 -12
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.5.
|
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.5.
|
16 |
define('MYSTICKYMENU_URL', plugins_url('/', __FILE__)); // Define Plugin URL
|
17 |
define('MYSTICKYMENU_PATH', plugin_dir_path(__FILE__)); // Define Plugin Directory Path
|
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.5.5
|
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.5.5' );
|
16 |
define('MYSTICKYMENU_URL', plugins_url('/', __FILE__)); // Define Plugin URL
|
17 |
define('MYSTICKYMENU_PATH', plugin_dir_path(__FILE__)); // Define Plugin Directory Path
|
18 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: tomeraharon, galdub, premio
|
|
3 |
Tags:floating bar, notification bar, 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
|
4 |
Requires at least: 3.5.1
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 2.5.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Create a beautiful welcome notification bar. This sticky menu plugin will also make your menu or header stick to the top of page, when scrolled down and up.
|
@@ -268,6 +268,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
|
|
268 |
|
269 |
|
270 |
== Changelog ==
|
|
|
|
|
271 |
= 2.5.4 =
|
272 |
Poptin support was added, you can now launch Poptin pop ups
|
273 |
= 2.5.3 =
|
3 |
Tags:floating bar, notification bar, 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
|
4 |
Requires at least: 3.5.1
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 2.5.5
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Create a beautiful welcome notification bar. This sticky menu plugin will also make your menu or header stick to the top of page, when scrolled down and up.
|
268 |
|
269 |
|
270 |
== Changelog ==
|
271 |
+
= 2.5.5 =
|
272 |
+
Fixed notification bar & WordPress admin panel bar overlap bug
|
273 |
= 2.5.4 =
|
274 |
Poptin support was added, you can now launch Poptin pop ups
|
275 |
= 2.5.3 =
|
welcome-bar.php
CHANGED
@@ -1033,7 +1033,11 @@ function mysticky_welcome_bar_frontend(){
|
|
1033 |
<script>
|
1034 |
|
1035 |
jQuery(document).ready(function($){
|
1036 |
-
var
|
|
|
|
|
|
|
|
|
1037 |
if( jQuery( '.mysticky-welcomebar-fixed' ).data('position') == 'top' ) {
|
1038 |
jQuery( '.mysticky-welcomebar-entry-effect-slide-in.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
|
1039 |
} else {
|
@@ -1068,9 +1072,10 @@ function mysticky_welcome_bar_frontend(){
|
|
1068 |
setTimeout(function(){
|
1069 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1070 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1071 |
-
if ( welcombar_position == 'top' ) {
|
|
|
1072 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1073 |
-
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top',
|
1074 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1075 |
$( 'html' ).css( 'margin-bottom', '' );
|
1076 |
jQuery( '#mysticky_divi_style' ).remove();
|
@@ -1100,9 +1105,9 @@ function mysticky_welcome_bar_frontend(){
|
|
1100 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1101 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1102 |
jQuery( '#mysticky_divi_style' ).remove();
|
1103 |
-
jQuery( '.et_fixed_nav #top-header' ).css( 'top', '' );
|
1104 |
if ( welcombar_position == 'top' ) {
|
1105 |
-
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top',
|
1106 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1107 |
$( 'html' ).css( 'margin-bottom', '' );
|
1108 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
@@ -1149,7 +1154,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1149 |
jQuery( '#mysticky_divi_style' ).remove();
|
1150 |
jQuery( '.et_fixed_nav #top-header' ).css( 'top', '' );
|
1151 |
if ( welcombar_position == 'top' ) {
|
1152 |
-
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top',
|
1153 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1154 |
$( 'html' ).css( 'margin-bottom', '' );
|
1155 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
@@ -1168,7 +1173,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1168 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1169 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1170 |
if ( welcombar_position == 'top' ) {
|
1171 |
-
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top',
|
1172 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1173 |
$( 'html' ).css( 'margin-bottom', '' );
|
1174 |
jQuery( '#mysticky_divi_style' ).remove();
|
@@ -1192,7 +1197,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1192 |
}
|
1193 |
} );
|
1194 |
|
1195 |
-
jQuery(window).on( 'scroll', function(){
|
1196 |
if( welcombar_aftersubmission == 'dont_show_welcomebar' ){
|
1197 |
var welcomebar_storage = localStorage.getItem("welcomebar_close");
|
1198 |
} else if( welcombar_aftersubmission == 'show_welcomebar_next_visit' ) {
|
@@ -1219,7 +1224,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1219 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1220 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1221 |
if ( welcombar_position == 'top' ) {
|
1222 |
-
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top',
|
1223 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1224 |
$( 'html' ).css( 'margin-bottom', '' );
|
1225 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
@@ -1237,7 +1242,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1237 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1238 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1239 |
if ( welcombar_position == 'top' ) {
|
1240 |
-
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top',
|
1241 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1242 |
$( 'html' ).css( 'margin-bottom', '' );
|
1243 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
@@ -1293,9 +1298,24 @@ function mysticky_welcome_bar_frontend(){
|
|
1293 |
});
|
1294 |
function mystickyelements_present() {
|
1295 |
var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
|
1296 |
-
var mystickyelements_show = jQuery( '.mystickyelements-fixed' ).length;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1297 |
if( mystickyelements_show ) {
|
1298 |
-
|
1299 |
var welcombar_height = jQuery( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1300 |
var mystickyelements_height = jQuery( '.mystickyelements-fixed' ).height();
|
1301 |
var mystickyelements_total_height = welcombar_height + mystickyelements_height;
|
1033 |
<script>
|
1034 |
|
1035 |
jQuery(document).ready(function($){
|
1036 |
+
var adminBarHeight = 0;
|
1037 |
+
if ( $("#wpadminbar").length != 0 ){
|
1038 |
+
var adminBarHeight = $('#wpadminbar').height();
|
1039 |
+
}
|
1040 |
+
var mysticky_welcomebar_height = adminBarHeight + jQuery( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1041 |
if( jQuery( '.mysticky-welcomebar-fixed' ).data('position') == 'top' ) {
|
1042 |
jQuery( '.mysticky-welcomebar-entry-effect-slide-in.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
|
1043 |
} else {
|
1072 |
setTimeout(function(){
|
1073 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1074 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1075 |
+
if ( welcombar_position == 'top' ) {
|
1076 |
+
|
1077 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1078 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', (adminBarHeight + 0) + 'px' );
|
1079 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1080 |
$( 'html' ).css( 'margin-bottom', '' );
|
1081 |
jQuery( '#mysticky_divi_style' ).remove();
|
1105 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1106 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1107 |
jQuery( '#mysticky_divi_style' ).remove();
|
1108 |
+
jQuery( '.et_fixed_nav #top-header' ).css( 'top', '' );
|
1109 |
if ( welcombar_position == 'top' ) {
|
1110 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', ( adminBarHeight + 0) + 'px' );
|
1111 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1112 |
$( 'html' ).css( 'margin-bottom', '' );
|
1113 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
1154 |
jQuery( '#mysticky_divi_style' ).remove();
|
1155 |
jQuery( '.et_fixed_nav #top-header' ).css( 'top', '' );
|
1156 |
if ( welcombar_position == 'top' ) {
|
1157 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', ( adminBarHeight + 0) + 'px' );
|
1158 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1159 |
$( 'html' ).css( 'margin-bottom', '' );
|
1160 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
1173 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1174 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1175 |
if ( welcombar_position == 'top' ) {
|
1176 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', ( adminBarHeight + 0) + 'px' );
|
1177 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1178 |
$( 'html' ).css( 'margin-bottom', '' );
|
1179 |
jQuery( '#mysticky_divi_style' ).remove();
|
1197 |
}
|
1198 |
} );
|
1199 |
|
1200 |
+
jQuery(window).on( 'scroll', function(){
|
1201 |
if( welcombar_aftersubmission == 'dont_show_welcomebar' ){
|
1202 |
var welcomebar_storage = localStorage.getItem("welcomebar_close");
|
1203 |
} else if( welcombar_aftersubmission == 'show_welcomebar_next_visit' ) {
|
1224 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1225 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1226 |
if ( welcombar_position == 'top' ) {
|
1227 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', (adminBarHeight+ 0 ) + 'px' );
|
1228 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1229 |
$( 'html' ).css( 'margin-bottom', '' );
|
1230 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
1242 |
jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
|
1243 |
$( '.mysticky-welcomebar-fixed' ).addClass( 'entry-effect' );
|
1244 |
if ( welcombar_position == 'top' ) {
|
1245 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', ( adminBarHeight +0 ) + 'px' );
|
1246 |
jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
|
1247 |
$( 'html' ).css( 'margin-bottom', '' );
|
1248 |
$( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
|
1298 |
});
|
1299 |
function mystickyelements_present() {
|
1300 |
var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
|
1301 |
+
var mystickyelements_show = jQuery( '.mystickyelements-fixed' ).length;
|
1302 |
+
var welcombar_position = jQuery( '.mysticky-welcomebar-fixed' ).data('position');
|
1303 |
+
var adminBarHeight = 0;
|
1304 |
+
if ( jQuery("#wpadminbar").length != 0 ){
|
1305 |
+
var adminBarHeight = jQuery('#wpadminbar').height();
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
if ( jQuery( window ).width() <= 600 && jQuery(window).scrollTop() != 0 && welcombar_position == 'top') {
|
1309 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0px' );
|
1310 |
+
var welcombar_height = jQuery( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1311 |
+
jQuery( '#mysticky-nav' ).css( 'top', welcombar_height + 'px' );
|
1312 |
+
} else if ( welcombar_position == 'top' ) {
|
1313 |
+
var mysticky_welcomebar_height = adminBarHeight + jQuery( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1314 |
+
jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', ( adminBarHeight + 0) + 'px' );
|
1315 |
+
jQuery( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
|
1316 |
+
}
|
1317 |
if( mystickyelements_show ) {
|
1318 |
+
|
1319 |
var welcombar_height = jQuery( '.mysticky-welcomebar-fixed' ).outerHeight();
|
1320 |
var mystickyelements_height = jQuery( '.mystickyelements-fixed' ).height();
|
1321 |
var mystickyelements_total_height = welcombar_height + mystickyelements_height;
|