myStickymenu - Version 2.2.7

Version Description

Added attention effects for the button

Download this release

Release Info

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

Code changes from version 2.2.6 to 2.2.7

css/mystickymenu-admin.css CHANGED
@@ -573,9 +573,9 @@ div#slider.ui-slider {
573
background: #E1DAF6;
574
color: #7559C0;
575
}
576
- .sticky-header-content {
577
display: none;
578
- }
579
@media only screen and (min-width: 1024px) and (max-width: 1200px) {
580
.pt_numberbutton.pt_numberdown {
581
position: relative;
@@ -1672,7 +1672,7 @@ a.create-rule {
1672
width: 20%;
1673
}
1674
.mysticky-welcomebar-page-option .url-content > div.mysticky-welcomebar-url-box {
1675
- width: 25%;
1676
text-align: right;
1677
margin-top: 10px;
1678
}
573
background: #E1DAF6;
574
color: #7559C0;
575
}
576
+ /*.sticky-header-content {
577
display: none;
578
+ }*/
579
@media only screen and (min-width: 1024px) and (max-width: 1200px) {
580
.pt_numberbutton.pt_numberdown {
581
position: relative;
1672
width: 20%;
1673
}
1674
.mysticky-welcomebar-page-option .url-content > div.mysticky-welcomebar-url-box {
1675
+ width: 28%;
1676
text-align: right;
1677
margin-top: 10px;
1678
}
js/iris-script.js CHANGED
@@ -1,15 +1,5 @@
1
jQuery(document).ready(function($){
2
jQuery('.my-color-field').wpColorPicker();
3
- jQuery(".sticky-header-menu ul li a").click(function(e){
4
- e.preventDefault();
5
- if(!jQuery(this).hasClass("active")) {
6
- jQuery(".sticky-header-menu ul li a").removeClass("active");
7
- jQuery(this).addClass("active");
8
- thisHref = jQuery(this).attr("href");
9
- jQuery(".sticky-header-content").hide();
10
- jQuery(thisHref).show();
11
- }
12
- });
13
jQuery(document).on('click', '.sticky-header-upgrade-now', function(e){
14
e.preventDefault();
15
jQuery(".sticky-header-menu ul li a:last").trigger("click");
1
jQuery(document).ready(function($){
2
jQuery('.my-color-field').wpColorPicker();
3
jQuery(document).on('click', '.sticky-header-upgrade-now', function(e){
4
e.preventDefault();
5
jQuery(".sticky-header-menu ul li a:last").trigger("click");
js/mystickymenu-admin.js CHANGED
@@ -248,7 +248,17 @@
248
var mysticky_btn_text_val = $( this ).val();
249
$( '.mysticky-welcomebar-btn a' ).text( mysticky_btn_text_val );
250
} );
251
-
252
$( '.mysticky-welcomebar-submit input#submit' ).on( 'click', function(e){
253
if ( $( 'input[name="mysticky_option_welcomebar[mysticky_welcomebar_enable]"]' ).prop( 'checked' ) == false && $( 'input#save_welcome_bar' ).val() == '' ) {
254
e.preventDefault();
248
var mysticky_btn_text_val = $( this ).val();
249
$( '.mysticky-welcomebar-btn a' ).text( mysticky_btn_text_val );
250
} );
251
+
252
+ /* DATE: 11-12-2019 start */
253
+ $( 'select[name="mysticky_option_welcomebar[mysticky_welcomebar_attentionselect]"]' ).on( 'change', function(){
254
+ $(".mysticky-welcomebar-fixed").removeClass (function (index, className) {
255
+ return (className.match (/(^|\s)mysticky-welcomebar-attention-\S+/g) || []).join(' ');
256
+ });
257
+ $( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-attention-' + $(this).val() );
258
+
259
+ } );
260
+ /* DATE: 11-12-2019 End */
261
+
262
$( '.mysticky-welcomebar-submit input#submit' ).on( 'click', function(e){
263
if ( $( 'input[name="mysticky_option_welcomebar[mysticky_welcomebar_enable]"]' ).prop( 'checked' ) == false && $( 'input#save_welcome_bar' ).val() == '' ) {
264
e.preventDefault();
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.6
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.6' );
16
require_once("mystickymenu-fonts.php");
17
require_once("welcome-bar.php");
18
@@ -58,8 +58,8 @@ class MyStickyMenuBackend
58
}
59
60
public function mystickymenu_settings_link($links){
61
- $settings_link = '<a href="options-general.php?page=my-stickymenu-settings">Settings</a>';
62
- $links['go_pro'] = '<a href="'.admin_url("options-general.php?page=my-stickymenu-settings&type=upgrade").'" style="color: #FF5983;font-weight: bold;">'.__( 'Upgrade', 'stars-testimonials' ).'</a>';
63
array_unshift($links, $settings_link);
64
return $links;
65
}
@@ -70,15 +70,16 @@ class MyStickyMenuBackend
70
if($is_shown === false) {
71
add_option("mystickymenu_update_message", 1);
72
}
73
- wp_redirect( admin_url( 'options-general.php?page=my-stickymenu-settings' ) ) ;
74
exit;
75
}
76
}
77
78
public function mysticky_admin_script($hook) {
79
- if ($hook != 'settings_page_my-stickymenu-settings') {
80
return;
81
- }
82
wp_enqueue_style('mystickymenuAdminStyle', plugins_url('/css/mystickymenu-admin.css', __FILE__), array(), MYSTICKY_VERSION );
83
wp_enqueue_style( 'wp-color-picker' );
84
wp_enqueue_style( 'wp-jquery-ui-dialog' );
@@ -104,16 +105,41 @@ class MyStickyMenuBackend
104
105
public function add_plugin_page(){
106
// This page will be under "Settings"
107
- add_options_page(
108
'Settings Admin',
109
'myStickymenu',
110
'manage_options',
111
'my-stickymenu-settings',
112
array( $this, 'create_admin_page' )
113
);
114
}
115
116
public function create_admin_page(){
117
// Set class property
118
if (isset($_POST['mysticky_option_name']) && !empty($_POST['mysticky_option_name']) && isset($_POST['nonce'])) {
119
if(!empty($_REQUEST['nonce']) && wp_verify_nonce($_REQUEST['nonce'], 'mysticky_option_backend_update')) {
@@ -130,36 +156,7 @@ class MyStickyMenuBackend
130
wp_verify_nonce($_GET['nonce'], 'wporg_frontend_delete');
131
echo '<div class="error settings-error notice is-dismissible "><p><strong>' . esc_html__('Unable to complete your request','mystickymenu'). '</p></strong></div>';
132
}
133
- }
134
-
135
- /* welcome bar save data */
136
- if (isset($_POST['mysticky_option_welcomebar']) && !empty($_POST['mysticky_option_welcomebar']) && isset($_POST['nonce'])) {
137
- if(!empty($_POST['nonce']) && wp_verify_nonce($_POST['nonce'], 'mysticky_option_welcomebar_update')) {
138
- $mysticky_option_welcomebar = filter_var_array( $_POST['mysticky_option_welcomebar'], FILTER_SANITIZE_STRING );
139
- $mysticky_option_welcomebar['mysticky_welcomebar_height'] = 60;
140
- $mysticky_option_welcomebar['mysticky_welcomebar_device_desktop'] = 'desktop';
141
- $mysticky_option_welcomebar['mysticky_welcomebar_device_mobile'] = 'mobile';
142
- $mysticky_option_welcomebar['mysticky_welcomebar_trigger'] = 'after_a_few_seconds';
143
- $mysticky_option_welcomebar['mysticky_welcomebar_triggersec'] = '0';
144
- $mysticky_option_welcomebar['mysticky_welcomebar_expirydate'] = '';
145
- $mysticky_option_welcomebar['mysticky_welcomebar_page_settings'] = '';
146
- update_option( 'mysticky_option_welcomebar', $mysticky_option_welcomebar);
147
- echo '<div class="updated settings-error notice is-dismissible "><p><strong>' . esc_html__('Settings saved.','mystickymenu'). '</p></strong></div>';
148
- } else {
149
- wp_verify_nonce($_GET['nonce'], 'wporg_frontend_delete');
150
- echo '<div class="error settings-error notice is-dismissible "><p><strong>' . esc_html__('Unable to complete your request','mystickymenu'). '</p></strong></div>';
151
- }
152
- }
153
- if (isset($_POST['mysticky_welcomebar_reset']) && !empty($_POST['mysticky_welcomebar_reset']) && isset($_POST['nonce_reset'])) {
154
- if(!empty($_POST['nonce_reset']) && wp_verify_nonce($_POST['nonce_reset'], 'mysticky_option_welcomebar_reset')) {
155
- $mysticky_option_welcomebar_reset = mysticky_welcomebar_pro_widget_default_fields();
156
- update_option( 'mysticky_option_welcomebar', $mysticky_option_welcomebar_reset);
157
- echo '<div class="updated settings-error notice is-dismissible "><p><strong>' . esc_html__('Reset Settings saved.','mystickymenu'). '</p></strong></div>';
158
- } else {
159
- wp_verify_nonce($_GET['nonce'], 'wporg_frontend_delete');
160
- echo '<div class="error settings-error notice is-dismissible "><p><strong>' . esc_html__('Unable to complete your request','mystickymenu'). '</p></strong></div>';
161
- }
162
- }
163
164
$mysticky_options = get_option( 'mysticky_option_name');
165
$is_old = get_option("has_sticky_header_old_version");
@@ -167,26 +164,8 @@ class MyStickyMenuBackend
167
$nonce = wp_create_nonce('mysticky_option_backend_update');
168
$pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=";
169
170
- $welcomebar_active_class = '';
171
- $welcomebar_inactive_class = '';
172
- $welcomebar_active_block = '';
173
- $welcomebar_inactive_block = 'display: none';
174
- if( isset($_POST['active_tab_element']) && $_POST['active_tab_element'] == 1 ) {
175
- $welcomebar_active_class = 'active';
176
- $welcomebar_inactive_class = '';
177
- $welcomebar_active_block = 'display: block';
178
- $welcomebar_inactive_block = 'display: none';
179
- } else {
180
- if ( !isset($_GET['type'])){
181
- $welcomebar_active_class = '';
182
- $welcomebar_inactive_class = 'active';
183
- $welcomebar_active_block = '';
184
- $welcomebar_inactive_block = 'display: block';
185
- }
186
- }
187
$is_shown = get_option("mystickymenu_update_message");
188
- ?>
189
- <?php if($is_shown == 1) {?>
190
<div class="updates-form-form" >
191
<div class="popup-form-content">
192
<div id="add-update-folder-title" class="add-update-folder-title">
@@ -219,9 +198,9 @@ class MyStickyMenuBackend
219
<div id="mystickymenu" class="wrap mystickymenu">
220
<div class="sticky-header-menu">
221
<ul>
222
- <li><a href="#sticky-header-settings" class="<?php echo $welcomebar_inactive_class; ?>"><?php esc_attr_e('Sticky Menu', 'mystickymenu'); ?></a></li>
223
- <li><a href="#sticky-header-welcome-bar" class="<?php echo $welcomebar_active_class; ?>"><?php esc_attr_e('Welcome Bar', 'mystickymenu'); ?></a></li>
224
- <li><a href="#sticky-header-upgrade" class="<?php echo (isset($_GET['type'])&&$_GET['type']=="upgrade")?"active":"" ?>"><?php esc_attr_e('Upgrade to Pro', 'mystickymenu'); ?></a></li>
225
</ul>
226
</div>
227
<div style="<?php echo $welcomebar_inactive_block; ?>" id="sticky-header-settings" class="sticky-header-content">
@@ -290,7 +269,8 @@ class MyStickyMenuBackend
290
<td>
291
<div class="mysticky_device_upgrade">
292
<label class="mysticky_title"><?php _e("Devices", 'mystickymenu')?></label>
293
- <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
294
<ul class="mystickymenu-input-multicheckbox">
295
<li>
296
<label>
@@ -403,7 +383,7 @@ class MyStickyMenuBackend
403
404
<div class="mystickymenu-content-option">
405
<label class="mysticky_title css-style-title"><?php _e("Hide on Scroll Down", 'mystickymenu'); ?></label>
406
- <?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
407
<p>
408
<label class="mysticky_text">
409
<input id="myfixed_disable_scroll_down" name="mysticky_option_name[myfixed_disable_scroll_down]" type="checkbox" <?php checked( @$mysticky_options['myfixed_disable_scroll_down'], 'on' );?> <?php echo !$is_old?"disabled":"" ?> />
@@ -494,7 +474,7 @@ class MyStickyMenuBackend
494
</div>
495
<div class="clear"></div>
496
</div>
497
- <?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
498
</div>
499
</div>
500
</div>
@@ -529,7 +509,7 @@ class MyStickyMenuBackend
529
530
<div class="mystickymenu-content-option">
531
<label class="mysticky_title"><?php _e("Disable at", 'mystickymenu'); ?></label>
532
- <?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
533
<div class="mystickymenu-input-section">
534
<ul class="mystickymenu-input-multicheckbox">
535
<li>
@@ -635,138 +615,225 @@ class MyStickyMenuBackend
635
</form>
636
<p class="myStickymenu-review"><a href="https://wordpress.org/support/plugin/mystickymenu/reviews/" target="_blank"><?php esc_attr_e('Leave a review','mystickymenu'); ?></a></p>
637
</div>
638
- <div style="<?php echo $welcomebar_active_block; ?>" id="sticky-header-welcome-bar" class="sticky-header-content">
639
<?php mysticky_welcome_bar_backend(); ?>
640
</div>
641
- <div style="display: <?php echo (isset($_GET['type'])&&$_GET['type']=="upgrade")?"block":"none" ?>" id="sticky-header-upgrade" class="sticky-header-content">
642
- <div id="rpt_pricr" class="rpt_plans rpt_3_plans rpt_style_basic">
643
- <p class="udner-title">
644
- <strong class="text-primary">Unlock All Features</strong>
645
- </p>
646
- <div class="">
647
- <div class="rpt_plan rpt_plan_0 ">
648
- <div style="text-align:left;" class="rpt_title rpt_title_0">Basic</div>
649
- <div class="rpt_head rpt_head_0">
650
- <div class="rpt_recurrence rpt_recurrence_0">For small website owners</div>
651
- <div class="rpt_price rpt_price_0">$14</div>
652
- <div class="rpt_description rpt_description_0 rpt_desc">Per year. Renewals for 25% off</div>
653
<div style="clear:both;"></div>
654
</div>
655
- <div class="rpt_features rpt_features_0">
656
- <div class="rpt_feature rpt_feature_0-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 1 domain</span>1 website<span class="rpt_tooltip_plus" > +</span></a></div>
657
- <div class="rpt_feature rpt_feature_0-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
658
- <div class="rpt_feature rpt_feature_0-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
659
- <div class="rpt_feature rpt_feature_0-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
660
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Show/hide the sticky menu on specific pages</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
661
- <div class="rpt_feature rpt_feature_0-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
662
- <div class="rpt_feature rpt_feature_0-6"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Including page targeting, delay and scroll triggers, devices, position, height, expiry date, open link in a new tab and remove credit</span>Welcome bar<span class="rpt_tooltip_plus"> +</span></a></div>
663
- <div class="rpt_feature rpt_feature_0-9">
664
- <select data-key="0" class="multiple-options">
665
- <option data-header="Renewals for 25% off" data-price="14" value="<?php echo esc_url($pro_url."1") ?>">
666
- <?php esc_html_e("Updates & support for 1 year") ?>
667
- </option>
668
- <option data-header="For 3 years" data-price="27" value="<?php echo esc_url($pro_url."4") ?>">
669
- <?php esc_html_e("Updates & support for 3 years") ?>
670
- </option>
671
- <option data-header="For lifetime" data-price="45" value="<?php echo esc_url($pro_url."5") ?>">
672
- <?php esc_html_e("Updates & support for lifetime") ?>
673
- </option>
674
- </select>
675
- </div>
676
- </div>
677
- <div style="clear:both;"></div>
678
- <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=2199&amp;edd_options[price_id]=1" class="rpt_foot rpt_foot_0">Buy now</a>
679
- </div>
680
- <div class="rpt_plan rpt_plan_1 rpt_recommended_plan ">
681
- <div style="text-align:left;" class="rpt_title rpt_title_1">Pro<img class="rpt_recommended" src="<?php echo plugins_url("") ?>/mystickymenu/images/rpt_recommended.png" style="top: 27px;"></div>
682
- <div class="rpt_head rpt_head_1">
683
- <div class="rpt_recurrence rpt_recurrence_1">For businesses with multiple websites</div>
684
- <div class="rpt_price rpt_price_1">$39</div>
685
- <div class="rpt_description rpt_description_1 rpt_desc">Per year. Renewals for 25% off</div>
686
<div style="clear:both;"></div>
687
</div>
688
- <div class="rpt_features rpt_features_1">
689
- <div class="rpt_feature rpt_feature_1-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 5 domains</span>5 websites<span class="rpt_tooltip_plus" > +</span></a></div>
690
- <div class="rpt_feature rpt_feature_1-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
691
- <div class="rpt_feature rpt_feature_1-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
692
- <div class="rpt_feature rpt_feature_1-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
693
- <div class="rpt_feature rpt_feature_1-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Show/hide the sticky menu on specific pages</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
694
- <div class="rpt_feature rpt_feature_1-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
695
- <div class="rpt_feature rpt_feature_1-6"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Including page targeting, delay and scroll triggers, devices, position, height, expiry date, open link in a new tab and remove credit</span>Welcome bar<span class="rpt_tooltip_plus"> +</span></a></div>
696
- <div class="rpt_feature rpt_feature_0-9">
697
- <select data-key="0" class="multiple-options">
698
- <option data-header="Renewals for 25% off" data-price="39" value="<?php echo esc_url($pro_url."2") ?>">
699
- <?php esc_html_e("Updates & support for 1 year") ?>
700
- </option>
701
- <option data-header="For 3 years" data-price="64" value="<?php echo esc_url($pro_url."6") ?>">
702
- <?php esc_html_e("Updates & support for 3 years") ?>
703
- </option>
704
- <option data-header="For lifetime" data-price="99" value="<?php echo esc_url($pro_url."7") ?>">
705
- <?php esc_html_e("Updates & support for lifetime") ?>
706
- </option>
707
- </select>
708
- </div>
709
- </div>
710
- <div style="clear:both;"></div>
711
- <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=2199&amp;edd_options[price_id]=2" class="rpt_foot rpt_foot_1">Buy now</a>
712
- </div>
713
- <div class="rpt_plan rpt_plan_2 ">
714
- <div style="text-align:left;" class="rpt_title rpt_title_2">Agency</div>
715
- <div class="rpt_head rpt_head_2">
716
- <div class="rpt_recurrence rpt_recurrence_2">For agencies who manage clients</div>
717
- <div class="rpt_price rpt_price_2">$89</div>
718
- <div class="rpt_description rpt_description_2 rpt_desc">Per year. Renewals for 25% off</div>
719
<div style="clear:both;"></div>
720
</div>
721
- <div class="rpt_features rpt_features_2">
722
- <div class="rpt_feature rpt_feature_2-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 20 domains</span>20 websites<span class="rpt_tooltip_plus" > +</span></a></div>
723
- <div class="rpt_feature rpt_feature_2-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
724
- <div class="rpt_feature rpt_feature_2-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
725
- <div class="rpt_feature rpt_feature_2-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
726
- <div class="rpt_feature rpt_feature_2-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Show/hide the sticky menu on specific pages</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
727
- <div class="rpt_feature rpt_feature_2-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
728
- <div class="rpt_feature rpt_feature_2-6"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Including page targeting, delay and scroll triggers, devices, position, height, expiry date, open link in a new tab and remove credit</span>Welcome bar<span class="rpt_tooltip_plus"> +</span></a></div>
729
- <div class="rpt_feature rpt_feature_0-9">
730
- <select data-key="0" class="multiple-options">
731
- <option data-header="Renewals for 25% off" data-price="89" value="<?php echo esc_url($pro_url."3") ?>">
732
- <?php esc_html_e("Updates & support for 1 year") ?>
733
- </option>
734
- <option data-header="For 3 years" data-price="159" value="<?php echo esc_url($pro_url."8") ?>">
735
- <?php esc_html_e("Updates & support for 3 years") ?>
736
- </option>
737
- <option data-header="For lifetime" data-price="219" value="<?php echo esc_url($pro_url."9") ?>">
738
- <?php esc_html_e("Updates & support for lifetime") ?>
739
- </option>
740
- </select>
741
- </div>
742
- </div>
743
- <div style="clear:both;"></div>
744
- <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=2199&amp;edd_options[price_id]=3" class="rpt_foot rpt_foot_2">Buy now</a>
745
</div>
746
- </div>
747
- <div style="clear:both;"></div>
748
- <div class="client-testimonial">
749
- <p class="text-center"><span class="dashicons dashicons-yes"></span> 30 days money back guaranteed</p>
750
- <p class="text-center"><span class="dashicons dashicons-yes"></span> The plugin will always keep working even if you don't renew your license</p>
751
- <div class="payment">
752
- <img src="<?php echo plugins_url("") ?>/mystickymenu/images/payment.png" alt="Payment" class="payment-img" />
753
- </div>
754
- <div class="testimonial-box">
755
- <div class="testimonial-image">
756
- <img src="<?php echo plugins_url("") ?>/mystickymenu/images/testimonial.png" style="top: 27px;">
757
</div>
758
- <div class="testimonial-content">
759
- This plugin does exactly what it should. It is simple but powerful. I would suggest to anyone who wants to make their menu sticky! I especially love the hide header on scroll down, show on scroll up feature that is built it. Great work!
760
- <div class="author">Clayton Chase</div>
761
</div>
762
- <div style="clear:both;"></div>
763
</div>
764
</div>
765
</div>
766
</div>
767
- </div>
768
- <?php }
769
}
770
public function mysticky_default_options() {
771
772
global $options;
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
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.7' );
16
require_once("mystickymenu-fonts.php");
17
require_once("welcome-bar.php");
18
58
}
59
60
public function mystickymenu_settings_link($links){
61
+ $settings_link = '<a href="admin.php?page=my-stickymenu-settings">Settings</a>';
62
+ $links['go_pro'] = '<a href="'.admin_url("admin.php?page=my-stickymenu-settings&type=upgrade").'" style="color: #FF5983;font-weight: bold;">'.__( 'Upgrade', 'stars-testimonials' ).'</a>';
63
array_unshift($links, $settings_link);
64
return $links;
65
}
70
if($is_shown === false) {
71
add_option("mystickymenu_update_message", 1);
72
}
73
+ wp_redirect( admin_url( 'admin.php?page=my-stickymenu-settings' ) ) ;
74
exit;
75
}
76
}
77
78
public function mysticky_admin_script($hook) {
79
+
80
+ /*if ($hook != 'settings_page_my-stickymenu-settings') {
81
return;
82
+ }*/
83
wp_enqueue_style('mystickymenuAdminStyle', plugins_url('/css/mystickymenu-admin.css', __FILE__), array(), MYSTICKY_VERSION );
84
wp_enqueue_style( 'wp-color-picker' );
85
wp_enqueue_style( 'wp-jquery-ui-dialog' );
105
106
public function add_plugin_page(){
107
// This page will be under "Settings"
108
+ add_menu_page(
109
'Settings Admin',
110
'myStickymenu',
111
'manage_options',
112
'my-stickymenu-settings',
113
array( $this, 'create_admin_page' )
114
);
115
+ add_submenu_page(
116
+ 'my-stickymenu-settings',
117
+ 'Settings Admin',
118
+ 'Settings',
119
+ 'manage_options',
120
+ 'my-stickymenu-settings',
121
+ array( $this, 'create_admin_page' )
122
+ );
123
+ add_submenu_page(
124
+ 'my-stickymenu-settings',
125
+ 'Settings Admin',
126
+ 'Welcome Bar',
127
+ 'manage_options',
128
+ 'my-stickymenu-welcomebar',
129
+ array( $this, 'mystickystickymenu_admin_welcomebar_page' )
130
+ );
131
+ add_submenu_page(
132
+ 'my-stickymenu-settings',
133
+ 'Upgrade to Pro',
134
+ 'Upgrade to Pro',
135
+ 'manage_options',
136
+ 'my-stickymenu-upgrade',
137
+ array( $this, 'mystickymenu_admin_upgrade_to_pro' )
138
+ );
139
}
140
141
public function create_admin_page(){
142
+ $upgarde_url = admin_url("admin.php?page=my-stickymenu-upgrade");
143
// Set class property
144
if (isset($_POST['mysticky_option_name']) && !empty($_POST['mysticky_option_name']) && isset($_POST['nonce'])) {
145
if(!empty($_REQUEST['nonce']) && wp_verify_nonce($_REQUEST['nonce'], 'mysticky_option_backend_update')) {
156
wp_verify_nonce($_GET['nonce'], 'wporg_frontend_delete');
157
echo '<div class="error settings-error notice is-dismissible "><p><strong>' . esc_html__('Unable to complete your request','mystickymenu'). '</p></strong></div>';
158
}
159
+ }
160
161
$mysticky_options = get_option( 'mysticky_option_name');
162
$is_old = get_option("has_sticky_header_old_version");
164
$nonce = wp_create_nonce('mysticky_option_backend_update');
165
$pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=";
166
167
$is_shown = get_option("mystickymenu_update_message");
168
+ if($is_shown == 1) {?>
169
<div class="updates-form-form" >
170
<div class="popup-form-content">
171
<div id="add-update-folder-title" class="add-update-folder-title">
198
<div id="mystickymenu" class="wrap mystickymenu">
199
<div class="sticky-header-menu">
200
<ul>
201
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-settings' ) ?>" class="active" ><?php _e('Sticky Menu', 'mystickymenu'); ?></a></li>
202
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-welcomebar' ) ?>" ><?php _e('Welcome Bar', 'mystickymenu'); ?></a></li>
203
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-upgrade' ) ?>"><?php _e('Upgrade to Pro', 'mystickymenu'); ?></a></li>
204
</ul>
205
</div>
206
<div style="<?php echo $welcomebar_inactive_block; ?>" id="sticky-header-settings" class="sticky-header-content">
269
<td>
270
<div class="mysticky_device_upgrade">
271
<label class="mysticky_title"><?php _e("Devices", 'mystickymenu')?></label>
272
+ <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
273
+
274
<ul class="mystickymenu-input-multicheckbox">
275
<li>
276
<label>
383
384
<div class="mystickymenu-content-option">
385
<label class="mysticky_title css-style-title"><?php _e("Hide on Scroll Down", 'mystickymenu'); ?></label>
386
+ <?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
387
<p>
388
<label class="mysticky_text">
389
<input id="myfixed_disable_scroll_down" name="mysticky_option_name[myfixed_disable_scroll_down]" type="checkbox" <?php checked( @$mysticky_options['myfixed_disable_scroll_down'], 'on' );?> <?php echo !$is_old?"disabled":"" ?> />
474
</div>
475
<div class="clear"></div>
476
</div>
477
+ <?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
478
</div>
479
</div>
480
</div>
509
510
<div class="mystickymenu-content-option">
511
<label class="mysticky_title"><?php _e("Disable at", 'mystickymenu'); ?></label>
512
+ <?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?>
513
<div class="mystickymenu-input-section">
514
<ul class="mystickymenu-input-multicheckbox">
515
<li>
615
</form>
616
<p class="myStickymenu-review"><a href="https://wordpress.org/support/plugin/mystickymenu/reviews/" target="_blank"><?php esc_attr_e('Leave a review','mystickymenu'); ?></a></p>
617
</div>
618
+ </div>
619
+ <?php }
620
+ }
621
+ public function mystickystickymenu_admin_welcomebar_page() {
622
+ /* welcome bar save data */
623
+ if (isset($_POST['mysticky_option_welcomebar']) && !empty($_POST['mysticky_option_welcomebar']) && isset($_POST['nonce'])) {
624
+ if(!empty($_POST['nonce']) && wp_verify_nonce($_POST['nonce'], 'mysticky_option_welcomebar_update')) {
625
+ $mysticky_option_welcomebar = filter_var_array( $_POST['mysticky_option_welcomebar'], FILTER_SANITIZE_STRING );
626
+ $mysticky_option_welcomebar['mysticky_welcomebar_height'] = 60;
627
+ $mysticky_option_welcomebar['mysticky_welcomebar_device_desktop'] = 'desktop';
628
+ $mysticky_option_welcomebar['mysticky_welcomebar_device_mobile'] = 'mobile';
629
+ $mysticky_option_welcomebar['mysticky_welcomebar_trigger'] = 'after_a_few_seconds';
630
+ $mysticky_option_welcomebar['mysticky_welcomebar_triggersec'] = '0';
631
+ $mysticky_option_welcomebar['mysticky_welcomebar_expirydate'] = '';
632
+ $mysticky_option_welcomebar['mysticky_welcomebar_page_settings'] = '';
633
+ update_option( 'mysticky_option_welcomebar', $mysticky_option_welcomebar);
634
+ echo '<div class="updated settings-error notice is-dismissible "><p><strong>' . esc_html__('Settings saved.','mystickymenu'). '</p></strong></div>';
635
+ } else {
636
+ wp_verify_nonce($_GET['nonce'], 'wporg_frontend_delete');
637
+ echo '<div class="error settings-error notice is-dismissible "><p><strong>' . esc_html__('Unable to complete your request','mystickymenu'). '</p></strong></div>';
638
+ }
639
+ }
640
+ if (isset($_POST['mysticky_welcomebar_reset']) && !empty($_POST['mysticky_welcomebar_reset']) && isset($_POST['nonce_reset'])) {
641
+ if(!empty($_POST['nonce_reset']) && wp_verify_nonce($_POST['nonce_reset'], 'mysticky_option_welcomebar_reset')) {
642
+ $mysticky_option_welcomebar_reset = mysticky_welcomebar_pro_widget_default_fields();
643
+ update_option( 'mysticky_option_welcomebar', $mysticky_option_welcomebar_reset);
644
+ echo '<div class="updated settings-error notice is-dismissible "><p><strong>' . esc_html__('Reset Settings saved.','mystickymenu'). '</p></strong></div>';
645
+ } else {
646
+ wp_verify_nonce($_GET['nonce'], 'wporg_frontend_delete');
647
+ echo '<div class="error settings-error notice is-dismissible "><p><strong>' . esc_html__('Unable to complete your request','mystickymenu'). '</p></strong></div>';
648
+ }
649
+ }
650
+
651
+ $mysticky_options = get_option( 'mysticky_option_name');
652
+ $is_old = get_option("has_sticky_header_old_version");
653
+ $is_old = ($is_old == "yes")?true:false;
654
+ $nonce = wp_create_nonce('mysticky_option_backend_update');
655
+ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=";
656
+
657
+ ?>
658
+ <style>
659
+ div#wpcontent {
660
+ background: rgba(101,114,219,1);
661
+ background: -moz-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
662
+ background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(101,114,219,1)), color-stop(67%, rgba(238,134,198,1)), color-stop(100%, rgba(238,134,198,1)));
663
+ background: -webkit-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
664
+ background: -o-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
665
+ background: -ms-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
666
+ background: linear-gradient(135deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
667
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6572db', endColorstr='#ee86c6', GradientType=1 );
668
+ }
669
+ </style>
670
+ <div id="mystickymenu" class="wrap mystickymenu">
671
+ <div class="sticky-header-menu">
672
+ <ul>
673
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-settings' ) ?>"><?php _e('Sticky Menu', 'mystickymenu'); ?></a></li>
674
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-welcomebar' ) ?>" class="active" ><?php _e('Welcome Bar', 'mystickymenu'); ?></a></li>
675
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-upgrade' ) ?>"><?php _e('Upgrade to Pro', 'mystickymenu'); ?></a></li>
676
+ </ul>
677
+ </div>
678
+ <div id="sticky-header-welcome-bar" class="sticky-header-content">
679
<?php mysticky_welcome_bar_backend(); ?>
680
</div>
681
+ </div>
682
+ <?php
683
+ }
684
+ public function mystickymenu_admin_upgrade_to_pro() {
685
+ $pro_url = "https://go.premio.io/checkount/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=";
686
+ ?>
687
+ <style>
688
+ div#wpcontent {
689
+ background: rgba(101,114,219,1);
690
+ background: -moz-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
691
+ background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(101,114,219,1)), color-stop(67%, rgba(238,134,198,1)), color-stop(100%, rgba(238,134,198,1)));
692
+ background: -webkit-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
693
+ background: -o-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
694
+ background: -ms-linear-gradient(-45deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
695
+ background: linear-gradient(135deg, rgba(101,114,219,1) 0%, rgba(238,134,198,1) 67%, rgba(238,134,198,1) 100%);
696
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6572db', endColorstr='#ee86c6', GradientType=1 );
697
+ }
698
+ </style>
699
+ <div id="mystickymenu" class="wrap mystickymenu">
700
+ <div class="sticky-header-menu">
701
+ <ul>
702
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-settings' ) ?>"><?php _e('Sticky Menu', 'mystickymenu'); ?></a></li>
703
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-welcomebar' ) ?>" ><?php _e('Welcome Bar', 'mystickymenu'); ?></a></li>
704
+ <li><a href="<?php echo admin_url( 'admin.php?page=my-stickymenu-upgrade' ) ?>" class="active" ><?php _e('Upgrade to Pro', 'mystickymenu'); ?></a></li>
705
+ </ul>
706
+ </div>
707
+ <div id="sticky-header-upgrade" class="sticky-header-content">
708
+ <div id="rpt_pricr" class="rpt_plans rpt_3_plans rpt_style_basic">
709
+ <p class="udner-title">
710
+ <strong class="text-primary">Unlock All Features</strong>
711
+ </p>
712
+ <div class="">
713
+ <div class="rpt_plan rpt_plan_0 ">
714
+ <div style="text-align:left;" class="rpt_title rpt_title_0">Basic</div>
715
+ <div class="rpt_head rpt_head_0">
716
+ <div class="rpt_recurrence rpt_recurrence_0">For small website owners</div>
717
+ <div class="rpt_price rpt_price_0">$19</div>
718
+ <div class="rpt_description rpt_description_0 rpt_desc">Per year. Renewals for 25% off</div>
719
+ <div style="clear:both;"></div>
720
+ </div>
721
+ <div class="rpt_features rpt_features_0">
722
+ <div class="rpt_feature rpt_feature_0-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 1 domain</span>1 website<span class="rpt_tooltip_plus" > +</span></a></div>
723
+ <div class="rpt_feature rpt_feature_0-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
724
+ <div class="rpt_feature rpt_feature_0-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
725
+ <div class="rpt_feature rpt_feature_0-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
726
+ <div class="rpt_feature rpt_feature_0-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Show/hide the sticky menu on specific pages</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
727
+ <div class="rpt_feature rpt_feature_0-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
728
+ <div class="rpt_feature rpt_feature_0-6"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Including page targeting, delay and scroll triggers, devices, position, height, expiry date, open link in a new tab and remove credit</span>Welcome bar<span class="rpt_tooltip_plus"> +</span></a></div>
729
+ <div class="rpt_feature rpt_feature_0-9">
730
+ <select data-key="0" class="multiple-options">
731
+ <option data-header="Renewals for 25% off" data-price="19" value="<?php echo esc_url($pro_url."1") ?>">
732
+ <?php esc_html_e("Updates & support for 1 year") ?>
733
+ </option>
734
+ <option data-header="For 3 years" data-price="35" value="<?php echo esc_url($pro_url."4") ?>">
735
+ <?php esc_html_e("Updates & support for 3 years") ?>
736
+ </option>
737
+ <option data-header="For lifetime" data-price="59" value="<?php echo esc_url($pro_url."5") ?>">
738
+ <?php esc_html_e("Updates & support for lifetime") ?>
739
+ </option>
740
+ </select>
741
+ </div>
742
+ </div>
743
<div style="clear:both;"></div>
744
+ <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=2199&amp;edd_options[price_id]=1" class="rpt_foot rpt_foot_0">Buy now</a>
745
</div>
746
+ <div class="rpt_plan rpt_plan_1 rpt_recommended_plan ">
747
+ <div style="text-align:left;" class="rpt_title rpt_title_1">Plus<img class="rpt_recommended" src="<?php echo plugins_url("") ?>/mystickymenu/images/rpt_recommended.png" style="top: 27px;"></div>
748
+ <div class="rpt_head rpt_head_1">
749
+ <div class="rpt_recurrence rpt_recurrence_1">For businesses with multiple websites</div>
750
+ <div class="rpt_price rpt_price_1">$39</div>
751
+ <div class="rpt_description rpt_description_1 rpt_desc">Per year. Renewals for 25% off</div>
752
+ <div style="clear:both;"></div>
753
+ </div>
754
+ <div class="rpt_features rpt_features_1">
755
+ <div class="rpt_feature rpt_feature_1-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 5 domains</span>5 websites<span class="rpt_tooltip_plus" > +</span></a></div>
756
+ <div class="rpt_feature rpt_feature_1-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
757
+ <div class="rpt_feature rpt_feature_1-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
758
+ <div class="rpt_feature rpt_feature_1-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
759
+ <div class="rpt_feature rpt_feature_1-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Show/hide the sticky menu on specific pages</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
760
+ <div class="rpt_feature rpt_feature_1-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
761
+ <div class="rpt_feature rpt_feature_1-6"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Including page targeting, delay and scroll triggers, devices, position, height, expiry date, open link in a new tab and remove credit</span>Welcome bar<span class="rpt_tooltip_plus"> +</span></a></div>
762
+ <div class="rpt_feature rpt_feature_0-9">
763
+ <select data-key="0" class="multiple-options">
764
+ <option data-header="Renewals for 25% off" data-price="39" value="<?php echo esc_url($pro_url."2") ?>">
765
+ <?php esc_html_e("Updates & support for 1 year") ?>
766
+ </option>
767
+ <option data-header="For 3 years" data-price="65" value="<?php echo esc_url($pro_url."6") ?>">
768
+ <?php esc_html_e("Updates & support for 3 years") ?>
769
+ </option>
770
+ <option data-header="For lifetime" data-price="99" value="<?php echo esc_url($pro_url."7") ?>">
771
+ <?php esc_html_e("Updates & support for lifetime") ?>
772
+ </option>
773
+ </select>
774
+ </div>
775
+ </div>
776
<div style="clear:both;"></div>
777
+ <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=2199&amp;edd_options[price_id]=2" class="rpt_foot rpt_foot_1">Buy now</a>
778
</div>
779
+ <div class="rpt_plan rpt_plan_2 ">
780
+ <div style="text-align:left;" class="rpt_title rpt_title_2">Agency</div>
781
+ <div class="rpt_head rpt_head_2">
782
+ <div class="rpt_recurrence rpt_recurrence_2">For agencies who manage clients</div>
783
+ <div class="rpt_price rpt_price_2">$79</div>
784
+ <div class="rpt_description rpt_description_2 rpt_desc">Per year. Renewals for 25% off</div>
785
+ <div style="clear:both;"></div>
786
+ </div>
787
+ <div class="rpt_features rpt_features_2">
788
+ <div class="rpt_feature rpt_feature_2-0"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Use myStickymenu on 50 domains</span>50 websites<span class="rpt_tooltip_plus" > +</span></a></div>
789
+ <div class="rpt_feature rpt_feature_2-1"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can show the menu when scrolling up, down or both</span>Show on scroll up/down<span class="rpt_tooltip_plus" > +</span></a></div>
790
+ <div class="rpt_feature rpt_feature_2-2"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>You can disable the sticky effect on desktop or mobile</span>Devices<span class="rpt_tooltip_plus" > +</span></a></div>
791
+ <div class="rpt_feature rpt_feature_2-3"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Add CSS of your own to the sticky menu</span>CSS style<span class="rpt_tooltip_plus" > +</span></a></div>
792
+ <div class="rpt_feature rpt_feature_2-4"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Show/hide the sticky menu on specific pages</span>Page targeting<span class="rpt_tooltip_plus" > +</span></a></div>
793
+ <div class="rpt_feature rpt_feature_2-5"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Fade/Slide, opacity, background color, transition time and more</span>Effects and more<span class="rpt_tooltip_plus" > +</span></a></div>
794
+ <div class="rpt_feature rpt_feature_2-6"><a href="javascript:;" class="rpt_tooltip"><span class="intool"><b></b>Including page targeting, delay and scroll triggers, devices, position, height, expiry date, open link in a new tab and remove credit</span>Welcome bar<span class="rpt_tooltip_plus"> +</span></a></div>
795
+ <div class="rpt_feature rpt_feature_0-9">
796
+ <select data-key="0" class="multiple-options">
797
+ <option data-header="Renewals for 25% off" data-price="79" value="<?php echo esc_url($pro_url."3") ?>">
798
+ <?php esc_html_e("Updates & support for 1 year") ?>
799
+ </option>
800
+ <option data-header="For 3 years" data-price="139" value="<?php echo esc_url($pro_url."8") ?>">
801
+ <?php esc_html_e("Updates & support for 3 years") ?>
802
+ </option>
803
+ <option data-header="For lifetime" data-price="199" value="<?php echo esc_url($pro_url."9") ?>">
804
+ <?php esc_html_e("Updates & support for lifetime") ?>
805
+ </option>
806
+ </select>
807
+ </div>
808
+ </div>
809
<div style="clear:both;"></div>
810
+ <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=2199&amp;edd_options[price_id]=3" class="rpt_foot rpt_foot_2">Buy now</a>
811
</div>
812
</div>
813
+ <div style="clear:both;"></div>
814
+ <div class="client-testimonial">
815
+ <p class="text-center"><span class="dashicons dashicons-yes"></span> 30 days money back guaranteed</p>
816
+ <p class="text-center"><span class="dashicons dashicons-yes"></span> The plugin will always keep working even if you don't renew your license</p>
817
+ <div class="payment">
818
+ <img src="<?php echo plugins_url("") ?>/mystickymenu/images/payment.png" alt="Payment" class="payment-img" />
819
</div>
820
+ <div class="testimonial-box">
821
+ <div class="testimonial-image">
822
+ <img src="<?php echo plugins_url("") ?>/mystickymenu/images/testimonial.png" style="top: 27px;">
823
+ </div>
824
+ <div class="testimonial-content">
825
+ This plugin does exactly what it should. It is simple but powerful. I would suggest to anyone who wants to make their menu sticky! I especially love the hide header on scroll down, show on scroll up feature that is built it. Great work!
826
+ <div class="author">Clayton Chase</div>
827
+ </div>
828
+ <div style="clear:both;"></div>
829
</div>
830
</div>
831
</div>
832
</div>
833
</div>
834
+ <?php
835
}
836
+
837
public function mysticky_default_options() {
838
839
global $options;
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.6
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.
@@ -42,6 +42,7 @@ My Sticky Menu is tested and compatible with Elementor website builder, Divi, WP
42
= WITH WELCOME BAR FEATURE YOU CAN: =
43
* Display your floating bar at top position
44
* Change the background and button colors for your hello bar
45
* Change font size and font family
46
* Set your own text and call-to-action button text
47
* Show the closing X on desktop/mobile
@@ -257,6 +258,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
257
258
259
== Changelog ==
260
= 2.2.6 =
261
Sanitize input fixes
262
= 2.2.5 =
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
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.
42
= WITH WELCOME BAR FEATURE YOU CAN: =
43
* Display your floating bar at top position
44
* Change the background and button colors for your hello bar
45
+ * Add an attention effect to your button and increase conversion and CTR
46
* Change font size and font family
47
* Set your own text and call-to-action button text
48
* Show the closing X on desktop/mobile
258
259
260
== Changelog ==
261
+ = 2.2.7 =
262
+ Added attention effects for the button
263
= 2.2.6 =
264
Sanitize input fixes
265
= 2.2.5 =
welcome-bar.php CHANGED
@@ -1,6 +1,7 @@
1
<?php
2
3
function mysticky_welcome_bar_backend() {
4
$nonce = wp_create_nonce('mysticky_option_welcomebar_update');
5
$nonce_reset = wp_create_nonce('mysticky_option_welcomebar_reset');
6
@@ -24,11 +25,12 @@ function mysticky_welcome_bar_backend() {
24
if( isset($welcomebar['mysticky_welcomebar_btn_mobile']) ) {
25
$mysticky_welcomebar_btn_mobile = ' mysticky-welcomebar-btn-mobile';
26
}
27
- $display_main_class = "mysticky-welcomebar-position-" . $welcomebar['mysticky_welcomebar_position'] . $mysticky_welcomebar_showx_desktop . $mysticky_welcomebar_showx_mobile . $mysticky_welcomebar_btn_desktop . $mysticky_welcomebar_btn_mobile;
28
?>
29
<form class="mysticky-welcomebar-form" id="mysticky_welcomebar_form" method="post" action="#">
30
<div class="mysticky-welcomebar-header-title">
31
- <h3><?php _e('Welcome Bar', 'myStickymenu'); ?></h3>
32
<label for="mysticky-welcomebar-contact-form-enabled" class="mysticky-welcomebar-switch">
33
<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' );?> />
34
<span class="slider"></span>
@@ -51,7 +53,7 @@ function mysticky_welcome_bar_backend() {
51
<input name="mysticky_option_welcomebar[mysticky_welcomebar_position]" value="bottom" type="radio" disabled />
52
<?php _e("Bottom", 'mystickymenu'); ?>
53
</label>
54
- <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
55
</div>
56
</div>
57
<div class="mysticky-welcomebar-setting-content">
@@ -61,7 +63,7 @@ function mysticky_welcome_bar_backend() {
61
<input type="number" class="" min="0" step="1" id="mysticky_welcomebar_height" name="mysticky_option_welcomebar[mysticky_welcomebar_height]" value="60" disabled />
62
<span class="input-px">PX</span>
63
</div>
64
- <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
65
</div>
66
</div>
67
<div class="mysticky-welcomebar-setting-content">
@@ -173,18 +175,36 @@ function mysticky_welcome_bar_backend() {
173
<input name="mysticky_option_welcomebar[mysticky_welcomebar_redirect_newtab]" value= "1" type="checkbox" disabled />
174
<?php _e( 'Open in a new tab', 'mystickymenu' );?>
175
</label>
176
- <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
177
</div>
178
</div>
179
</div>
180
<div class="mysticky-welcomebar-setting-content mysticky-welcomebar-setting-remove-getbar">
181
- <label><?php _e('Remove Get Bar', 'myStickymenu'); ?></label>
182
<div class="mysticky-welcomebar-setting-content-right">
183
<div class="mysticky-welcomebar-switch">
184
<input type="checkbox" id="mysticky-welcomebar-remove-getbar" name="mysticky_option_welcomebar[mysticky_welcomebar_remove_getbar]" value="1" disabled />
185
<span class="slider"></span>
186
</div>
187
- <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
188
</div>
189
</div>
190
</div>
@@ -194,7 +214,7 @@ function mysticky_welcome_bar_backend() {
194
</div>
195
<div class="mysticky-welcomebar-upgrade-main mysticky_device_upgrade">
196
<span class="myStickymenu-upgrade">
197
- <a class="sticky-header-upgrade-now" href="#" target="_blank"><?php _e( ' Upgrade Now', 'mystickymenu' );?></a>
198
</span>
199
<div class="mysticky-welcomebar-setting-content">
200
<label><?php _e('Devices', 'myStickymenu'); ?></label>
@@ -285,7 +305,7 @@ function mysticky_welcome_bar_backend() {
285
<a href="#" ><?php echo isset($welcomebar['mysticky_welcomebar_btn_text']) ? $welcomebar['mysticky_welcomebar_btn_text'] : "Got it!";?></a>
286
</div>
287
<a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
288
- <a href="#" class="mysticky-welcomebar-getbar"><?php _e( 'Get Bar', 'mystickymenu' );?></a>
289
</div>
290
</div>
291
</div>
@@ -305,14 +325,28 @@ function mysticky_welcome_bar_backend() {
305
<input type="hidden" name="nonce_reset" value="<?php echo $nonce_reset; ?>">
306
<input type="hidden" name="active_tab_element" value="1">
307
</form>
308
- <div id="mysticky-welcomebar-save-confirm" style="display:none;" title="<?php esc_attr_e( 'Welcome Bar is currently off', 'mystickymenu' ); ?>">
309
<p>
310
<?php _e('Your Welcome Bar is currently turned off, would you like to save and show it on your site?', 'mystickymenu' ); ?>
311
</p>
312
</div>
313
<style>
314
.mysticky-welcomebar-fixed {
315
- height: 60px;
316
background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
317
font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
318
position: absolute;
@@ -437,6 +471,344 @@ function mysticky_welcome_bar_backend() {
437
right: 0px;
438
}
439
}
440
</style>
441
442
<?php
@@ -491,11 +863,11 @@ function mysticky_welcome_bar_frontend(){
491
if( isset($welcomebar['mysticky_welcomebar_btn_mobile']) ) {
492
$mysticky_welcomebar_btn_mobile = ' mysticky-welcomebar-btn-mobile';
493
}
494
-
495
$mysticky_welcomebar_display_desktop = ' mysticky-welcomebar-display-desktop';
496
$mysticky_welcomebar_display_mobile = ' mysticky-welcomebar-display-mobile';
497
-
498
- $display_main_class = "mysticky-welcomebar-position-" . $welcomebar['mysticky_welcomebar_position'] . $mysticky_welcomebar_showx_desktop . $mysticky_welcomebar_showx_mobile . $mysticky_welcomebar_btn_desktop . $mysticky_welcomebar_btn_mobile . $mysticky_welcomebar_display_desktop . $mysticky_welcomebar_display_mobile;
499
500
if( isset($welcomebar['mysticky_welcomebar_actionselect']) ) {
501
if( $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' ) {
@@ -521,7 +893,7 @@ function mysticky_welcome_bar_frontend(){
521
<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>
522
</div>
523
<a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
524
- <a href="https://premio.io/downloads/mystickymenu/?utm_source=credit&domain=<?php echo $_SERVER['HTTP_HOST']; ?>" class="mysticky-welcomebar-getbar" target="_blank" rel="noopener"><?php _e( 'Get Bar', 'mystickymenu' );?></a>
525
</div>
526
<script>
527
@@ -752,6 +1124,19 @@ function mysticky_welcome_bar_frontend(){
752
}
753
}
754
}
755
</script>
756
<style>
757
.mysticky-welcomebar-fixed {
@@ -880,6 +1265,343 @@ function mysticky_welcome_bar_frontend(){
880
color: #000000 !important;
881
opacity: 0.5 !important;
882
}
883
@media only screen and (max-width: 767px) {
884
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
885
top: -60px;
1
<?php
2
3
function mysticky_welcome_bar_backend() {
4
+ $upgarde_url = admin_url("admin.php?page=my-stickymenu-upgrade");
5
$nonce = wp_create_nonce('mysticky_option_welcomebar_update');
6
$nonce_reset = wp_create_nonce('mysticky_option_welcomebar_reset');
7
25
if( isset($welcomebar['mysticky_welcomebar_btn_mobile']) ) {
26
$mysticky_welcomebar_btn_mobile = ' mysticky-welcomebar-btn-mobile';
27
}
28
+ $display = ' mysticky-welcomebar-attention-'.$welcomebar['mysticky_welcomebar_attentionselect'];
29
+ $display_main_class = "mysticky-welcomebar-position-" . $welcomebar['mysticky_welcomebar_position'] . $mysticky_welcomebar_showx_desktop . $mysticky_welcomebar_showx_mobile . $mysticky_welcomebar_btn_desktop . $mysticky_welcomebar_btn_mobile . $display;
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('myStickymenu', '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>
53
<input name="mysticky_option_welcomebar[mysticky_welcomebar_position]" value="bottom" type="radio" disabled />
54
<?php _e("Bottom", 'mystickymenu'); ?>
55
</label>
56
+ <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
57
</div>
58
</div>
59
<div class="mysticky-welcomebar-setting-content">
63
<input type="number" class="" min="0" step="1" id="mysticky_welcomebar_height" name="mysticky_option_welcomebar[mysticky_welcomebar_height]" value="60" disabled />
64
<span class="input-px">PX</span>
65
</div>
66
+ <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
67
</div>
68
</div>
69
<div class="mysticky-welcomebar-setting-content">
175
<input name="mysticky_option_welcomebar[mysticky_welcomebar_redirect_newtab]" value= "1" type="checkbox" disabled />
176
<?php _e( 'Open in a new tab', 'mystickymenu' );?>
177
</label>
178
+ <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
179
</div>
180
</div>
181
</div>
182
+ <!-- -->
183
+ <div class="mysticky-welcomebar-setting-content">
184
+ <label><?php _e('Attention Effect', 'myStickymenu'); ?></label>
185
+ <div class="mysticky-welcomebar-setting-content-right">
186
+ <div class="mysticky-welcomebar-setting-attention">
187
+ <select name="mysticky_option_welcomebar[mysticky_welcomebar_attentionselect]" class="mysticky-welcomebar-attention">
188
+ <option value="default" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], ' ' ); ?>><?php _e( 'None', 'myStickymenu' );?></option>
189
+ <option value="flash" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'flash' ); ?>><?php _e( 'Flash', 'myStickymenu' );?></option>
190
+ <option value="shake" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'shake' ); ?>><?php _e( 'Shake', 'myStickymenu' );?></option>
191
+ <option value="swing" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'swing' ); ?>><?php _e( 'Swing', 'myStickymenu' );?></option>
192
+ <option value="tada" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'tada' ); ?>><?php _e( 'Tada', 'myStickymenu' );?></option>
193
+ <option value="heartbeat" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'heartbeat' ); ?>><?php _e( 'Heartbeat', 'myStickymenu' );?></option>
194
+ <option value="wobble" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'wobble' ); ?>><?php _e( 'Wobble', 'myStickymenu' );?></option>
195
+ </select>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ <!-- -->
200
<div class="mysticky-welcomebar-setting-content mysticky-welcomebar-setting-remove-getbar">
201
+ <label><?php _e('Remove myStickymenu', 'myStickymenu'); ?></label>
202
<div class="mysticky-welcomebar-setting-content-right">
203
<div class="mysticky-welcomebar-switch">
204
<input type="checkbox" id="mysticky-welcomebar-remove-getbar" name="mysticky_option_welcomebar[mysticky_welcomebar_remove_getbar]" value="1" disabled />
205
<span class="slider"></span>
206
</div>
207
+ <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
208
</div>
209
</div>
210
</div>
214
</div>
215
<div class="mysticky-welcomebar-upgrade-main mysticky_device_upgrade">
216
<span class="myStickymenu-upgrade">
217
+ <a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( ' Upgrade Now', 'mystickymenu' );?></a>
218
</span>
219
<div class="mysticky-welcomebar-setting-content">
220
<label><?php _e('Devices', 'myStickymenu'); ?></label>
305
<a href="#" ><?php echo isset($welcomebar['mysticky_welcomebar_btn_text']) ? $welcomebar['mysticky_welcomebar_btn_text'] : "Got it!";?></a>
306
</div>
307
<a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
308
+ <a href="#" class="mysticky-welcomebar-getbar"><?php _e( 'myStickymenu', 'mystickymenu' );?></a>
309
</div>
310
</div>
311
</div>
325
<input type="hidden" name="nonce_reset" value="<?php echo $nonce_reset; ?>">
326
<input type="hidden" name="active_tab_element" value="1">
327
</form>
328
+ <div id="mysticky-welcomebar-save-confirm" style="display:none;" title="<?php esc_attr_e( 'myStickymenu is currently off', 'mystickymenu' ); ?>">
329
<p>
330
<?php _e('Your Welcome Bar is currently turned off, would you like to save and show it on your site?', 'mystickymenu' ); ?>
331
</p>
332
</div>
333
+ <script>
334
+ jQuery(".mysticky-welcomebar-fixed").on(
335
+ "animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",
336
+ function() {
337
+ jQuery(this).removeClass("animation-start");
338
+ }
339
+ );
340
+ jQuery(document).ready(function() {
341
+ var container = jQuery(".mysticky-welcomebar-fixed");
342
+ var refreshId = setInterval(function() {
343
+ container.addClass("animation-start");
344
+ }, 3500);
345
+ });
346
+ </script>
347
<style>
348
.mysticky-welcomebar-fixed {
349
+ height: 80px;
350
background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
351
font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
352
position: absolute;
471
right: 0px;
472
}
473
}
474
+
475
+ /* Animated Buttons */
476
+ .mysticky-welcomebar-btn a {
477
+ -webkit-animation: 1s;
478
+ animation-duration: 1s;
479
+ }
480
+ @-webkit-keyframes flash {
481
+ from,
482
+ 50%,
483
+ to {
484
+ opacity: 1;
485
+ }
486
+
487
+ 25%,
488
+ 75% {
489
+ opacity: 0;
490
+ }
491
+ }
492
+ @keyframes flash {
493
+ from,
494
+ 50%,
495
+ to {
496
+ opacity: 1;
497
+ }
498
+
499
+ 25%,
500
+ 75% {
501
+ opacity: 0;
502
+ }
503
+ }
504
+ .mysticky-welcomebar-attention-flash.animation-start .mysticky-welcomebar-btn a {
505
+ -webkit-animation-name: flash;
506
+ animation-name: flash;
507
+ }
508
+
509
+ @keyframes shake {
510
+ from,
511
+ to {
512
+ -webkit-transform: translate3d(0, 0, 0);
513
+ transform: translate3d(0, 0, 0);
514
+ }
515
+
516
+ 10%,
517
+ 30%,
518
+ 50%,
519
+ 70%,
520
+ 90% {
521
+ -webkit-transform: translate3d(-10px, 0, 0);
522
+ transform: translate3d(-10px, 0, 0);
523
+ }
524
+
525
+ 20%,
526
+ 40%,
527
+ 60%,
528
+ 80% {
529
+ -webkit-transform: translate3d(10px, 0, 0);
530
+ transform: translate3d(10px, 0, 0);
531
+ }
532
+ }
533
+
534
+ .mysticky-welcomebar-attention-shake.animation-start .mysticky-welcomebar-btn a {
535
+ -webkit-animation-name: shake;
536
+ animation-name: shake;
537
+ }
538
+
539
+ @-webkit-keyframes swing {
540
+ 20% {
541
+ -webkit-transform: rotate3d(0, 0, 1, 15deg);
542
+ transform: rotate3d(0, 0, 1, 15deg);
543
+ }
544
+
545
+ 40% {
546
+ -webkit-transform: rotate3d(0, 0, 1, -10deg);
547
+ transform: rotate3d(0, 0, 1, -10deg);
548
+ }
549
+
550
+ 60% {
551
+ -webkit-transform: rotate3d(0, 0, 1, 5deg);
552
+ transform: rotate3d(0, 0, 1, 5deg);
553
+ }
554
+
555
+ 80% {
556
+ -webkit-transform: rotate3d(0, 0, 1, -5deg);
557
+ transform: rotate3d(0, 0, 1, -5deg);
558
+ }
559
+
560
+ to {
561
+ -webkit-transform: rotate3d(0, 0, 1, 0deg);
562
+ transform: rotate3d(0, 0, 1, 0deg);
563
+ }
564
+ }
565
+
566
+ @keyframes swing {
567
+ 20% {
568
+ -webkit-transform: rotate3d(0, 0, 1, 15deg);
569
+ transform: rotate3d(0, 0, 1, 15deg);
570
+ }
571
+
572
+ 40% {
573
+ -webkit-transform: rotate3d(0, 0, 1, -10deg);
574
+ transform: rotate3d(0, 0, 1, -10deg);
575
+ }
576
+
577
+ 60% {
578
+ -webkit-transform: rotate3d(0, 0, 1, 5deg);
579
+ transform: rotate3d(0, 0, 1, 5deg);
580
+ }
581
+
582
+ 80% {
583
+ -webkit-transform: rotate3d(0, 0, 1, -5deg);
584
+ transform: rotate3d(0, 0, 1, -5deg);
585
+ }
586
+
587
+ to {
588
+ -webkit-transform: rotate3d(0, 0, 1, 0deg);
589
+ transform: rotate3d(0, 0, 1, 0deg);
590
+ }
591
+ }
592
+
593
+ .mysticky-welcomebar-attention-swing.animation-start .mysticky-welcomebar-btn a {
594
+ -webkit-transform-origin: top center;
595
+ transform-origin: top center;
596
+ -webkit-animation-name: swing;
597
+ animation-name: swing;
598
+ }
599
+
600
+ @-webkit-keyframes tada {
601
+ from {
602
+ -webkit-transform: scale3d(1, 1, 1);
603
+ transform: scale3d(1, 1, 1);
604
+ }
605
+
606
+ 10%,
607
+ 20% {
608
+ -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
609
+ transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
610
+ }
611
+
612
+ 30%,
613
+ 50%,
614
+ 70%,
615
+ 90% {
616
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
617
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
618
+ }
619
+
620
+ 40%,
621
+ 60%,
622
+ 80% {
623
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
624
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
625
+ }
626
+
627
+ to {
628
+ -webkit-transform: scale3d(1, 1, 1);
629
+ transform: scale3d(1, 1, 1);
630
+ }
631
+ }
632
+
633
+ @keyframes tada {
634
+ from {
635
+ -webkit-transform: scale3d(1, 1, 1);
636
+ transform: scale3d(1, 1, 1);
637
+ }
638
+
639
+ 10%,
640
+ 20% {
641
+ -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
642
+ transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
643
+ }
644
+
645
+ 30%,
646
+ 50%,
647
+ 70%,
648
+ 90% {
649
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
650
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
651
+ }
652
+
653
+ 40%,
654
+ 60%,
655
+ 80% {
656
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
657
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
658
+ }
659
+
660
+ to {
661
+ -webkit-transform: scale3d(1, 1, 1);
662
+ transform: scale3d(1, 1, 1);
663
+ }
664
+ }
665
+
666
+ .mysticky-welcomebar-attention-tada.animation-start .mysticky-welcomebar-btn a {
667
+ -webkit-animation-name: tada;
668
+ animation-name: tada;
669
+ }
670
+
671
+ @-webkit-keyframes heartBeat {
672
+ 0% {
673
+ -webkit-transform: scale(1);
674
+ transform: scale(1);
675
+ }
676
+
677
+ 14% {
678
+ -webkit-transform: scale(1.3);
679
+ transform: scale(1.3);
680
+ }
681
+
682
+ 28% {
683
+ -webkit-transform: scale(1);
684
+ transform: scale(1);
685
+ }
686
+
687
+ 42% {
688
+ -webkit-transform: scale(1.3);
689
+ transform: scale(1.3);
690
+ }
691
+
692
+ 70% {
693
+ -webkit-transform: scale(1);
694
+ transform: scale(1);
695
+ }
696
+ }
697
+
698
+ @keyframes heartBeat {
699
+ 0% {
700
+ -webkit-transform: scale(1);
701
+ transform: scale(1);
702
+ }
703
+
704
+ 14% {
705
+ -webkit-transform: scale(1.3);
706
+ transform: scale(1.3);
707
+ }
708
+
709
+ 28% {
710
+ -webkit-transform: scale(1);
711
+ transform: scale(1);
712
+ }
713
+
714
+ 42% {
715
+ -webkit-transform: scale(1.3);
716
+ transform: scale(1.3);
717
+ }
718
+
719
+ 70% {
720
+ -webkit-transform: scale(1);
721
+ transform: scale(1);
722
+ }
723
+ }
724
+
725
+ .mysticky-welcomebar-attention-heartbeat.animation-start .mysticky-welcomebar-btn a {
726
+ -webkit-animation-name: heartBeat;
727
+ animation-name: heartBeat;
728
+ -webkit-animation-duration: 1.3s;
729
+ animation-duration: 1.3s;
730
+ -webkit-animation-timing-function: ease-in-out;
731
+ animation-timing-function: ease-in-out;
732
+ }
733
+
734
+ @-webkit-keyframes wobble {
735
+ from {
736
+ -webkit-transform: translate3d(0, 0, 0);
737
+ transform: translate3d(0, 0, 0);
738
+ }
739
+
740
+ 15% {
741
+ -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
742
+ transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
743
+ }
744
+
745
+ 30% {
746
+ -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
747
+ transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
748
+ }
749
+
750
+ 45% {
751
+ -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
752
+ transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
753
+ }
754
+
755
+ 60% {
756
+ -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
757
+ transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
758
+ }
759
+
760
+ 75% {
761
+ -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
762
+ transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
763
+ }
764
+
765
+ to {
766
+ -webkit-transform: translate3d(0, 0, 0);
767
+ transform: translate3d(0, 0, 0);
768
+ }
769
+ }
770
+
771
+ @keyframes wobble {
772
+ from {
773
+ -webkit-transform: translate3d(0, 0, 0);
774
+ transform: translate3d(0, 0, 0);
775
+ }
776
+
777
+ 15% {
778
+ -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
779
+ transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
780
+ }
781
+
782
+ 30% {
783
+ -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
784
+ transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
785
+ }
786
+
787
+ 45% {
788
+ -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
789
+ transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
790
+ }
791
+
792
+ 60% {
793
+ -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
794
+ transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
795
+ }
796
+
797
+ 75% {
798
+ -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
799
+ transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
800
+ }
801
+
802
+ to {
803
+ -webkit-transform: translate3d(0, 0, 0);
804
+ transform: translate3d(0, 0, 0);
805
+ }
806
+ }
807
+
808
+ .mysticky-welcomebar-attention-wobble.animation-start .mysticky-welcomebar-btn a {
809
+ -webkit-animation-name: wobble;
810
+ animation-name: wobble;
811
+ }
812
</style>
813
814
<?php
863
if( isset($welcomebar['mysticky_welcomebar_btn_mobile']) ) {
864
$mysticky_welcomebar_btn_mobile = ' mysticky-welcomebar-btn-mobile';
865
}
866
+ $display = ' mysticky-welcomebar-attention-'.$welcomebar['mysticky_welcomebar_attentionselect'];
867
$mysticky_welcomebar_display_desktop = ' mysticky-welcomebar-display-desktop';
868
$mysticky_welcomebar_display_mobile = ' mysticky-welcomebar-display-mobile';
869
+
870
+ $display_main_class = "mysticky-welcomebar-position-" . $welcomebar['mysticky_welcomebar_position'] . $mysticky_welcomebar_showx_desktop . $mysticky_welcomebar_showx_mobile . $mysticky_welcomebar_btn_desktop . $mysticky_welcomebar_btn_mobile . $mysticky_welcomebar_display_desktop . $mysticky_welcomebar_display_mobile .$display;
871
872
if( isset($welcomebar['mysticky_welcomebar_actionselect']) ) {
873
if( $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' ) {
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>
894
</div>
895
<a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
896
+ <a href="https://premio.io/downloads/mystickymenu/?utm_source=credit&domain=<?php echo $_SERVER['HTTP_HOST']; ?>" class="mysticky-welcomebar-getbar" target="_blank" rel="noopener"><?php _e( 'myStickymenu', 'mystickymenu' );?></a>
897
</div>
898
<script>
899
1124
}
1125
}
1126
}
1127
+ jQuery(".mysticky-welcomebar-fixed").on(
1128
+ "animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",
1129
+ function() {
1130
+ jQuery(this).removeClass("animation-start");
1131
+ }
1132
+ );
1133
+ jQuery(document).ready(function() {
1134
+ var container = jQuery(".mysticky-welcomebar-fixed");
1135
+ var refreshId = setInterval(function() {
1136
+ container.addClass("animation-start");
1137
+ }, 3500);
1138
+ });
1139
+
1140
</script>
1141
<style>
1142
.mysticky-welcomebar-fixed {
1265
color: #000000 !important;
1266
opacity: 0.5 !important;
1267
}
1268
+ /* Animated Buttons */
1269
+ .mysticky-welcomebar-btn a {
1270
+ animation-duration: 1s;
1271
+ -webkit-animation-duration: 1s;
1272
+ }
1273
+ @-webkit-keyframes flash {
1274
+ from,
1275
+ 50%,
1276
+ to {
1277
+ opacity: 1;
1278
+ }
1279
+
1280
+ 25%,
1281
+ 75% {
1282
+ opacity: 0;
1283
+ }
1284
+ }
1285
+ @keyframes flash {
1286
+ from,
1287
+ 50%,
1288
+ to {
1289
+ opacity: 1;
1290
+ }
1291
+
1292
+ 25%,
1293
+ 75% {
1294
+ opacity: 0;
1295
+ }
1296
+ }
1297
+ .mysticky-welcomebar-attention-flash.animation-start .mysticky-welcomebar-btn a {
1298
+ -webkit-animation-name: flash;
1299
+ animation-name: flash;
1300
+ }
1301
+
1302
+ @keyframes shake {
1303
+ from,
1304
+ to {
1305
+ -webkit-transform: translate3d(0, 0, 0);
1306
+ transform: translate3d(0, 0, 0);
1307
+ }
1308
+
1309
+ 10%,
1310
+ 30%,
1311
+ 50%,
1312
+ 70%,
1313
+ 90% {
1314
+ -webkit-transform: translate3d(-10px, 0, 0);
1315
+ transform: translate3d(-10px, 0, 0);
1316
+ }
1317
+
1318
+ 20%,
1319
+ 40%,
1320
+ 60%,
1321
+ 80% {
1322
+ -webkit-transform: translate3d(10px, 0, 0);
1323
+ transform: translate3d(10px, 0, 0);
1324
+ }
1325
+ }
1326
+
1327
+ .mysticky-welcomebar-attention-shake.animation-start .mysticky-welcomebar-btn a {
1328
+ -webkit-animation-name: shake;
1329
+ animation-name: shake;
1330
+ }
1331
+
1332
+ @-webkit-keyframes swing {
1333
+ 20% {
1334
+ -webkit-transform: rotate3d(0, 0, 1, 15deg);
1335
+ transform: rotate3d(0, 0, 1, 15deg);
1336
+ }
1337
+
1338
+ 40% {
1339
+ -webkit-transform: rotate3d(0, 0, 1, -10deg);
1340
+ transform: rotate3d(0, 0, 1, -10deg);
1341
+ }
1342
+
1343
+ 60% {
1344
+ -webkit-transform: rotate3d(0, 0, 1, 5deg);
1345
+ transform: rotate3d(0, 0, 1, 5deg);
1346
+ }
1347
+
1348
+ 80% {
1349
+ -webkit-transform: rotate3d(0, 0, 1, -5deg);
1350
+ transform: rotate3d(0, 0, 1, -5deg);
1351
+ }
1352
+
1353
+ to {
1354
+ -webkit-transform: rotate3d(0, 0, 1, 0deg);
1355
+ transform: rotate3d(0, 0, 1, 0deg);
1356
+ }
1357
+ }
1358
+
1359
+ @keyframes swing {
1360
+ 20% {
1361
+ -webkit-transform: rotate3d(0, 0, 1, 15deg);
1362
+ transform: rotate3d(0, 0, 1, 15deg);
1363
+ }
1364
+
1365
+ 40% {
1366
+ -webkit-transform: rotate3d(0, 0, 1, -10deg);
1367
+ transform: rotate3d(0, 0, 1, -10deg);
1368
+ }
1369
+
1370
+ 60% {
1371
+ -webkit-transform: rotate3d(0, 0, 1, 5deg);
1372
+ transform: rotate3d(0, 0, 1, 5deg);
1373
+ }
1374
+
1375
+ 80% {
1376
+ -webkit-transform: rotate3d(0, 0, 1, -5deg);
1377
+ transform: rotate3d(0, 0, 1, -5deg);
1378
+ }
1379
+
1380
+ to {
1381
+ -webkit-transform: rotate3d(0, 0, 1, 0deg);
1382
+ transform: rotate3d(0, 0, 1, 0deg);
1383
+ }
1384
+ }
1385
+
1386
+ .mysticky-welcomebar-attention-swing.animation-start .mysticky-welcomebar-btn a {
1387
+ -webkit-transform-origin: top center;
1388
+ transform-origin: top center;
1389
+ -webkit-animation-name: swing;
1390
+ animation-name: swing;
1391
+ }
1392
+
1393
+ @-webkit-keyframes tada {
1394
+ from {
1395
+ -webkit-transform: scale3d(1, 1, 1);
1396
+ transform: scale3d(1, 1, 1);
1397
+ }
1398
+
1399
+ 10%,
1400
+ 20% {
1401
+ -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1402
+ transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1403
+ }
1404
+
1405
+ 30%,
1406
+ 50%,
1407
+ 70%,
1408
+ 90% {
1409
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1410
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1411
+ }
1412
+
1413
+ 40%,
1414
+ 60%,
1415
+ 80% {
1416
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1417
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1418
+ }
1419
+
1420
+ to {
1421
+ -webkit-transform: scale3d(1, 1, 1);
1422
+ transform: scale3d(1, 1, 1);
1423
+ }
1424
+ }
1425
+
1426
+ @keyframes tada {
1427
+ from {
1428
+ -webkit-transform: scale3d(1, 1, 1);
1429
+ transform: scale3d(1, 1, 1);
1430
+ }
1431
+
1432
+ 10%,
1433
+ 20% {
1434
+ -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1435
+ transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1436
+ }
1437
+
1438
+ 30%,
1439
+ 50%,
1440
+ 70%,
1441
+ 90% {
1442
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1443
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1444
+ }
1445
+
1446
+ 40%,
1447
+ 60%,
1448
+ 80% {
1449
+ -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1450
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1451
+ }
1452
+
1453
+ to {
1454
+ -webkit-transform: scale3d(1, 1, 1);
1455
+ transform: scale3d(1, 1, 1);
1456
+ }
1457
+ }
1458
+
1459
+ .mysticky-welcomebar-attention-tada.animation-start .mysticky-welcomebar-btn a {
1460
+ -webkit-animation-name: tada;
1461
+ animation-name: tada;
1462
+ }
1463
+
1464
+ @-webkit-keyframes heartBeat {
1465
+ 0% {
1466
+ -webkit-transform: scale(1);
1467
+ transform: scale(1);
1468
+ }
1469
+
1470
+ 14% {
1471
+ -webkit-transform: scale(1.3);
1472
+ transform: scale(1.3);
1473
+ }
1474
+
1475
+ 28% {
1476
+ -webkit-transform: scale(1);
1477
+ transform: scale(1);
1478
+ }
1479
+
1480
+ 42% {
1481
+ -webkit-transform: scale(1.3);
1482
+ transform: scale(1.3);
1483
+ }
1484
+
1485
+ 70% {
1486
+ -webkit-transform: scale(1);
1487
+ transform: scale(1);
1488
+ }
1489
+ }
1490
+
1491
+ @keyframes heartBeat {
1492
+ 0% {
1493
+ -webkit-transform: scale(1);
1494
+ transform: scale(1);
1495
+ }
1496
+
1497
+ 14% {
1498
+ -webkit-transform: scale(1.3);
1499
+ transform: scale(1.3);
1500
+ }
1501
+
1502
+ 28% {
1503
+ -webkit-transform: scale(1);
1504
+ transform: scale(1);
1505
+ }
1506
+
1507
+ 42% {
1508
+ -webkit-transform: scale(1.3);
1509
+ transform: scale(1.3);
1510
+ }
1511
+
1512
+ 70% {
1513
+ -webkit-transform: scale(1);
1514
+ transform: scale(1);
1515
+ }
1516
+ }
1517
+
1518
+ .mysticky-welcomebar-attention-heartbeat.animation-start .mysticky-welcomebar-btn a {
1519
+ -webkit-animation-name: heartBeat;
1520
+ animation-name: heartBeat;
1521
+ -webkit-animation-duration: 1.3s;
1522
+ animation-duration: 1.3s;
1523
+ -webkit-animation-timing-function: ease-in-out;
1524
+ animation-timing-function: ease-in-out;
1525
+ }
1526
+
1527
+ @-webkit-keyframes wobble {
1528
+ from {
1529
+ -webkit-transform: translate3d(0, 0, 0);
1530
+ transform: translate3d(0, 0, 0);
1531
+ }
1532
+
1533
+ 15% {
1534
+ -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1535
+ transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1536
+ }
1537
+
1538
+ 30% {
1539
+ -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1540
+ transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1541
+ }
1542
+
1543
+ 45% {
1544
+ -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1545
+ transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1546
+ }
1547
+
1548
+ 60% {
1549
+ -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1550
+ transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1551
+ }
1552
+
1553
+ 75% {
1554
+ -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1555
+ transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1556
+ }
1557
+
1558
+ to {
1559
+ -webkit-transform: translate3d(0, 0, 0);
1560
+ transform: translate3d(0, 0, 0);
1561
+ }
1562
+ }
1563
+
1564
+ @keyframes wobble {
1565
+ from {
1566
+ -webkit-transform: translate3d(0, 0, 0);
1567
+ transform: translate3d(0, 0, 0);
1568
+ }
1569
+
1570
+ 15% {
1571
+ -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1572
+ transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1573
+ }
1574
+
1575
+ 30% {
1576
+ -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1577
+ transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1578
+ }
1579
+
1580
+ 45% {
1581
+ -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1582
+ transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1583
+ }
1584
+
1585
+ 60% {
1586
+ -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1587
+ transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1588
+ }
1589
+
1590
+ 75% {
1591
+ -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1592
+ transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1593
+ }
1594
+
1595
+ to {
1596
+ -webkit-transform: translate3d(0, 0, 0);
1597
+ transform: translate3d(0, 0, 0);
1598
+ }
1599
+ }
1600
+
1601
+ .mysticky-welcomebar-attention-wobble.animation-start .mysticky-welcomebar-btn a {
1602
+ -webkit-animation-name: wobble;
1603
+ animation-name: wobble;
1604
+ }
1605
@media only screen and (max-width: 767px) {
1606
.mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
1607
top: -60px;