myStickymenu - Version 2.3.4

Version Description

Frontend fixes

Download this release

Release Info

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

Code changes from version 2.3.3 to 2.3.4

Files changed (3) hide show
  1. mystickymenu.php +15 -15
  2. readme.txt +3 -1
  3. welcome-bar.php +42 -42
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.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.3' );
16
  require_once("mystickymenu-fonts.php");
17
  require_once("welcome-bar.php");
18
 
@@ -981,15 +981,15 @@ class MyStickyMenuFrontend
981
  if ($mysticky_options ['disable_css'] == false ) {
982
 
983
  echo '<style id="mystickymenu" type="text/css">';
984
- echo '#mysticky-nav { width:100% !important; position: static !important; }';
985
- echo '#mysticky-nav.wrapfixed { position:fixed !important; left: 0px !important; margin-top:0px !important; z-index: '. $mysticky_options ['myfixed_zindex'] .' !important; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:' . $mysticky_options ['myfixed_opacity'] / 100 . ' !important; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . ' !important;}';
986
 
987
 
988
  if ($mysticky_options ['myfixed_disable_small_screen'] > 0 ){
989
  //echo '@media (max-width: '.$mysticky_options['myfixed_disable_small_screen'].'px) {#mysticky-nav.wrapfixed {position: static;} }';
990
  };
991
  if ( !isset( $mysticky_options['myfixed_cssstyle'] ) ) {
992
- echo '#mysticky-nav .myfixed { margin:0 auto !important; float:none !important; border:0px !important; background:none !important; max-width:100% !important; }';
993
  }
994
  if ( isset( $mysticky_options['myfixed_cssstyle'] ) && $mysticky_options['myfixed_cssstyle'] != '' ) {
995
  echo $mysticky_options ['myfixed_cssstyle'];
@@ -999,28 +999,28 @@ class MyStickyMenuFrontend
999
  ?>
1000
  <style type="text/css">
1001
  <?php if( $template_name == 'hestia' ) { ?>
1002
- #mysticky-nav.wrapfixed {box-shadow: 0 1px 10px -6px #0000006b,0 1px 10px 0 #0000001f,0 4px 5px -2px #0000001a !important;}
1003
- #mysticky-nav.wrapfixed .navbar {position: relative !important;background-color: transparent !important;box-shadow: none !important;}
1004
  <?php } ?>
1005
  <?php if( $template_name == 'shapely' ) { ?>
1006
- #mysticky-nav.wrapfixed #site-navigation {position: relative !important;}
1007
  <?php } ?>
1008
  <?php if( $template_name == 'storefront' ) { ?>
1009
- #mysticky-nav.wrapfixed > .site-header {margin-bottom: 0 !important;}
1010
- #mysticky-nav.wrapfixed > .storefront-primary-navigation {padding: 10px 0 !important;}
1011
  <?php } ?>
1012
  <?php if( $template_name == 'transportex' ) { ?>
1013
- #mysticky-nav.wrapfixed > .transportex-menu-full {margin: 0 auto !important;}
1014
- .transportex-headwidget #mysticky-nav.wrapfixed .navbar-wp {top: 0 !important;}
1015
  <?php } ?>
1016
  <?php if( $template_name == 'twentynineteen' ) { ?>
1017
- #mysticky-nav.wrapfixed {padding: 10px !important;}
1018
  <?php } ?>
1019
  <?php if( $template_name == 'twentysixteen' ) { ?>
1020
- #mysticky-nav.wrapfixed > .site-header {padding-top: 0 !important;padding-bottom: 0 !important;}
1021
  <?php } ?>
1022
  <?php if( $template_name == 'twentytwenty' ) { ?>
1023
- #site-header {background: transparent !important;}
1024
  <?php } ?>
1025
  </style>
1026
  <?php
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.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.3.4' );
16
  require_once("mystickymenu-fonts.php");
17
  require_once("welcome-bar.php");
18
 
981
  if ($mysticky_options ['disable_css'] == false ) {
982
 
983
  echo '<style id="mystickymenu" type="text/css">';
984
+ echo '#mysticky-nav { width:100%; position: static; }';
985
+ echo '#mysticky-nav.wrapfixed { position:fixed; left: 0px; margin-top:0px; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:' . $mysticky_options ['myfixed_opacity'] / 100 . '; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . ';}';
986
 
987
 
988
  if ($mysticky_options ['myfixed_disable_small_screen'] > 0 ){
989
  //echo '@media (max-width: '.$mysticky_options['myfixed_disable_small_screen'].'px) {#mysticky-nav.wrapfixed {position: static;} }';
990
  };
991
  if ( !isset( $mysticky_options['myfixed_cssstyle'] ) ) {
992
+ echo '#mysticky-nav .myfixed { margin:0 auto; float:none; border:0px; background:none; max-width:100%; }';
993
  }
994
  if ( isset( $mysticky_options['myfixed_cssstyle'] ) && $mysticky_options['myfixed_cssstyle'] != '' ) {
995
  echo $mysticky_options ['myfixed_cssstyle'];
999
  ?>
1000
  <style type="text/css">
1001
  <?php if( $template_name == 'hestia' ) { ?>
1002
+ #mysticky-nav.wrapfixed {box-shadow: 0 1px 10px -6px #0000006b,0 1px 10px 0 #0000001f,0 4px 5px -2px #0000001a;}
1003
+ #mysticky-nav.wrapfixed .navbar {position: relative;background-color: transparent;box-shadow: none;}
1004
  <?php } ?>
1005
  <?php if( $template_name == 'shapely' ) { ?>
1006
+ #mysticky-nav.wrapfixed #site-navigation {position: relative;}
1007
  <?php } ?>
1008
  <?php if( $template_name == 'storefront' ) { ?>
1009
+ #mysticky-nav.wrapfixed > .site-header {margin-bottom: 0;}
1010
+ #mysticky-nav.wrapfixed > .storefront-primary-navigation {padding: 10px 0;}
1011
  <?php } ?>
1012
  <?php if( $template_name == 'transportex' ) { ?>
1013
+ #mysticky-nav.wrapfixed > .transportex-menu-full {margin: 0 auto;}
1014
+ .transportex-headwidget #mysticky-nav.wrapfixed .navbar-wp {top: 0;}
1015
  <?php } ?>
1016
  <?php if( $template_name == 'twentynineteen' ) { ?>
1017
+ #mysticky-nav.wrapfixed {padding: 10px;}
1018
  <?php } ?>
1019
  <?php if( $template_name == 'twentysixteen' ) { ?>
1020
+ #mysticky-nav.wrapfixed > .site-header {padding-top: 0;padding-bottom: 0;}
1021
  <?php } ?>
1022
  <?php if( $template_name == 'twentytwenty' ) { ?>
1023
+ #site-header {background: transparent;}
1024
  <?php } ?>
1025
  </style>
1026
  <?php
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.3
6
- Stable tag: 2.3.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 bar with it.
@@ -259,6 +259,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
259
 
260
 
261
  == Changelog ==
 
 
262
  = 2.3.3 =
263
  Slight CSS fixes
264
  = 2.3.2 =
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.3
6
+ Stable tag: 2.3.4
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 bar with it.
259
 
260
 
261
  == Changelog ==
262
+ = 2.3.4 =
263
+ Frontend fixes
264
  = 2.3.3 =
265
  Slight CSS fixes
266
  = 2.3.2 =
welcome-bar.php CHANGED
@@ -375,11 +375,11 @@ function mysticky_welcome_bar_backend() {
375
  .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
376
  color: <?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'] ?>;
377
  font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
378
- font-family: inherit !important;
379
- margin: 0 !important;
380
- padding: 0 !important;
381
- line-height: 1.2 !important;
382
- font-weight: 400 !important;
383
  }
384
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
385
  padding-left: 30px;
@@ -1174,13 +1174,13 @@ function mysticky_welcome_bar_frontend(){
1174
  bottom: 0;
1175
  }
1176
  .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
1177
- color: <?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'] ?> !important;
1178
- font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px !important;
1179
- margin: 0 !important;
1180
- padding: 0 !important;
1181
- line-height: 1.2 !important;
1182
- font-family: inherit !important;
1183
- font-weight: 400 !important;
1184
  }
1185
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
1186
  padding-left: 30px;
@@ -1191,41 +1191,41 @@ function mysticky_welcome_bar_frontend(){
1191
  display: block;
1192
  }
1193
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a {
1194
- background-color: <?php echo $welcomebar['mysticky_welcomebar_btncolor'] ?> !important;
1195
- font-family: inherit !important;
1196
- color: <?php echo $welcomebar['mysticky_welcomebar_btntxtcolor'] ?> !important;
1197
- border-radius: 4px !important;
1198
- text-decoration: none !important;
1199
- display: inline-block !important;
1200
- vertical-align: top !important;
1201
- line-height: 1.2 !important;
1202
- font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px !important;
1203
- font-weight: 400 !important;
1204
- padding: 5px 20px !important;
1205
- white-space: nowrap !important;
1206
  }
1207
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a:hover {
1208
  /*opacity: 0.7;*/
1209
- -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0,0.5) !important;
1210
- -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5) !important;
1211
- box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5) !important;
1212
  }
1213
  .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
1214
  display: none;
1215
- vertical-align: top !important;
1216
- width: 30px !important;
1217
- height: 30px !important;
1218
- text-align: center !important;
1219
- line-height: 30px !important;
1220
- border-radius: 5px !important;
1221
- color: #000 !important;
1222
- position: absolute !important;
1223
- top: 5px !important;
1224
- right: 10px !important;
1225
- outline: none; !important
1226
- font-family: Lato !important;
1227
- text-decoration: none !important;
1228
- text-shadow: 0 0 0px #fff !important;
1229
  -webkit-transition: all 0.5s ease 0s;
1230
  -moz-transition: all 0.5s ease 0s;
1231
  transition: all 0.5s ease 0s;
@@ -1642,7 +1642,7 @@ function mysticky_welcome_bar_frontend(){
1642
  padding-left: 10px;
1643
  }
1644
  .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
1645
- right: 7px !important;
1646
  }
1647
  }
1648
  </style>
375
  .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
376
  color: <?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'] ?>;
377
  font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
378
+ font-family: inherit;
379
+ margin: 0;
380
+ padding: 0;
381
+ line-height: 1.2;
382
+ font-weight: 400;
383
  }
384
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
385
  padding-left: 30px;
1174
  bottom: 0;
1175
  }
1176
  .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
1177
+ color: <?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'] ?>;
1178
+ font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
1179
+ margin: 0;
1180
+ padding: 0;
1181
+ line-height: 1.2;
1182
+ font-family: inherit;
1183
+ font-weight: 400;
1184
  }
1185
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
1186
  padding-left: 30px;
1191
  display: block;
1192
  }
1193
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a {
1194
+ background-color: <?php echo $welcomebar['mysticky_welcomebar_btncolor'] ?>;
1195
+ font-family: inherit;
1196
+ color: <?php echo $welcomebar['mysticky_welcomebar_btntxtcolor'] ?>;
1197
+ border-radius: 4px;
1198
+ text-decoration: none;
1199
+ display: inline-block;
1200
+ vertical-align: top;
1201
+ line-height: 1.2;
1202
+ font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
1203
+ font-weight: 400;
1204
+ padding: 5px 20px;
1205
+ white-space: nowrap;
1206
  }
1207
  .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a:hover {
1208
  /*opacity: 0.7;*/
1209
+ -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0,0.5);
1210
+ -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
1211
+ box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
1212
  }
1213
  .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
1214
  display: none;
1215
+ vertical-align: top;
1216
+ width: 30px;
1217
+ height: 30px;
1218
+ text-align: center;
1219
+ line-height: 30px;
1220
+ border-radius: 5px;
1221
+ color: #000;
1222
+ position: absolute;
1223
+ top: 5px;
1224
+ right: 10px;
1225
+ outline: none;
1226
+ font-family: Lato;
1227
+ text-decoration: none;
1228
+ text-shadow: 0 0 0px #fff;
1229
  -webkit-transition: all 0.5s ease 0s;
1230
  -moz-transition: all 0.5s ease 0s;
1231
  transition: all 0.5s ease 0s;
1642
  padding-left: 10px;
1643
  }
1644
  .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
1645
+ right: 7px;
1646
  }
1647
  }
1648
  </style>