Version Description
Multiple lines support for the Welcome Bar
Download this release
Release Info
Developer | galdub |
Plugin | myStickymenu |
Version | 2.2.9 |
Comparing to | |
See all releases |
Code changes from version 2.2.8 to 2.2.9
- css/mystickymenu-admin.css +7 -1
- js/mystickymenu-admin.js +4 -3
- mystickymenu.php +2 -2
- readme.txt +3 -1
- welcome-bar.php +10 -6
css/mystickymenu-admin.css
CHANGED
@@ -1580,7 +1580,8 @@ p.udner-title {
|
|
1580 |
padding-right: 60px;
|
1581 |
}
|
1582 |
.mysticky-welcomebar-setting-content-right select ,
|
1583 |
-
.mysticky-welcomebar-setting-content-right input[type="text"]
|
|
|
1584 |
width: 229px;
|
1585 |
height: 42px;
|
1586 |
border-radius: 20px;
|
@@ -1593,6 +1594,11 @@ p.udner-title {
|
|
1593 |
font-size: 14px;
|
1594 |
font-weight: 400;
|
1595 |
}
|
|
|
|
|
|
|
|
|
|
|
1596 |
.mysticky-welcomebar-setting-wrap .wp-picker-container input[type="text"].wp-color-picker {
|
1597 |
border-radius: 0;
|
1598 |
height: 32px;
|
1580 |
padding-right: 60px;
|
1581 |
}
|
1582 |
.mysticky-welcomebar-setting-content-right select ,
|
1583 |
+
.mysticky-welcomebar-setting-content-right input[type="text"] ,
|
1584 |
+
.mysticky-welcomebar-setting-content-right textarea {
|
1585 |
width: 229px;
|
1586 |
height: 42px;
|
1587 |
border-radius: 20px;
|
1594 |
font-size: 14px;
|
1595 |
font-weight: 400;
|
1596 |
}
|
1597 |
+
.mysticky-welcomebar-setting-content-right textarea {
|
1598 |
+
height: 100px;
|
1599 |
+
border-radius: 10px;
|
1600 |
+
padding-top: 9px;
|
1601 |
+
}
|
1602 |
.mysticky-welcomebar-setting-wrap .wp-picker-container input[type="text"].wp-color-picker {
|
1603 |
border-radius: 0;
|
1604 |
height: 32px;
|
js/mystickymenu-admin.js
CHANGED
@@ -239,13 +239,14 @@
|
|
239 |
$( '.mysticky-welcomebar-btn a' ).css( 'font-size', mysticky_welcomebar_fontsize_val + 'px' );
|
240 |
} );
|
241 |
|
242 |
-
$( '
|
243 |
-
var mysticky_bar_text_val = $( this ).val();
|
244 |
-
$( '.mysticky-welcomebar-content
|
245 |
} );
|
246 |
|
247 |
$( 'input[name="mysticky_option_welcomebar[mysticky_welcomebar_btn_text]"]' ).on( 'keyup', function(){
|
248 |
var mysticky_btn_text_val = $( this ).val();
|
|
|
249 |
$( '.mysticky-welcomebar-btn a' ).text( mysticky_btn_text_val );
|
250 |
} );
|
251 |
|
239 |
$( '.mysticky-welcomebar-btn a' ).css( 'font-size', mysticky_welcomebar_fontsize_val + 'px' );
|
240 |
} );
|
241 |
|
242 |
+
$( 'textarea[name="mysticky_option_welcomebar[mysticky_welcomebar_bar_text]"]' ).on( 'keyup', function(e){
|
243 |
+
var mysticky_bar_text_val = $( this ).val().replace(/(?:\r\n|\r|\n)/g, '<br />');
|
244 |
+
$( '.mysticky-welcomebar-content' ).html( "<p>" + mysticky_bar_text_val + "</p>");
|
245 |
} );
|
246 |
|
247 |
$( 'input[name="mysticky_option_welcomebar[mysticky_welcomebar_btn_text]"]' ).on( 'keyup', function(){
|
248 |
var mysticky_btn_text_val = $( this ).val();
|
249 |
+
|
250 |
$( '.mysticky-welcomebar-btn a' ).text( mysticky_btn_text_val );
|
251 |
} );
|
252 |
|
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.2.
|
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.2.
|
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.2.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.2.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.3
|
6 |
-
Stable tag: 2.2.
|
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.
|
@@ -258,6 +258,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
|
|
258 |
|
259 |
|
260 |
== Changelog ==
|
|
|
|
|
261 |
= 2.2.8 =
|
262 |
WP-admin submit button styling bug fixed
|
263 |
= 2.2.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.3
|
6 |
+
Stable tag: 2.2.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 bar with it.
|
258 |
|
259 |
|
260 |
== Changelog ==
|
261 |
+
= 2.2.9 =
|
262 |
+
Multiple lines support for the Welcome Bar
|
263 |
= 2.2.8 =
|
264 |
WP-admin submit button styling bug fixed
|
265 |
= 2.2.7 =
|
welcome-bar.php
CHANGED
@@ -30,7 +30,7 @@ function mysticky_welcome_bar_backend() {
|
|
30 |
?>
|
31 |
<form class="mysticky-welcomebar-form" id="mysticky_welcomebar_form" method="post" action="#">
|
32 |
<div class="mysticky-welcomebar-header-title">
|
33 |
-
<h3><?php _e('
|
34 |
<label for="mysticky-welcomebar-contact-form-enabled" class="mysticky-welcomebar-switch">
|
35 |
<input type="checkbox" id="mysticky-welcomebar-contact-form-enabled" name="mysticky_option_welcomebar[mysticky_welcomebar_enable]" value="1" <?php checked( @$welcomebar['mysticky_welcomebar_enable'], '1' );?> />
|
36 |
<span class="slider"></span>
|
@@ -106,7 +106,7 @@ function mysticky_welcome_bar_backend() {
|
|
106 |
<div class="mysticky-welcomebar-setting-content">
|
107 |
<label><?php _e('Bar Text', 'myStickymenu'); ?></label>
|
108 |
<div class="mysticky-welcomebar-setting-content-right">
|
109 |
-
<
|
110 |
</div>
|
111 |
</div>
|
112 |
<div class="mysticky-welcomebar-setting-content">
|
@@ -299,7 +299,7 @@ function mysticky_welcome_bar_backend() {
|
|
299 |
<link href="https://fonts.googleapis.com/css?family=<?php echo $welcomebar['mysticky_welcomebar_font'] ?>:400,600,700|Lato:400,500,600,700" rel="stylesheet" type="text/css" class="sfba-google-font">
|
300 |
<div class="mysticky-welcomebar-fixed mysticky-welcomebar-display-desktop <?php echo $display_main_class; ?>" >
|
301 |
<div class="mysticky-welcomebar-content">
|
302 |
-
|
303 |
</div>
|
304 |
<div class="mysticky-welcomebar-btn">
|
305 |
<a href="#" ><?php echo isset($welcomebar['mysticky_welcomebar_btn_text']) ? $welcomebar['mysticky_welcomebar_btn_text'] : "Got it!";?></a>
|
@@ -363,6 +363,7 @@ function mysticky_welcome_bar_backend() {
|
|
363 |
}
|
364 |
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-fixed {
|
365 |
display: flex;
|
|
|
366 |
}
|
367 |
.mysticky-welcomebar-position-top {
|
368 |
top:0;
|
@@ -420,6 +421,7 @@ function mysticky_welcome_bar_backend() {
|
|
420 |
font-family: Lato;
|
421 |
top: 5px;
|
422 |
right: 5px;
|
|
|
423 |
-webkit-transition: all 0.5s ease 0s;
|
424 |
-moz-transition: all 0.5s ease 0s;
|
425 |
transition: all 0.5s ease 0s;
|
@@ -428,7 +430,7 @@ function mysticky_welcome_bar_backend() {
|
|
428 |
transform-origin: 50% 50%;
|
429 |
}
|
430 |
.mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
|
431 |
-
opacity:
|
432 |
-webkit-transform: rotate(180deg);
|
433 |
-moz-transform: rotate(180deg);
|
434 |
transform: rotate(180deg);
|
@@ -887,7 +889,7 @@ function mysticky_welcome_bar_frontend(){
|
|
887 |
?>
|
888 |
<div class="mysticky-welcomebar-fixed <?php echo $display_main_class; ?>" style="<?php echo $welcomebar_enable_block; ?>" data-after-triger="after_a_few_seconds" data-triger-sec="0" data-position="<?php echo esc_attr($welcomebar['mysticky_welcomebar_position']);?>" data-height="<?php echo esc_attr($welcomebar['mysticky_welcomebar_height']);?>" data-rediect="<?php echo esc_attr($welcomebar['mysticky_welcomebar_actionselect']);?>">
|
889 |
<div class="mysticky-welcomebar-content">
|
890 |
-
|
891 |
</div>
|
892 |
<div class="mysticky-welcomebar-btn">
|
893 |
<a href="<?php echo $mysticky_welcomebar_actionselect_url; ?>" <?php if( isset($welcomebar['mysticky_welcomebar_redirect_newtab']) && $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' && $welcomebar['mysticky_welcomebar_redirect_newtab']== 1):?> target="_blank" <?php endif;?>><?php echo isset($welcomebar['mysticky_welcomebar_btn_text'])?$welcomebar['mysticky_welcomebar_btn_text']:"Got it!";?></a>
|
@@ -1166,6 +1168,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1166 |
}
|
1167 |
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
|
1168 |
top: 0;
|
|
|
1169 |
}
|
1170 |
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed {
|
1171 |
bottom: 0;
|
@@ -1222,6 +1225,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1222 |
outline: none;
|
1223 |
font-family: Lato;
|
1224 |
text-decoration: none;
|
|
|
1225 |
-webkit-transition: all 0.5s ease 0s;
|
1226 |
-moz-transition: all 0.5s ease 0s;
|
1227 |
transition: all 0.5s ease 0s;
|
@@ -1230,7 +1234,7 @@ function mysticky_welcome_bar_frontend(){
|
|
1230 |
transform-origin: 50% 50%;
|
1231 |
}
|
1232 |
.mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
|
1233 |
-
opacity:
|
1234 |
-webkit-transform: rotate(180deg);
|
1235 |
-moz-transform: rotate(180deg);
|
1236 |
transform: rotate(180deg);
|
30 |
?>
|
31 |
<form class="mysticky-welcomebar-form" id="mysticky_welcomebar_form" method="post" action="#">
|
32 |
<div class="mysticky-welcomebar-header-title">
|
33 |
+
<h3><?php _e('Welcome Bar', 'myStickymenu'); ?></h3>
|
34 |
<label for="mysticky-welcomebar-contact-form-enabled" class="mysticky-welcomebar-switch">
|
35 |
<input type="checkbox" id="mysticky-welcomebar-contact-form-enabled" name="mysticky_option_welcomebar[mysticky_welcomebar_enable]" value="1" <?php checked( @$welcomebar['mysticky_welcomebar_enable'], '1' );?> />
|
36 |
<span class="slider"></span>
|
106 |
<div class="mysticky-welcomebar-setting-content">
|
107 |
<label><?php _e('Bar Text', 'myStickymenu'); ?></label>
|
108 |
<div class="mysticky-welcomebar-setting-content-right">
|
109 |
+
<textarea id="mysticky_bar_text" class="mystickyinput" name="mysticky_option_welcomebar[mysticky_welcomebar_bar_text]" rows="4"><?php echo stripslashes($welcomebar['mysticky_welcomebar_bar_text']);?> </textarea>
|
110 |
</div>
|
111 |
</div>
|
112 |
<div class="mysticky-welcomebar-setting-content">
|
299 |
<link href="https://fonts.googleapis.com/css?family=<?php echo $welcomebar['mysticky_welcomebar_font'] ?>:400,600,700|Lato:400,500,600,700" rel="stylesheet" type="text/css" class="sfba-google-font">
|
300 |
<div class="mysticky-welcomebar-fixed mysticky-welcomebar-display-desktop <?php echo $display_main_class; ?>" >
|
301 |
<div class="mysticky-welcomebar-content">
|
302 |
+
<?php echo wpautop(isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase");?>
|
303 |
</div>
|
304 |
<div class="mysticky-welcomebar-btn">
|
305 |
<a href="#" ><?php echo isset($welcomebar['mysticky_welcomebar_btn_text']) ? $welcomebar['mysticky_welcomebar_btn_text'] : "Got it!";?></a>
|
363 |
}
|
364 |
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-fixed {
|
365 |
display: flex;
|
366 |
+
height: auto;
|
367 |
}
|
368 |
.mysticky-welcomebar-position-top {
|
369 |
top:0;
|
421 |
font-family: Lato;
|
422 |
top: 5px;
|
423 |
right: 5px;
|
424 |
+
text-shadow: 0 0 0px #fff;
|
425 |
-webkit-transition: all 0.5s ease 0s;
|
426 |
-moz-transition: all 0.5s ease 0s;
|
427 |
transition: all 0.5s ease 0s;
|
430 |
transform-origin: 50% 50%;
|
431 |
}
|
432 |
.mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
|
433 |
+
opacity: 1;
|
434 |
-webkit-transform: rotate(180deg);
|
435 |
-moz-transform: rotate(180deg);
|
436 |
transform: rotate(180deg);
|
889 |
?>
|
890 |
<div class="mysticky-welcomebar-fixed <?php echo $display_main_class; ?>" style="<?php echo $welcomebar_enable_block; ?>" data-after-triger="after_a_few_seconds" data-triger-sec="0" data-position="<?php echo esc_attr($welcomebar['mysticky_welcomebar_position']);?>" data-height="<?php echo esc_attr($welcomebar['mysticky_welcomebar_height']);?>" data-rediect="<?php echo esc_attr($welcomebar['mysticky_welcomebar_actionselect']);?>">
|
891 |
<div class="mysticky-welcomebar-content">
|
892 |
+
<?php echo wpautop( isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase" );?>
|
893 |
</div>
|
894 |
<div class="mysticky-welcomebar-btn">
|
895 |
<a href="<?php echo $mysticky_welcomebar_actionselect_url; ?>" <?php if( isset($welcomebar['mysticky_welcomebar_redirect_newtab']) && $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' && $welcomebar['mysticky_welcomebar_redirect_newtab']== 1):?> target="_blank" <?php endif;?>><?php echo isset($welcomebar['mysticky_welcomebar_btn_text'])?$welcomebar['mysticky_welcomebar_btn_text']:"Got it!";?></a>
|
1168 |
}
|
1169 |
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
|
1170 |
top: 0;
|
1171 |
+
height: auto;
|
1172 |
}
|
1173 |
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed {
|
1174 |
bottom: 0;
|
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;
|
1234 |
transform-origin: 50% 50%;
|
1235 |
}
|
1236 |
.mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
|
1237 |
+
opacity: 1;
|
1238 |
-webkit-transform: rotate(180deg);
|
1239 |
-moz-transform: rotate(180deg);
|
1240 |
transform: rotate(180deg);
|