PluginProbe ʕ •ᴥ•ʔ
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) / 2.3.7
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) v2.3.7
2.9.1 2.9.0 2.8.9 2.8.8 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 2.0 2.0.1 2.0.3 2.0.4 2.0.5 2.0.6 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7
mystickymenu / welcome-bar.php
mystickymenu Last commit date
css 6 years ago fonts 7 years ago images 6 years ago js 6 years ago languages 7 years ago class-review-box.php 6 years ago index.php 8 years ago mystickymenu-affiliate.php 6 years ago mystickymenu-fonts.php 6 years ago mystickymenu.php 6 years ago readme.txt 6 years ago uninstall.php 7 years ago welcome-bar.php 6 years ago
welcome-bar.php
1701 lines
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
8 $welcomebar = get_option( 'mysticky_option_welcomebar' );
9 if ( $welcomebar == '' || empty($welcomebar)) {
10 $welcomebar = mysticky_welcomebar_pro_widget_default_fields();
11 }
12
13 $mysticky_welcomebar_showx_desktop = $mysticky_welcomebar_showx_mobile = '';
14 $mysticky_welcomebar_btn_desktop = $mysticky_welcomebar_btn_mobile = '';
15 $mysticky_welcomebar_display_desktop = $mysticky_welcomebar_display_mobile = '';
16 if( isset($welcomebar['mysticky_welcomebar_x_desktop']) ) {
17 $mysticky_welcomebar_showx_desktop = ' mysticky-welcomebar-showx-desktop';
18 }
19 if( isset($welcomebar['mysticky_welcomebar_x_mobile']) ) {
20 $mysticky_welcomebar_showx_mobile = ' mysticky-welcomebar-showx-mobile';
21 }
22 if( isset($welcomebar['mysticky_welcomebar_btn_desktop']) ) {
23 $mysticky_welcomebar_btn_desktop = ' mysticky-welcomebar-btn-desktop';
24 }
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('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>
37 </label>
38 </div>
39 <div class="mysticky-welcomebar-setting-wrap">
40 <div class="mysticky-welcomebar-setting-left">
41 <div class="mysticky-welcomebar-setting-block">
42 <div class="mysticky-welcomebar-subheader-title">
43 <h4><?php _e('Design', 'myStickymenu'); ?></h4>
44 </div>
45 <div class="mysticky-welcomebar-setting-content mysticky-welcomebar-setting-position">
46 <label><?php _e('Position', 'myStickymenu'); ?></label>
47 <div class="mysticky-welcomebar-setting-content-right">
48 <label>
49 <input name="mysticky_option_welcomebar[mysticky_welcomebar_position]" value= "top" type="radio" <?php checked( @$welcomebar['mysticky_welcomebar_position'], 'top' );?> />
50 <?php _e("Top", 'mystickymenu'); ?>
51 </label>
52 <label>
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">
60 <label><?php _e('Height', 'myStickymenu'); ?></label>
61 <div class="mysticky-welcomebar-setting-content-right">
62 <div class="px-wrap">
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">
70 <label><?php _e('Background Color', 'myStickymenu'); ?></label>
71 <div class="mysticky-welcomebar-setting-content-right mysticky-welcomebar-colorpicker">
72 <input type="text" id="mysticky_welcomebar_bgcolor" name="mysticky_option_welcomebar[mysticky_welcomebar_bgcolor]" class="my-color-field" data-alpha="true" value="<?php echo $welcomebar['mysticky_welcomebar_bgcolor'];?>" />
73 </div>
74 </div>
75 <div class="mysticky-welcomebar-setting-content">
76 <label><?php _e('Background Text Color', 'myStickymenu'); ?></label>
77 <div class="mysticky-welcomebar-setting-content-right mysticky-welcomebar-colorpicker">
78 <input type="text" id="mysticky_welcomebar_bgtxtcolor" name="mysticky_option_welcomebar[mysticky_welcomebar_bgtxtcolor]" class="my-color-field" data-alpha="true" value="<?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'];?>" />
79 </div>
80 </div>
81 <div class="mysticky-welcomebar-setting-content">
82 <label><?php _e('Font', 'myStickymenu'); ?></label>
83 <div class="mysticky-welcomebar-setting-content-right">
84 <select name="mysticky_option_welcomebar[mysticky_welcomebar_font]" class="form-fonts">
85 <option value=""><?php _e( 'Select font family', 'myStickymenu' );?></option>
86 <?php $group= ''; foreach( myStickymenu_fonts() as $key=>$value):
87 if ($value != $group){
88 echo '<optgroup label="' . $value . '">';
89 $group = $value;
90 }
91 ?>
92 <option value="<?php echo esc_attr($key);?>" <?php selected( @$welcomebar['mysticky_welcomebar_font'], $key ); ?>><?php echo esc_html($key);?></option>
93 <?php endforeach;?>
94 </select>
95 </div>
96 </div>
97 <div class="mysticky-welcomebar-setting-content">
98 <label><?php _e('Font Size', 'myStickymenu'); ?></label>
99 <div class="mysticky-welcomebar-setting-content-right">
100 <div class="px-wrap">
101 <input type="number" class="" min="0" step="1" id="mysticky_welcomebar_fontsize" name="mysticky_option_welcomebar[mysticky_welcomebar_fontsize]" value="<?php echo @$welcomebar['mysticky_welcomebar_fontsize'];?>" />
102 <span class="input-px">PX</span>
103 </div>
104 </div>
105 </div>
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">
113 <label><?php _e('Show X', 'myStickymenu'); ?></label>
114 <div class="mysticky-welcomebar-setting-content-right">
115 <label>
116 <input name="mysticky_option_welcomebar[mysticky_welcomebar_x_desktop]" value= "desktop" type="checkbox" <?php checked( @$welcomebar['mysticky_welcomebar_x_desktop'], 'desktop' );?> />
117 <?php _e( 'Desktop', 'mystickymenu' );?>
118 </label>
119 <label>
120 <input name="mysticky_option_welcomebar[mysticky_welcomebar_x_mobile]" value= "mobile" type="checkbox" <?php checked( @$welcomebar['mysticky_welcomebar_x_mobile'], 'mobile' );?> />
121 <?php _e( 'Mobile', 'mystickymenu' );?>
122 </label>
123 </div>
124 </div>
125 </div>
126 <div class="mysticky-welcomebar-setting-block">
127 <div class="mysticky-welcomebar-subheader-title">
128 <h4><?php _e('Button', 'myStickymenu'); ?></h4>
129 </div>
130 <div class="mysticky-welcomebar-setting-content">
131 <label><?php _e('Button', 'myStickymenu'); ?></label>
132 <div class="mysticky-welcomebar-setting-content-right">
133 <label>
134 <input name="mysticky_option_welcomebar[mysticky_welcomebar_btn_desktop]" value= "desktop" type="checkbox" <?php checked( @$welcomebar['mysticky_welcomebar_btn_desktop'], 'desktop' );?> />
135 <?php _e( 'Desktop', 'mystickymenu' );?>
136 </label>
137 <label>
138 <input name="mysticky_option_welcomebar[mysticky_welcomebar_btn_mobile]" value= "mobile" type="checkbox"<?php checked( @$welcomebar['mysticky_welcomebar_btn_mobile'], 'mobile' );?> />
139 <?php _e( 'Mobile', 'mystickymenu' );?>
140 </label>
141 </div>
142 </div>
143 <div class="mysticky-welcomebar-setting-content">
144 <label><?php _e('Button Color', 'myStickymenu'); ?></label>
145 <div class="mysticky-welcomebar-setting-content-right mysticky-welcomebar-colorpicker mysticky_welcomebar_btn_color">
146 <input type="text" id="mysticky_welcomebar_btncolor" name="mysticky_option_welcomebar[mysticky_welcomebar_btncolor]" class="my-color-field" data-alpha="true" value="<?php echo esc_attr($welcomebar['mysticky_welcomebar_btncolor']);?>" />
147 </div>
148 </div>
149 <div class="mysticky-welcomebar-setting-content">
150 <label><?php _e('Button Text Color', 'myStickymenu'); ?></label>
151 <div class="mysticky-welcomebar-setting-content-right mysticky-welcomebar-colorpicker mysticky_welcomebar_btn_color">
152 <input type="text" id="mysticky_welcomebar_btntxtcolor" name="mysticky_option_welcomebar[mysticky_welcomebar_btntxtcolor]" class="my-color-field" data-alpha="true" value="<?php echo $welcomebar['mysticky_welcomebar_btntxtcolor'];?>" />
153 </div>
154 </div>
155 <div class="mysticky-welcomebar-setting-content">
156 <label><?php _e('Button Text', 'myStickymenu'); ?></label>
157 <div class="mysticky-welcomebar-setting-content-right">
158 <input type="text" id="mysticky_welcomebar_btn_text" class="mystickyinput mysticky_welcomebar_disable" name="mysticky_option_welcomebar[mysticky_welcomebar_btn_text]" value="<?php echo $welcomebar['mysticky_welcomebar_btn_text'];?>" />
159 </div>
160 </div>
161 <!-- -->
162 <div class="mysticky-welcomebar-setting-content">
163 <label><?php _e('Attention Effect', 'myStickymenu'); ?></label>
164 <div class="mysticky-welcomebar-setting-content-right">
165 <div class="mysticky-welcomebar-setting-attention">
166 <select name="mysticky_option_welcomebar[mysticky_welcomebar_attentionselect]" class="mysticky-welcomebar-attention mysticky_welcomebar_disable">
167 <option value="default" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], ' ' ); ?>><?php _e( 'None', 'myStickymenu' );?></option>
168 <option value="flash" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'flash' ); ?>><?php _e( 'Flash', 'myStickymenu' );?></option>
169 <option value="shake" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'shake' ); ?>><?php _e( 'Shake', 'myStickymenu' );?></option>
170 <option value="swing" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'swing' ); ?>><?php _e( 'Swing', 'myStickymenu' );?></option>
171 <option value="tada" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'tada' ); ?>><?php _e( 'Tada', 'myStickymenu' );?></option>
172 <option value="heartbeat" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'heartbeat' ); ?>><?php _e( 'Heartbeat', 'myStickymenu' );?></option>
173 <option value="wobble" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'wobble' ); ?>><?php _e( 'Wobble', 'myStickymenu' );?></option>
174 </select>
175 </div>
176 </div>
177 </div>
178 <!-- -->
179 <div class="mysticky-welcomebar-setting-content">
180 <label><?php _e('Button Submission', 'myStickymenu'); ?></label>
181 <div class="mysticky-welcomebar-setting-content-right mysticky-welcomebar-setting-redirect-wrap">
182 <div class="mysticky-welcomebar-setting-action">
183 <select name="mysticky_option_welcomebar[mysticky_welcomebar_actionselect]" class="mysticky-welcomebar-action mysticky_welcomebar_disable">
184 <option value="redirect_to_url" <?php selected( @$welcomebar['mysticky_welcomebar_actionselect'], 'redirect_to_url' ); ?>><?php _e( 'Redirect to URL', 'myStickymenu' );?></option>
185 <option value="close_bar" <?php selected( @$welcomebar['mysticky_welcomebar_actionselect'], 'close_bar' ); ?>><?php _e( 'Close bar', 'myStickymenu' );?></option>
186 <option value="thankyou_screen" data-href="<?php echo esc_url($upgarde_url); ?>"><?php _e( 'Thank you screen (Upgrade Now)', 'myStickymenu' );?></option>
187 </select>
188 </div>
189 <div class="mysticky-welcomebar-setting-action mysticky-welcomebar-redirect" <?php if ( $welcomebar['mysticky_welcomebar_actionselect'] == 'close_bar' ) : ?> style="display:none;" <?php endif;?> >
190 <input type="text" id="mysticky_welcomebar_redirect" class="mystickyinput mysticky_welcomebar_disable" name="mysticky_option_welcomebar[mysticky_welcomebar_redirect]" value="<?php echo esc_url($welcomebar['mysticky_welcomebar_redirect']);?>" placeholder="<?php echo esc_url("https://www.yourdomain.com"); ?>" />
191 </div>
192 <div class="mysticky-welcomebar-setting-newtab mysticky-welcomebar-redirect" <?php if ( $welcomebar['mysticky_welcomebar_actionselect'] == 'close_bar' ) : ?> style="display:none;" <?php endif;?> >
193 <label>
194 <input name="mysticky_option_welcomebar[mysticky_welcomebar_redirect_newtab]" value= "1" type="checkbox" disabled />
195 <?php _e( 'Open in a new tab', 'mystickymenu' );?>
196 </label>
197 <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>
198 </div>
199 </div>
200 </div>
201 <!-- -->
202 <div class="mysticky-welcomebar-setting-content">
203 <label><?php _e('After Submission', 'myStickymenu'); ?></label>
204 <div class="mysticky-welcomebar-setting-content-right">
205 <div class="mysticky-welcomebar-setting-action">
206 <select name="mysticky_option_welcomebar[mysticky_welcomebar_aftersubmission]" class="mysticky-welcomebar-aftersubmission mysticky_welcomebar_disable">
207 <option value="dont_show_welcomebar" <?php selected( @$welcomebar['mysticky_welcomebar_aftersubmission'], 'dont_show_welcomebar' ); ?>><?php _e( "Don't show the Welcome Bar", 'myStickymenu' );?></option>
208 <option value="show_welcomebar_next_visit" <?php selected( @$welcomebar['mysticky_welcomebar_aftersubmission'], 'show_welcomebar_next_visit' ); ?>><?php _e( 'Show the Welcome Bar in the next visit', 'myStickymenu' );?></option>
209 <option value="show_welcomebar_every_page" <?php selected( @$welcomebar['mysticky_welcomebar_aftersubmission'], 'show_welcomebar_every_page' ); ?> ><?php _e( 'Show the Welcome Bar on every page', 'myStickymenu' );?></option>
210 </select>
211 </div>
212 </div>
213 </div>
214
215 <div class="mysticky-welcomebar-setting-content mysticky-welcomebar-setting-remove-getbar">
216 <label><?php _e('Remove myStickymenu Credit', 'myStickymenu'); ?></label>
217 <div class="mysticky-welcomebar-setting-content-right">
218 <div class="mysticky-welcomebar-switch">
219 <input type="checkbox" id="mysticky-welcomebar-remove-getbar" name="mysticky_option_welcomebar[mysticky_welcomebar_remove_getbar]" value="1" disabled />
220 <span class="slider"></span>
221 </div>
222 <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>
223 </div>
224 </div>
225 </div>
226 <div class="mysticky-welcomebar-setting-block">
227 <div class="mysticky-welcomebar-subheader-title">
228 <h4><?php _e('Display Rules', 'myStickymenu'); ?></h4>
229 </div>
230 <div class="mysticky-welcomebar-upgrade-main mysticky_device_upgrade">
231 <span class="myStickymenu-upgrade">
232 <a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( ' Upgrade Now', 'mystickymenu' );?></a>
233 </span>
234 <div class="mysticky-welcomebar-setting-content">
235 <label><?php _e('Devices', 'myStickymenu'); ?></label>
236 <div class="mysticky-welcomebar-setting-content-right">
237 <label>
238 <input name="mysticky_option_welcomebar[mysticky_welcomebar_device_desktop]" value= "desktop" type="checkbox" checked disabled />
239 <?php _e( 'Desktop', 'mystickymenu' );?>
240 </label>
241 <label>
242 <input name="mysticky_option_welcomebar[mysticky_welcomebar_device_mobile]" value= "mobile" type="checkbox" checked disabled />
243 <?php _e( 'Mobile', 'mystickymenu' );?>
244 </label>
245 </div>
246 </div>
247 <div class="mysticky-welcomebar-setting-content">
248 <label><?php _e('Trigger', 'myStickymenu'); ?></label>
249 <div class="mysticky-welcomebar-setting-content-right">
250 <div class="mysticky-welcomebar-setting-action mysticky-welcomebar-trigger-wrap">
251 <label>
252 <input type="radio" name="mysticky_option_welcomebar[mysticky_welcomebar_trigger]" value="after_a_few_seconds" checked disabled />&nbsp;<?php _e( 'After a few seconds', 'myStickymenu' );?>
253 </label>
254 <label>
255 <input type="radio" name="mysticky_option_welcomebar[mysticky_welcomebar_trigger]" value="after_scroll" disabled />&nbsp;<?php _e( 'After Scroll', 'myStickymenu' );?>
256 </label>
257 </div>
258 <div class="mysticky-welcomebar-setting-action mysticky-welcomebar-triggersec">
259 <div class="px-wrap">
260 <input type="number" class="" min="0" step="1" id="mysticky_welcomebar_triggersec" name="mysticky_option_welcomebar[mysticky_welcomebar_triggersec]" value="0" disabled />
261 <span class="input-px"><?php echo ( isset($welcomebar['mysticky_welcomebar_trigger']) && $welcomebar['mysticky_welcomebar_trigger'] == 'after_scroll' ) ? '%' : 'Sec'; ?></span>
262 </div>
263 </div>
264 </div>
265 </div>
266 <div class="mysticky-welcomebar-setting-content">
267 <label><?php _e('Expiry date', 'myStickymenu'); ?></label>
268 <div class="mysticky-welcomebar-setting-content-right">
269 <div class="mysticky-welcomebar-expirydate">
270 <input type="text" id="mysticky_welcomebar_expirydate" name="mysticky_option_welcomebar[mysticky_welcomebar_expirydate]" placeholder="<?php _e('No expiry date', 'myStickymenu'); ?>" value="" disabled />
271 <span class="dashicons dashicons-calendar-alt"></span>
272 </div>
273 </div>
274 </div>
275 <div class="mysticky-welcomebar-setting-content show-on-apper">
276 <label><?php _e('Page targeting', 'myStickymenu'); ?></label>
277 <div class="mysticky-welcomebar-setting-content-right">
278 <a href="javascript:void(0);" class="create-rule" id="create-rule"><?php esc_html_e( "Add Rule", "mystickyelements" );?></a>
279 </div>
280 <div class="mysticky-welcomebar-page-options-html" style="display: none">
281 <div class="mysticky-welcomebar-page-option">
282 <div class="url-content">
283 <div class="mysticky-welcomebar-url-select">
284 <select name="mysticky_option_welcomebar[page_settings][__count__][shown_on]" id="url_shown_on___count___option" disabled>
285 <option value="show_on"><?php esc_html_e("Show on", "mysticky" );?></option>
286 <option value="not_show_on"><?php esc_html_e("Don't show on", "mysticky" );?></option>
287 </select>
288 </div>
289 <div class="mysticky-welcomebar-url-option">
290 <select class="mysticky-welcomebar-url-options" name="mysticky_option_welcomebar[page_settings][__count__][option]" id="url_rules___count___option" disabled>
291 <option selected="selected" disabled value=""><?php esc_html_e("Select Rule", "mysticky" );?></option>
292 </select>
293 </div>
294 <div class="mysticky-welcomebar-url-box">
295 <span class='mysticky-welcomebar-url'><?php echo site_url("/"); ?></span>
296 </div>
297 <div class="mysticky-welcomebar-url-values">
298 <input type="text" value="" name="mysticky_option_welcomebar[page_settings][__count__][value]" id="url_rules___count___value" disabled />
299 </div>
300 <div class="clear"></div>
301 </div>
302 </div>
303 </div>
304 <div class="mysticky-welcomebar-page-options mysticky-welcomebar-setting-content-right" id="mysticky-welcomebar-page-options" style="display:none"></div>
305 </div>
306 </div>
307 </div>
308 </div>
309 <div class="mysticky-welcomebar-setting-right">
310 <div class="mysticky-welcomebar-header-title">
311 <h3><?php _e('Preview', 'mystickyelements'); ?></h3>
312 </div>
313 <div class="mysticky-welcomebar-preview-screen">
314 <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">
315 <div class="mysticky-welcomebar-fixed mysticky-welcomebar-display-desktop <?php echo $display_main_class; ?>" >
316 <div class="mysticky-welcomebar-content">
317 <?php echo wpautop(isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase");?>
318 </div>
319 <div class="mysticky-welcomebar-btn">
320 <a href="#" ><?php echo isset($welcomebar['mysticky_welcomebar_btn_text']) ? $welcomebar['mysticky_welcomebar_btn_text'] : "Got it!";?></a>
321 </div>
322 <a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
323 <a href="#" class="mysticky-welcomebar-getbar"><?php _e( 'myStickymenu', 'mystickymenu' );?></a>
324 </div>
325 </div>
326 </div>
327 </div>
328 <div class="mysticky-welcomebar-submit">
329 <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save', 'mystickymenu');?>">
330 </div>
331 <input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
332 <input type="hidden" name="active_tab_element" value="1">
333 <input type="hidden" id="save_welcome_bar" name="save_welcome_bar" value="">
334
335 </form>
336 <form class="mysticky-welcomebar-form-reset" method="post" action="#">
337 <div class="mysticky-welcomebar-submit">
338 <input type="submit" name="mysticky_welcomebar_reset" id="reset" class="button button-secondary" value="<?php _e('Reset', 'mystickymenu');?>">
339 </div>
340 <input type="hidden" name="nonce_reset" value="<?php echo $nonce_reset; ?>">
341 <input type="hidden" name="active_tab_element" value="1">
342 </form>
343 <div id="mysticky-welcomebar-save-confirm" style="display:none;" title="<?php esc_attr_e( 'myStickymenu is currently off', 'mystickymenu' ); ?>">
344 <p>
345 <?php _e('Your Welcome Bar is currently turned off, would you like to save and show it on your site?', 'mystickymenu' ); ?>
346 </p>
347 </div>
348 <script>
349 jQuery(".mysticky-welcomebar-fixed").on(
350 "animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",
351 function() {
352 jQuery(this).removeClass("animation-start");
353 }
354 );
355 jQuery(document).ready(function() {
356 var container = jQuery(".mysticky-welcomebar-fixed");
357 var refreshId = setInterval(function() {
358 container.addClass("animation-start");
359 }, 3500);
360 });
361 </script>
362 <style>
363 .mysticky-welcomebar-fixed {
364 min-height: 80px;
365 background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
366 font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
367 position: absolute;
368 left: 0;
369 right: 0;
370 display: none;
371 align-items: center;
372 justify-content: center;
373 padding: 20px 30px 20px 10px;
374 z-index: 9999999;
375 }
376 .mysticky-welcomebar-preview-mobile-screen .mysticky-welcomebar-fixed{
377 padding: 0 25px;
378 }
379 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-fixed {
380 display: flex;
381 }
382 .mysticky-welcomebar-position-top {
383 top:0;
384 }
385 .mysticky-welcomebar-position-bottom {
386 bottom:0;
387 }
388 .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
389 color: <?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'] ?>;
390 font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
391 font-family: inherit;
392 margin: 0;
393 padding: 0;
394 line-height: 1.2;
395 font-weight: 400;
396 }
397 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
398 padding-left: 30px;
399 display: none;
400 }
401 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-desktop .mysticky-welcomebar-btn {
402 display: block;
403 }
404 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a {
405 background-color: <?php echo $welcomebar['mysticky_welcomebar_btncolor'] ?>;
406 font-family: inherit;
407 color: <?php echo $welcomebar['mysticky_welcomebar_btntxtcolor'] ?>;
408 border-radius: 4px;
409 text-decoration: none;
410 display: inline-block;
411 vertical-align: top;
412 line-height: 1.2;
413 font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
414 font-weight: 400;
415 padding: 5px 20px;
416 white-space: nowrap;
417 }
418 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a:hover {
419 /*opacity: 0.7;*/
420 -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0,0.5);
421 -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
422 box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
423 }
424 .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
425 display: none;
426 vertical-align: top;
427 width: 20px;
428 height: 20px;
429 text-align: center;
430 text-decoration: none;
431 line-height: 20px;
432 border-radius: 5px;
433 color: #000;
434 position: absolute;
435 font-family: Lato;
436 top: 5px;
437 right: 5px;
438 text-shadow: 0 0 0px #fff;
439 -webkit-transition: all 0.5s ease 0s;
440 -moz-transition: all 0.5s ease 0s;
441 transition: all 0.5s ease 0s;
442 -webkit-transform-origin: 50% 50%;
443 -moz-transform-origin: 50% 50%;
444 transform-origin: 50% 50%;
445 }
446 .mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
447 opacity: 1;
448 -webkit-transform: rotate(180deg);
449 -moz-transform: rotate(180deg);
450 transform: rotate(180deg);
451 }
452 .mysticky-welcomebar-fixed.mysticky-welcomebar-showx-desktop .mysticky-welcomebar-close {
453 display: inline-block;
454 }
455 .mysticky-welcomebar-getbar:focus,
456 .mysticky-welcomebar-getbar:active,
457 .mysticky-welcomebar-getbar {
458 background-color: rgba(140,140,140,0.5) !important;
459 border-radius: 8px !important;
460 color: #FFFFFF !important;
461 position: absolute !important;
462 padding: 3px !important;
463 bottom: 3px !important;
464 left: 3px !important;
465 font-size: 10px !important;
466 line-height: 1.4 !important;
467 margin: 0 !important;
468 display: inline-block !important;
469 vertical-align: top !important;
470 font-family: Poppins !important;
471 text-decoration: none !important;
472 visibility: visible !important;
473 }
474 .mysticky-welcomebar-getbar:hover {
475 color: #000000 !important;
476 opacity: 0.5 !important;
477 }
478
479 @media only screen and (max-width: 1024px) {
480 .mysticky-welcomebar-fixed {
481 padding: 0 20px 0 10px;
482 }
483 .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
484 width: 20px;
485 height: 20px;
486 line-height: 20px;
487 right: 0px;
488 }
489 }
490
491 /* Animated Buttons */
492 .mysticky-welcomebar-btn a {
493 -webkit-animation-duration: 1s;
494 animation-duration: 1s;
495 }
496 @-webkit-keyframes flash {
497 from,
498 50%,
499 to {
500 opacity: 1;
501 }
502
503 25%,
504 75% {
505 opacity: 0;
506 }
507 }
508 @keyframes flash {
509 from,
510 50%,
511 to {
512 opacity: 1;
513 }
514
515 25%,
516 75% {
517 opacity: 0;
518 }
519 }
520 .mysticky-welcomebar-attention-flash.animation-start .mysticky-welcomebar-btn a {
521 -webkit-animation-name: flash;
522 animation-name: flash;
523 }
524
525 @keyframes shake {
526 from,
527 to {
528 -webkit-transform: translate3d(0, 0, 0);
529 transform: translate3d(0, 0, 0);
530 }
531
532 10%,
533 30%,
534 50%,
535 70%,
536 90% {
537 -webkit-transform: translate3d(-10px, 0, 0);
538 transform: translate3d(-10px, 0, 0);
539 }
540
541 20%,
542 40%,
543 60%,
544 80% {
545 -webkit-transform: translate3d(10px, 0, 0);
546 transform: translate3d(10px, 0, 0);
547 }
548 }
549
550 .mysticky-welcomebar-attention-shake.animation-start .mysticky-welcomebar-btn a {
551 -webkit-animation-name: shake;
552 animation-name: shake;
553 }
554
555 @-webkit-keyframes swing {
556 20% {
557 -webkit-transform: rotate3d(0, 0, 1, 15deg);
558 transform: rotate3d(0, 0, 1, 15deg);
559 }
560
561 40% {
562 -webkit-transform: rotate3d(0, 0, 1, -10deg);
563 transform: rotate3d(0, 0, 1, -10deg);
564 }
565
566 60% {
567 -webkit-transform: rotate3d(0, 0, 1, 5deg);
568 transform: rotate3d(0, 0, 1, 5deg);
569 }
570
571 80% {
572 -webkit-transform: rotate3d(0, 0, 1, -5deg);
573 transform: rotate3d(0, 0, 1, -5deg);
574 }
575
576 to {
577 -webkit-transform: rotate3d(0, 0, 1, 0deg);
578 transform: rotate3d(0, 0, 1, 0deg);
579 }
580 }
581
582 @keyframes swing {
583 20% {
584 -webkit-transform: rotate3d(0, 0, 1, 15deg);
585 transform: rotate3d(0, 0, 1, 15deg);
586 }
587
588 40% {
589 -webkit-transform: rotate3d(0, 0, 1, -10deg);
590 transform: rotate3d(0, 0, 1, -10deg);
591 }
592
593 60% {
594 -webkit-transform: rotate3d(0, 0, 1, 5deg);
595 transform: rotate3d(0, 0, 1, 5deg);
596 }
597
598 80% {
599 -webkit-transform: rotate3d(0, 0, 1, -5deg);
600 transform: rotate3d(0, 0, 1, -5deg);
601 }
602
603 to {
604 -webkit-transform: rotate3d(0, 0, 1, 0deg);
605 transform: rotate3d(0, 0, 1, 0deg);
606 }
607 }
608
609 .mysticky-welcomebar-attention-swing.animation-start .mysticky-welcomebar-btn a {
610 -webkit-transform-origin: top center;
611 transform-origin: top center;
612 -webkit-animation-name: swing;
613 animation-name: swing;
614 }
615
616 @-webkit-keyframes tada {
617 from {
618 -webkit-transform: scale3d(1, 1, 1);
619 transform: scale3d(1, 1, 1);
620 }
621
622 10%,
623 20% {
624 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
625 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
626 }
627
628 30%,
629 50%,
630 70%,
631 90% {
632 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
633 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
634 }
635
636 40%,
637 60%,
638 80% {
639 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
640 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
641 }
642
643 to {
644 -webkit-transform: scale3d(1, 1, 1);
645 transform: scale3d(1, 1, 1);
646 }
647 }
648
649 @keyframes tada {
650 from {
651 -webkit-transform: scale3d(1, 1, 1);
652 transform: scale3d(1, 1, 1);
653 }
654
655 10%,
656 20% {
657 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
658 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
659 }
660
661 30%,
662 50%,
663 70%,
664 90% {
665 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
666 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
667 }
668
669 40%,
670 60%,
671 80% {
672 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
673 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
674 }
675
676 to {
677 -webkit-transform: scale3d(1, 1, 1);
678 transform: scale3d(1, 1, 1);
679 }
680 }
681
682 .mysticky-welcomebar-attention-tada.animation-start .mysticky-welcomebar-btn a {
683 -webkit-animation-name: tada;
684 animation-name: tada;
685 }
686
687 @-webkit-keyframes heartBeat {
688 0% {
689 -webkit-transform: scale(1);
690 transform: scale(1);
691 }
692
693 14% {
694 -webkit-transform: scale(1.3);
695 transform: scale(1.3);
696 }
697
698 28% {
699 -webkit-transform: scale(1);
700 transform: scale(1);
701 }
702
703 42% {
704 -webkit-transform: scale(1.3);
705 transform: scale(1.3);
706 }
707
708 70% {
709 -webkit-transform: scale(1);
710 transform: scale(1);
711 }
712 }
713
714 @keyframes heartBeat {
715 0% {
716 -webkit-transform: scale(1);
717 transform: scale(1);
718 }
719
720 14% {
721 -webkit-transform: scale(1.3);
722 transform: scale(1.3);
723 }
724
725 28% {
726 -webkit-transform: scale(1);
727 transform: scale(1);
728 }
729
730 42% {
731 -webkit-transform: scale(1.3);
732 transform: scale(1.3);
733 }
734
735 70% {
736 -webkit-transform: scale(1);
737 transform: scale(1);
738 }
739 }
740
741 .mysticky-welcomebar-attention-heartbeat.animation-start .mysticky-welcomebar-btn a {
742 -webkit-animation-name: heartBeat;
743 animation-name: heartBeat;
744 -webkit-animation-duration: 1.3s;
745 animation-duration: 1.3s;
746 -webkit-animation-timing-function: ease-in-out;
747 animation-timing-function: ease-in-out;
748 }
749
750 @-webkit-keyframes wobble {
751 from {
752 -webkit-transform: translate3d(0, 0, 0);
753 transform: translate3d(0, 0, 0);
754 }
755
756 15% {
757 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
758 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
759 }
760
761 30% {
762 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
763 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
764 }
765
766 45% {
767 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
768 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
769 }
770
771 60% {
772 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
773 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
774 }
775
776 75% {
777 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
778 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
779 }
780
781 to {
782 -webkit-transform: translate3d(0, 0, 0);
783 transform: translate3d(0, 0, 0);
784 }
785 }
786
787 @keyframes wobble {
788 from {
789 -webkit-transform: translate3d(0, 0, 0);
790 transform: translate3d(0, 0, 0);
791 }
792
793 15% {
794 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
795 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
796 }
797
798 30% {
799 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
800 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
801 }
802
803 45% {
804 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
805 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
806 }
807
808 60% {
809 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
810 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
811 }
812
813 75% {
814 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
815 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
816 }
817
818 to {
819 -webkit-transform: translate3d(0, 0, 0);
820 transform: translate3d(0, 0, 0);
821 }
822 }
823
824 .mysticky-welcomebar-attention-wobble.animation-start .mysticky-welcomebar-btn a {
825 -webkit-animation-name: wobble;
826 animation-name: wobble;
827 }
828 </style>
829
830 <?php
831 }
832
833 function mysticky_welcomebar_pro_widget_default_fields() {
834 return array(
835 'mysticky_welcomebar_position' => 'top',
836 'mysticky_welcomebar_height' => '60',
837 'mysticky_welcomebar_bgcolor' => '#03ed96',
838 'mysticky_welcomebar_bgtxtcolor' => '#000000',
839 'mysticky_welcomebar_font' => 'Poppins',
840 'mysticky_welcomebar_fontsize' => '16',
841 'mysticky_welcomebar_bar_text' => 'Get 30% off your first purchase',
842 'mysticky_welcomebar_x_desktop' => 'desktop',
843 'mysticky_welcomebar_x_mobile' => 'mobile',
844 'mysticky_welcomebar_btn_desktop' => 'desktop',
845 'mysticky_welcomebar_btn_mobile' => 'mobile',
846 'mysticky_welcomebar_btncolor' => '#000000',
847 'mysticky_welcomebar_btntxtcolor' => '#ffffff',
848 'mysticky_welcomebar_btn_text' => 'Got it!',
849 'mysticky_welcomebar_actionselect' => 'close_bar',
850 'mysticky_welcomebar_aftersubmission' => 'dont_show_welcomebar',
851 'mysticky_welcomebar_redirect' => 'https://www.yourdomain.com',
852 'mysticky_welcomebar_redirect_newtab' => '',
853 'mysticky_welcomebar_device_desktop' => 'desktop',
854 'mysticky_welcomebar_device_mobile' => 'mobile',
855 'mysticky_welcomebar_trigger' => 'after_a_few_seconds',
856 'mysticky_welcomebar_triggersec' => '0',
857 'mysticky_welcomebar_expirydate' => '',
858 'mysticky_welcomebar_page_settings' => '',
859 );
860 }
861
862 function mysticky_welcome_bar_frontend(){
863 $welcomebar = get_option( 'mysticky_option_welcomebar' );
864
865 if ( ( isset($welcomebar['mysticky_welcomebar_expirydate']) && $welcomebar['mysticky_welcomebar_expirydate'] !='' && strtotime( date('m/d/Y')) > strtotime($welcomebar['mysticky_welcomebar_expirydate']) ) || !isset($welcomebar['mysticky_welcomebar_enable'] ) ) {
866 return;
867 }
868 $mysticky_welcomebar_showx_desktop = $mysticky_welcomebar_showx_mobile = '';
869 $mysticky_welcomebar_btn_desktop = $mysticky_welcomebar_btn_mobile = '';
870 $mysticky_welcomebar_display_desktop = $mysticky_welcomebar_display_mobile = '';
871 if( isset($welcomebar['mysticky_welcomebar_x_desktop']) ) {
872 $mysticky_welcomebar_showx_desktop = ' mysticky-welcomebar-showx-desktop';
873 }
874 if( isset($welcomebar['mysticky_welcomebar_x_mobile']) ) {
875 $mysticky_welcomebar_showx_mobile = ' mysticky-welcomebar-showx-mobile';
876 }
877 if( isset($welcomebar['mysticky_welcomebar_btn_desktop']) ) {
878 $mysticky_welcomebar_btn_desktop = ' mysticky-welcomebar-btn-desktop';
879 }
880 if( isset($welcomebar['mysticky_welcomebar_btn_mobile']) ) {
881 $mysticky_welcomebar_btn_mobile = ' mysticky-welcomebar-btn-mobile';
882 }
883 $display = ' mysticky-welcomebar-attention-'.$welcomebar['mysticky_welcomebar_attentionselect'];
884 $mysticky_welcomebar_display_desktop = ' mysticky-welcomebar-display-desktop';
885 $mysticky_welcomebar_display_mobile = ' mysticky-welcomebar-display-mobile';
886
887 $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;
888
889 if( isset($welcomebar['mysticky_welcomebar_actionselect']) ) {
890 if( $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' ) {
891 $mysticky_welcomebar_actionselect_url = esc_url( $welcomebar['mysticky_welcomebar_redirect'] );
892 } else {
893 $mysticky_welcomebar_actionselect_url = 'javascript:void(0)';
894 }
895 }
896 if( isset($welcomebar['mysticky_welcomebar_enable']) ) {
897 if ( $welcomebar['mysticky_welcomebar_position'] == 'top' ) {
898 $welcomebar_enable_block = "top: -60px";
899 } else {
900 $welcomebar_enable_block = "bottom: -60px";
901 }
902 }
903
904 ?>
905 <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']);?>" data-aftersubmission="<?php echo esc_attr($welcomebar['mysticky_welcomebar_aftersubmission']);?>">
906 <div class="mysticky-welcomebar-content">
907 <?php echo wpautop( isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase" );?>
908 </div>
909 <div class="mysticky-welcomebar-btn">
910 <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>
911 </div>
912 <a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
913 <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>
914 </div>
915 <script>
916
917 jQuery(document).ready(function($){
918 var mysticky_welcomebar_height = jQuery( '.mysticky-welcomebar-fixed' ).innerHeight();
919 if( jQuery( '.mysticky-welcomebar-fixed' ).data('position') == 'top' ) {
920 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
921 } else {
922 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '-' + mysticky_welcomebar_height + 'px' );
923 }
924 var welcombar_aftersubmission = $( '.mysticky-welcomebar-fixed' ).data('aftersubmission');
925 if( welcombar_aftersubmission == 'dont_show_welcomebar' ){
926 var welcomebar_storage = localStorage.getItem("welcomebar_close");
927 } else if( welcombar_aftersubmission == 'show_welcomebar_next_visit' ) {
928 var welcomebar_storage = sessionStorage.getItem("welcomebar_close");
929 } else {
930 sessionStorage.removeItem('welcomebar_close');
931 localStorage.removeItem('welcomebar_close');
932 var welcomebar_storage = null;
933 }
934 if ( welcomebar_storage === null ){
935
936 var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
937
938 if ( after_trigger == 'after_a_few_seconds' ) {
939 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
940 if ( $( window ).width() > 767 ) {
941 var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
942 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
943 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
944 setTimeout(function(){
945 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
946 if ( welcombar_position == 'top' ) {
947 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
948 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
949 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
950 $( 'html' ).css( 'margin-bottom', '' );
951 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
952 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
953 } else {
954 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
955 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
956 $( 'html' ).css( 'margin-top', '' );
957 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
958 }
959 }, trigger_sec );
960 }
961 }
962 }
963 if ( $( window ).width() < 767 ) {
964 if ( after_trigger == 'after_a_few_seconds' ) {
965 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
966 var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
967 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
968 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
969 setTimeout(function(){
970 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
971 if ( welcombar_position == 'top' ) {
972 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
973 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
974 $( 'html' ).css( 'margin-bottom', '' );
975 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
976 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
977 } else {
978 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
979 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
980 $( 'html' ).css( 'margin-top', '' );
981 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
982 }
983 }, trigger_sec );
984 }
985 }
986 }
987 mystickyelements_present();
988 }
989 $( window ).resize( function(){
990 if( welcombar_aftersubmission == 'dont_show_welcomebar' ){
991 var welcomebar_storage = localStorage.getItem("welcomebar_close");
992 } else if( welcombar_aftersubmission == 'show_welcomebar_next_visit' ) {
993 var welcomebar_storage = sessionStorage.getItem("welcomebar_close");
994 } else {
995 sessionStorage.removeItem('welcomebar_close');
996 localStorage.removeItem('welcomebar_close');
997 var welcomebar_storage = null;
998 }
999 if ( welcomebar_storage === null ){
1000 var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
1001 if ( after_trigger == 'after_a_few_seconds' ) {
1002 var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
1003 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
1004 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
1005 if ( $( window ).width() < 767 ) {
1006 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
1007 setTimeout(function(){
1008 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
1009 if ( welcombar_position == 'top' ) {
1010 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
1011 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1012 $( 'html' ).css( 'margin-bottom', '' );
1013 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
1014 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1015 } else {
1016 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
1017 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1018 $( 'html' ).css( 'margin-top', '' );
1019 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
1020 }
1021 }, trigger_sec );
1022 }
1023 } else {
1024 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
1025 setTimeout(function(){
1026 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
1027 if ( welcombar_position == 'top' ) {
1028 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
1029 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1030 $( 'html' ).css( 'margin-bottom', '' );
1031 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
1032 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1033 } else {
1034 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
1035 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1036 $( 'html' ).css( 'margin-top', '' );
1037 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
1038 }
1039 }, trigger_sec );
1040 }
1041 }
1042 }
1043 mystickyelements_present();
1044 }
1045 } );
1046
1047 jQuery(window).scroll(function(){
1048 if( welcombar_aftersubmission == 'dont_show_welcomebar' ){
1049 var welcomebar_storage = localStorage.getItem("welcomebar_close");
1050 } else if( welcombar_aftersubmission == 'show_welcomebar_next_visit' ) {
1051 var welcomebar_storage = sessionStorage.getItem("welcomebar_close");
1052 } else {
1053 sessionStorage.removeItem('welcomebar_close');
1054 localStorage.removeItem('welcomebar_close');
1055 var welcomebar_storage = null;
1056 }
1057 if ( welcomebar_storage === null ){
1058 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
1059 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
1060 if ( welcombar_position == 'top' ) {
1061 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1062 }
1063 if ( after_trigger === 'after_scroll' ) {
1064 var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
1065 var after_scroll_val = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec');
1066 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
1067 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
1068 if( scroll > after_scroll_val ) {
1069 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
1070 if ( $( window ).width() > 767 ) {
1071 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
1072 if ( welcombar_position == 'top' ) {
1073 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
1074 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1075 $( 'html' ).css( 'margin-bottom', '' );
1076 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
1077 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1078 } else {
1079 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
1080 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1081 $( 'html' ).css( 'margin-top', '' );
1082 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
1083 }
1084 }
1085 }
1086 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
1087 if ( $( window ).width() < 767 ) {
1088 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
1089 if ( welcombar_position == 'top' ) {
1090 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
1091 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1092 $( 'html' ).css( 'margin-bottom', '' );
1093 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
1094 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1095 } else {
1096 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
1097 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1098 $( 'html' ).css( 'margin-top', '' );
1099 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
1100 }
1101 }
1102 }
1103 }
1104 }
1105 mystickyelements_present();
1106 }
1107
1108 });
1109
1110 jQuery( '.mysticky-welcomebar-close, .mysticky-welcomebar-btn a' ).on( 'click', function(){
1111 if( welcombar_aftersubmission != 'show_welcomebar_every_page' ){
1112 if( welcombar_aftersubmission == 'dont_show_welcomebar' ){
1113 sessionStorage.removeItem('welcomebar_close');
1114 localStorage.setItem('welcomebar_close', 'close');
1115 } else if( welcombar_aftersubmission == 'show_welcomebar_next_visit' ) {
1116 localStorage.removeItem('welcomebar_close');
1117 sessionStorage.setItem('welcomebar_close', 'close');
1118 }
1119 }
1120 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
1121 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
1122 jQuery( '.mysticky-welcomebar-fixed' ).slideUp( 'slow' );
1123 if ( welcombar_position == 'top' ) {
1124 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
1125 } else {
1126 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '-' + mysticky_welcomebar_height + 'px' );
1127 }
1128 jQuery( 'html' ).css( 'margin-top', '' );
1129 jQuery( 'html' ).css( 'margin-bottom', '' );
1130 $( '#mysticky-nav' ).css( 'top', '0px' );
1131 /*if mystickyelements show*/
1132 var mystickyelements_show = $( '.mystickyelements-fixed' ).length;
1133 if( mystickyelements_show && $( window ).width() <= 1024 && $( '.mystickyelements-fixed' ).hasClass( 'mystickyelements-position-mobile-top' ) && welcombar_position == 'top' ) {
1134 var mystickyelements_height = $( '.mystickyelements-fixed' ).height();
1135 $( '.mystickyelements-fixed' ).css( 'top', '' );
1136 $( 'html' ).attr( 'style', 'margin-top: ' + mystickyelements_height + 'px !important' );
1137 }
1138 } );
1139 });
1140 function mystickyelements_present() {
1141 var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
1142 var mystickyelements_show = jQuery( '.mystickyelements-fixed' ).length;
1143 if( mystickyelements_show ) {
1144 var welcombar_position = jQuery( '.mysticky-welcomebar-fixed' ).data('position');
1145 var welcombar_height = jQuery( '.mysticky-welcomebar-fixed' ).innerHeight();
1146 var mystickyelements_height = jQuery( '.mystickyelements-fixed' ).height();
1147 var mystickyelements_total_height = welcombar_height + mystickyelements_height;
1148 if ( jQuery( window ).width() <= 1024 && jQuery( '.mystickyelements-fixed' ).hasClass( 'mystickyelements-position-mobile-top' ) ) {
1149 if ( after_trigger == 'after_a_few_seconds' ) {
1150 if ( jQuery( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
1151 var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
1152 setTimeout(function(){
1153 if ( welcombar_position == 'top' ) {
1154 jQuery( '.mystickyelements-fixed' ).css( 'top', welcombar_height );
1155 jQuery( 'html' ).attr( 'style', 'margin-top: ' + mystickyelements_total_height + 'px !important' );
1156 } else {
1157 jQuery( '.mystickyelements-fixed' ).css( 'top', '' );
1158 jQuery( 'html' ).attr( 'style', 'margin-bottom: ' + welcombar_height + 'px !important' );
1159 }
1160 }, trigger_sec );
1161 }
1162 } else if ( after_trigger === 'after_scroll' ) {
1163 var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
1164 var after_scroll_val = $( '.mysticky-welcomebar-fixed' ).data('triger-sec');
1165 if( scroll > after_scroll_val ) {
1166 if ( jQuery( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
1167 if ( welcombar_position == 'top' ) {
1168 jQuery( '.mystickyelements-fixed' ).css( 'top', welcombar_height );
1169 jQuery( 'html' ).attr( 'style', 'margin-top: ' + mystickyelements_total_height + 'px !important' );
1170 } else {
1171 jQuery( '.mystickyelements-fixed' ).css( 'top', '' );
1172 jQuery( 'html' ).attr( 'style', 'margin-bottom: ' + welcombar_height + 'px !important' );
1173 }
1174 }
1175 }
1176 }
1177 }
1178 }
1179 }
1180 jQuery(".mysticky-welcomebar-fixed").on(
1181 "animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",
1182 function() {
1183 jQuery(this).removeClass("animation-start");
1184 }
1185 );
1186 jQuery(document).ready(function() {
1187 var container = jQuery(".mysticky-welcomebar-fixed");
1188 var refreshId = setInterval(function() {
1189 container.addClass("animation-start");
1190 }, 3500);
1191 });
1192
1193 </script>
1194 <style>
1195 .mysticky-welcomebar-fixed {
1196 height: 60px;
1197 background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
1198 font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
1199 position: fixed;
1200 left: 0;
1201 right: 0;
1202 display: flex;
1203 align-items: center;
1204 justify-content: center;
1205 padding: 20px 50px;
1206 z-index: 9999999;
1207 opacity: 0;
1208 }
1209 .mysticky-welcomebar-animation {
1210 -webkit-transition: all 0.5s ease 0s;
1211 -moz-transition: all 0.5s ease 0s;
1212 transition: all 0.5s ease 0s;
1213 }
1214 .mysticky-welcomebar-position-top {
1215 top: -60px;
1216 }
1217 .mysticky-welcomebar-position-bottom {
1218 bottom: -60px;
1219 }
1220 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
1221 top: 0;
1222 }
1223 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed {
1224 bottom: 0;
1225 }
1226 .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
1227 color: <?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'] ?>;
1228 font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
1229 margin: 0;
1230 padding: 0;
1231 line-height: 1.2;
1232 font-family: inherit;
1233 font-weight: 400;
1234 }
1235 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
1236 padding-left: 30px;
1237 display: none;
1238 line-height: 1;
1239 }
1240 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-desktop .mysticky-welcomebar-btn {
1241 display: block;
1242 }
1243 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a {
1244 background-color: <?php echo $welcomebar['mysticky_welcomebar_btncolor'] ?>;
1245 font-family: inherit;
1246 color: <?php echo $welcomebar['mysticky_welcomebar_btntxtcolor'] ?>;
1247 border-radius: 4px;
1248 text-decoration: none;
1249 display: inline-block;
1250 vertical-align: top;
1251 line-height: 1.2;
1252 font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
1253 font-weight: 400;
1254 padding: 5px 20px;
1255 white-space: nowrap;
1256 }
1257 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a:hover {
1258 /*opacity: 0.7;*/
1259 -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0,0.5);
1260 -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
1261 box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
1262 }
1263 .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
1264 display: none;
1265 vertical-align: top;
1266 width: 30px;
1267 height: 30px;
1268 text-align: center;
1269 line-height: 30px;
1270 border-radius: 5px;
1271 color: #000;
1272 position: absolute;
1273 top: 5px;
1274 right: 10px;
1275 outline: none;
1276 font-family: Lato;
1277 text-decoration: none;
1278 text-shadow: 0 0 0px #fff;
1279 -webkit-transition: all 0.5s ease 0s;
1280 -moz-transition: all 0.5s ease 0s;
1281 transition: all 0.5s ease 0s;
1282 -webkit-transform-origin: 50% 50%;
1283 -moz-transform-origin: 50% 50%;
1284 transform-origin: 50% 50%;
1285 }
1286 .mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
1287 opacity: 1;
1288 -webkit-transform: rotate(180deg);
1289 -moz-transform: rotate(180deg);
1290 transform: rotate(180deg);
1291 }
1292 .mysticky-welcomebar-fixed .mysticky-welcomebar-close span.dashicons {
1293 font-size: 27px;
1294 }
1295 .mysticky-welcomebar-fixed.mysticky-welcomebar-showx-desktop .mysticky-welcomebar-close {
1296 display: inline-block;
1297 }
1298 .mysticky-welcomebar-getbar:focus,
1299 .mysticky-welcomebar-getbar:active,
1300 .mysticky-welcomebar-getbar {
1301 background-color: rgba(140,140,140,0.5) !important;
1302 border-radius: 8px !important;
1303 color: #FFFFFF !important;
1304 position: absolute !important;
1305 padding: 3px !important;
1306 bottom: 5px !important;
1307 left: 10px !important;
1308 font-size: 12px !important;
1309 line-height: 1.4 !important;
1310 margin: 0 !important;
1311 display: inline-block !important;
1312 vertical-align: top !important;
1313 font-family: Poppins !important;
1314 text-decoration: none !important;
1315 visibility: visible !important;
1316 outline: 0 !important;
1317 }
1318 .mysticky-welcomebar-getbar:hover {
1319 color: #000000 !important;
1320 opacity: 0.5 !important;
1321 }
1322 /* Animated Buttons */
1323 .mysticky-welcomebar-btn a {
1324 -webkit-animation-duration: 1s;
1325 animation-duration: 1s;
1326 }
1327 @-webkit-keyframes flash {
1328 from,
1329 50%,
1330 to {
1331 opacity: 1;
1332 }
1333
1334 25%,
1335 75% {
1336 opacity: 0;
1337 }
1338 }
1339 @keyframes flash {
1340 from,
1341 50%,
1342 to {
1343 opacity: 1;
1344 }
1345
1346 25%,
1347 75% {
1348 opacity: 0;
1349 }
1350 }
1351 .mysticky-welcomebar-attention-flash.animation-start .mysticky-welcomebar-btn a {
1352 -webkit-animation-name: flash;
1353 animation-name: flash;
1354 }
1355
1356 @keyframes shake {
1357 from,
1358 to {
1359 -webkit-transform: translate3d(0, 0, 0);
1360 transform: translate3d(0, 0, 0);
1361 }
1362
1363 10%,
1364 30%,
1365 50%,
1366 70%,
1367 90% {
1368 -webkit-transform: translate3d(-10px, 0, 0);
1369 transform: translate3d(-10px, 0, 0);
1370 }
1371
1372 20%,
1373 40%,
1374 60%,
1375 80% {
1376 -webkit-transform: translate3d(10px, 0, 0);
1377 transform: translate3d(10px, 0, 0);
1378 }
1379 }
1380
1381 .mysticky-welcomebar-attention-shake.animation-start .mysticky-welcomebar-btn a {
1382 -webkit-animation-name: shake;
1383 animation-name: shake;
1384 }
1385
1386 @-webkit-keyframes swing {
1387 20% {
1388 -webkit-transform: rotate3d(0, 0, 1, 15deg);
1389 transform: rotate3d(0, 0, 1, 15deg);
1390 }
1391
1392 40% {
1393 -webkit-transform: rotate3d(0, 0, 1, -10deg);
1394 transform: rotate3d(0, 0, 1, -10deg);
1395 }
1396
1397 60% {
1398 -webkit-transform: rotate3d(0, 0, 1, 5deg);
1399 transform: rotate3d(0, 0, 1, 5deg);
1400 }
1401
1402 80% {
1403 -webkit-transform: rotate3d(0, 0, 1, -5deg);
1404 transform: rotate3d(0, 0, 1, -5deg);
1405 }
1406
1407 to {
1408 -webkit-transform: rotate3d(0, 0, 1, 0deg);
1409 transform: rotate3d(0, 0, 1, 0deg);
1410 }
1411 }
1412
1413 @keyframes swing {
1414 20% {
1415 -webkit-transform: rotate3d(0, 0, 1, 15deg);
1416 transform: rotate3d(0, 0, 1, 15deg);
1417 }
1418
1419 40% {
1420 -webkit-transform: rotate3d(0, 0, 1, -10deg);
1421 transform: rotate3d(0, 0, 1, -10deg);
1422 }
1423
1424 60% {
1425 -webkit-transform: rotate3d(0, 0, 1, 5deg);
1426 transform: rotate3d(0, 0, 1, 5deg);
1427 }
1428
1429 80% {
1430 -webkit-transform: rotate3d(0, 0, 1, -5deg);
1431 transform: rotate3d(0, 0, 1, -5deg);
1432 }
1433
1434 to {
1435 -webkit-transform: rotate3d(0, 0, 1, 0deg);
1436 transform: rotate3d(0, 0, 1, 0deg);
1437 }
1438 }
1439
1440 .mysticky-welcomebar-attention-swing.animation-start .mysticky-welcomebar-btn a {
1441 -webkit-transform-origin: top center;
1442 transform-origin: top center;
1443 -webkit-animation-name: swing;
1444 animation-name: swing;
1445 }
1446
1447 @-webkit-keyframes tada {
1448 from {
1449 -webkit-transform: scale3d(1, 1, 1);
1450 transform: scale3d(1, 1, 1);
1451 }
1452
1453 10%,
1454 20% {
1455 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1456 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1457 }
1458
1459 30%,
1460 50%,
1461 70%,
1462 90% {
1463 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1464 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1465 }
1466
1467 40%,
1468 60%,
1469 80% {
1470 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1471 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1472 }
1473
1474 to {
1475 -webkit-transform: scale3d(1, 1, 1);
1476 transform: scale3d(1, 1, 1);
1477 }
1478 }
1479
1480 @keyframes tada {
1481 from {
1482 -webkit-transform: scale3d(1, 1, 1);
1483 transform: scale3d(1, 1, 1);
1484 }
1485
1486 10%,
1487 20% {
1488 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1489 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1490 }
1491
1492 30%,
1493 50%,
1494 70%,
1495 90% {
1496 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1497 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1498 }
1499
1500 40%,
1501 60%,
1502 80% {
1503 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1504 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1505 }
1506
1507 to {
1508 -webkit-transform: scale3d(1, 1, 1);
1509 transform: scale3d(1, 1, 1);
1510 }
1511 }
1512
1513 .mysticky-welcomebar-attention-tada.animation-start .mysticky-welcomebar-btn a {
1514 -webkit-animation-name: tada;
1515 animation-name: tada;
1516 }
1517
1518 @-webkit-keyframes heartBeat {
1519 0% {
1520 -webkit-transform: scale(1);
1521 transform: scale(1);
1522 }
1523
1524 14% {
1525 -webkit-transform: scale(1.3);
1526 transform: scale(1.3);
1527 }
1528
1529 28% {
1530 -webkit-transform: scale(1);
1531 transform: scale(1);
1532 }
1533
1534 42% {
1535 -webkit-transform: scale(1.3);
1536 transform: scale(1.3);
1537 }
1538
1539 70% {
1540 -webkit-transform: scale(1);
1541 transform: scale(1);
1542 }
1543 }
1544
1545 @keyframes heartBeat {
1546 0% {
1547 -webkit-transform: scale(1);
1548 transform: scale(1);
1549 }
1550
1551 14% {
1552 -webkit-transform: scale(1.3);
1553 transform: scale(1.3);
1554 }
1555
1556 28% {
1557 -webkit-transform: scale(1);
1558 transform: scale(1);
1559 }
1560
1561 42% {
1562 -webkit-transform: scale(1.3);
1563 transform: scale(1.3);
1564 }
1565
1566 70% {
1567 -webkit-transform: scale(1);
1568 transform: scale(1);
1569 }
1570 }
1571
1572 .mysticky-welcomebar-attention-heartbeat.animation-start .mysticky-welcomebar-btn a {
1573 -webkit-animation-name: heartBeat;
1574 animation-name: heartBeat;
1575 -webkit-animation-duration: 1.3s;
1576 animation-duration: 1.3s;
1577 -webkit-animation-timing-function: ease-in-out;
1578 animation-timing-function: ease-in-out;
1579 }
1580
1581 @-webkit-keyframes wobble {
1582 from {
1583 -webkit-transform: translate3d(0, 0, 0);
1584 transform: translate3d(0, 0, 0);
1585 }
1586
1587 15% {
1588 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1589 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1590 }
1591
1592 30% {
1593 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1594 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1595 }
1596
1597 45% {
1598 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1599 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1600 }
1601
1602 60% {
1603 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1604 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1605 }
1606
1607 75% {
1608 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1609 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1610 }
1611
1612 to {
1613 -webkit-transform: translate3d(0, 0, 0);
1614 transform: translate3d(0, 0, 0);
1615 }
1616 }
1617
1618 @keyframes wobble {
1619 from {
1620 -webkit-transform: translate3d(0, 0, 0);
1621 transform: translate3d(0, 0, 0);
1622 }
1623
1624 15% {
1625 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1626 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
1627 }
1628
1629 30% {
1630 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1631 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
1632 }
1633
1634 45% {
1635 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1636 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
1637 }
1638
1639 60% {
1640 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1641 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
1642 }
1643
1644 75% {
1645 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1646 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
1647 }
1648
1649 to {
1650 -webkit-transform: translate3d(0, 0, 0);
1651 transform: translate3d(0, 0, 0);
1652 }
1653 }
1654
1655 .mysticky-welcomebar-attention-wobble.animation-start .mysticky-welcomebar-btn a {
1656 -webkit-animation-name: wobble;
1657 animation-name: wobble;
1658 }
1659 @media only screen and (max-width: 767px) {
1660 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
1661 top: -60px;
1662 }
1663 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed {
1664 bottom: -60px;
1665 }
1666 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
1667 top: 0;
1668 }
1669 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed {
1670 bottom: 0;
1671 }
1672 .mysticky-welcomebar-fixed.mysticky-welcomebar-showx-desktop .mysticky-welcomebar-close {
1673 display: none;
1674 }
1675 .mysticky-welcomebar-fixed.mysticky-welcomebar-showx-mobile .mysticky-welcomebar-close {
1676 display: inline-block;
1677 }
1678 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-desktop .mysticky-welcomebar-btn {
1679 display: none;
1680 }
1681 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-mobile .mysticky-welcomebar-btn {
1682 display: block;
1683 }
1684 }
1685 @media only screen and (max-width: 480px) {
1686 .mysticky-welcomebar-fixed {
1687 height: auto;
1688 min-height: 60px;
1689 padding: 15px 36px 35px 10px;
1690 }
1691 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
1692 padding-left: 10px;
1693 }
1694 .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
1695 right: 7px;
1696 }
1697 }
1698 </style>
1699 <?php
1700 }
1701 add_action( 'wp_footer', 'mysticky_welcome_bar_frontend' );