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