PluginProbe ʕ •ᴥ•ʔ
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) / 2.2.9
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) v2.2.9
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" 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" 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" 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" 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 <div class="mysticky-welcomebar-setting-content">
162 <label><?php _e('Action', 'myStickymenu'); ?></label>
163 <div class="mysticky-welcomebar-setting-content-right mysticky-welcomebar-setting-redirect-wrap">
164 <div class="mysticky-welcomebar-setting-action">
165 <select name="mysticky_option_welcomebar[mysticky_welcomebar_actionselect]" class="mysticky-welcomebar-action">
166 <option value="redirect_to_url" <?php selected( @$welcomebar['mysticky_welcomebar_actionselect'], 'redirect_to_url' ); ?>><?php _e( 'Redirect to URL', 'myStickymenu' );?></option>
167 <option value="close_bar" <?php selected( @$welcomebar['mysticky_welcomebar_actionselect'], 'close_bar' ); ?>><?php _e( 'Close bar', 'myStickymenu' );?></option>
168 </select>
169 </div>
170 <div class="mysticky-welcomebar-setting-action mysticky-welcomebar-redirect" <?php if ( $welcomebar['mysticky_welcomebar_actionselect'] == 'close_bar' ) : ?> style="display:none;" <?php endif;?> >
171 <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"); ?>" />
172 </div>
173 <div class="mysticky-welcomebar-setting-newtab mysticky-welcomebar-redirect" <?php if ( $welcomebar['mysticky_welcomebar_actionselect'] == 'close_bar' ) : ?> style="display:none;" <?php endif;?> >
174 <label>
175 <input name="mysticky_option_welcomebar[mysticky_welcomebar_redirect_newtab]" value= "1" type="checkbox" disabled />
176 <?php _e( 'Open in a new tab', 'mystickymenu' );?>
177 </label>
178 <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
179 </div>
180 </div>
181 </div>
182 <!-- -->
183 <div class="mysticky-welcomebar-setting-content">
184 <label><?php _e('Attention Effect', 'myStickymenu'); ?></label>
185 <div class="mysticky-welcomebar-setting-content-right">
186 <div class="mysticky-welcomebar-setting-attention">
187 <select name="mysticky_option_welcomebar[mysticky_welcomebar_attentionselect]" class="mysticky-welcomebar-attention">
188 <option value="default" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], ' ' ); ?>><?php _e( 'None', 'myStickymenu' );?></option>
189 <option value="flash" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'flash' ); ?>><?php _e( 'Flash', 'myStickymenu' );?></option>
190 <option value="shake" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'shake' ); ?>><?php _e( 'Shake', 'myStickymenu' );?></option>
191 <option value="swing" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'swing' ); ?>><?php _e( 'Swing', 'myStickymenu' );?></option>
192 <option value="tada" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'tada' ); ?>><?php _e( 'Tada', 'myStickymenu' );?></option>
193 <option value="heartbeat" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'heartbeat' ); ?>><?php _e( 'Heartbeat', 'myStickymenu' );?></option>
194 <option value="wobble" <?php selected( @$welcomebar['mysticky_welcomebar_attentionselect'], 'wobble' ); ?>><?php _e( 'Wobble', 'myStickymenu' );?></option>
195 </select>
196 </div>
197 </div>
198 </div>
199 <!-- -->
200 <div class="mysticky-welcomebar-setting-content mysticky-welcomebar-setting-remove-getbar">
201 <label><?php _e('Remove myStickymenu', 'myStickymenu'); ?></label>
202 <div class="mysticky-welcomebar-setting-content-right">
203 <div class="mysticky-welcomebar-switch">
204 <input type="checkbox" id="mysticky-welcomebar-remove-getbar" name="mysticky_option_welcomebar[mysticky_welcomebar_remove_getbar]" value="1" disabled />
205 <span class="slider"></span>
206 </div>
207 <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( 'Upgrade Now', 'mystickymenu' );?></a></span>
208 </div>
209 </div>
210 </div>
211 <div class="mysticky-welcomebar-setting-block">
212 <div class="mysticky-welcomebar-subheader-title">
213 <h4><?php _e('Display Rules', 'myStickymenu'); ?></h4>
214 </div>
215 <div class="mysticky-welcomebar-upgrade-main mysticky_device_upgrade">
216 <span class="myStickymenu-upgrade">
217 <a class="sticky-header-upgrade-now" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php _e( ' Upgrade Now', 'mystickymenu' );?></a>
218 </span>
219 <div class="mysticky-welcomebar-setting-content">
220 <label><?php _e('Devices', 'myStickymenu'); ?></label>
221 <div class="mysticky-welcomebar-setting-content-right">
222 <label>
223 <input name="mysticky_option_welcomebar[mysticky_welcomebar_device_desktop]" value= "desktop" type="checkbox" checked disabled />
224 <?php _e( 'Desktop', 'mystickymenu' );?>
225 </label>
226 <label>
227 <input name="mysticky_option_welcomebar[mysticky_welcomebar_device_mobile]" value= "mobile" type="checkbox" checked disabled />
228 <?php _e( 'Mobile', 'mystickymenu' );?>
229 </label>
230 </div>
231 </div>
232 <div class="mysticky-welcomebar-setting-content">
233 <label><?php _e('Trigger', 'myStickymenu'); ?></label>
234 <div class="mysticky-welcomebar-setting-content-right">
235 <div class="mysticky-welcomebar-setting-action mysticky-welcomebar-trigger-wrap">
236 <label>
237 <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' );?>
238 </label>
239 <label>
240 <input type="radio" name="mysticky_option_welcomebar[mysticky_welcomebar_trigger]" value="after_scroll" disabled />&nbsp;<?php _e( 'After Scroll', 'myStickymenu' );?>
241 </label>
242 </div>
243 <div class="mysticky-welcomebar-setting-action mysticky-welcomebar-triggersec">
244 <div class="px-wrap">
245 <input type="number" class="" min="0" step="1" id="mysticky_welcomebar_triggersec" name="mysticky_option_welcomebar[mysticky_welcomebar_triggersec]" value="0" disabled />
246 <span class="input-px"><?php echo ( isset($welcomebar['mysticky_welcomebar_trigger']) && $welcomebar['mysticky_welcomebar_trigger'] == 'after_scroll' ) ? '%' : 'Sec'; ?></span>
247 </div>
248 </div>
249 </div>
250 </div>
251 <div class="mysticky-welcomebar-setting-content">
252 <label><?php _e('Expiry date', 'myStickymenu'); ?></label>
253 <div class="mysticky-welcomebar-setting-content-right">
254 <div class="mysticky-welcomebar-expirydate">
255 <input type="text" id="mysticky_welcomebar_expirydate" name="mysticky_option_welcomebar[mysticky_welcomebar_expirydate]" placeholder="<?php _e('No expiry date', 'myStickymenu'); ?>" value="" disabled />
256 <span class="dashicons dashicons-calendar-alt"></span>
257 </div>
258 </div>
259 </div>
260 <div class="mysticky-welcomebar-setting-content show-on-apper">
261 <label><?php _e('Page targeting', 'myStickymenu'); ?></label>
262 <div class="mysticky-welcomebar-setting-content-right">
263 <a href="javascript:void(0);" class="create-rule" id="create-rule"><?php esc_html_e( "Add Rule", "mystickyelements" );?></a>
264 </div>
265 <div class="mysticky-welcomebar-page-options-html" style="display: none">
266 <div class="mysticky-welcomebar-page-option">
267 <div class="url-content">
268 <div class="mysticky-welcomebar-url-select">
269 <select name="mysticky_option_welcomebar[page_settings][__count__][shown_on]" id="url_shown_on___count___option" disabled>
270 <option value="show_on"><?php esc_html_e("Show on", "mysticky" );?></option>
271 <option value="not_show_on"><?php esc_html_e("Don't show on", "mysticky" );?></option>
272 </select>
273 </div>
274 <div class="mysticky-welcomebar-url-option">
275 <select class="mysticky-welcomebar-url-options" name="mysticky_option_welcomebar[page_settings][__count__][option]" id="url_rules___count___option" disabled>
276 <option selected="selected" disabled value=""><?php esc_html_e("Select Rule", "mysticky" );?></option>
277 </select>
278 </div>
279 <div class="mysticky-welcomebar-url-box">
280 <span class='mysticky-welcomebar-url'><?php echo site_url("/"); ?></span>
281 </div>
282 <div class="mysticky-welcomebar-url-values">
283 <input type="text" value="" name="mysticky_option_welcomebar[page_settings][__count__][value]" id="url_rules___count___value" disabled />
284 </div>
285 <div class="clear"></div>
286 </div>
287 </div>
288 </div>
289 <div class="mysticky-welcomebar-page-options mysticky-welcomebar-setting-content-right" id="mysticky-welcomebar-page-options" style="display:none"></div>
290 </div>
291 </div>
292 </div>
293 </div>
294 <div class="mysticky-welcomebar-setting-right">
295 <div class="mysticky-welcomebar-header-title">
296 <h3><?php _e('Preview', 'mystickyelements'); ?></h3>
297 </div>
298 <div class="mysticky-welcomebar-preview-screen">
299 <link href="https://fonts.googleapis.com/css?family=<?php echo $welcomebar['mysticky_welcomebar_font'] ?>:400,600,700|Lato:400,500,600,700" rel="stylesheet" type="text/css" class="sfba-google-font">
300 <div class="mysticky-welcomebar-fixed mysticky-welcomebar-display-desktop <?php echo $display_main_class; ?>" >
301 <div class="mysticky-welcomebar-content">
302 <?php echo wpautop(isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase");?>
303 </div>
304 <div class="mysticky-welcomebar-btn">
305 <a href="#" ><?php echo isset($welcomebar['mysticky_welcomebar_btn_text']) ? $welcomebar['mysticky_welcomebar_btn_text'] : "Got it!";?></a>
306 </div>
307 <a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
308 <a href="#" class="mysticky-welcomebar-getbar"><?php _e( 'myStickymenu', 'mystickymenu' );?></a>
309 </div>
310 </div>
311 </div>
312 </div>
313 <div class="mysticky-welcomebar-submit">
314 <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save', 'mystickymenu');?>">
315 </div>
316 <input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
317 <input type="hidden" name="active_tab_element" value="1">
318 <input type="hidden" id="save_welcome_bar" name="save_welcome_bar" value="">
319
320 </form>
321 <form class="mysticky-welcomebar-form-reset" method="post" action="#">
322 <div class="mysticky-welcomebar-submit">
323 <input type="submit" name="mysticky_welcomebar_reset" id="reset" class="button button-secondary" value="<?php _e('Reset', 'mystickymenu');?>">
324 </div>
325 <input type="hidden" name="nonce_reset" value="<?php echo $nonce_reset; ?>">
326 <input type="hidden" name="active_tab_element" value="1">
327 </form>
328 <div id="mysticky-welcomebar-save-confirm" style="display:none;" title="<?php esc_attr_e( 'myStickymenu is currently off', 'mystickymenu' ); ?>">
329 <p>
330 <?php _e('Your Welcome Bar is currently turned off, would you like to save and show it on your site?', 'mystickymenu' ); ?>
331 </p>
332 </div>
333 <script>
334 jQuery(".mysticky-welcomebar-fixed").on(
335 "animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",
336 function() {
337 jQuery(this).removeClass("animation-start");
338 }
339 );
340 jQuery(document).ready(function() {
341 var container = jQuery(".mysticky-welcomebar-fixed");
342 var refreshId = setInterval(function() {
343 container.addClass("animation-start");
344 }, 3500);
345 });
346 </script>
347 <style>
348 .mysticky-welcomebar-fixed {
349 height: 80px;
350 background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
351 font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
352 position: absolute;
353 left: 0;
354 right: 0;
355 display: none;
356 align-items: center;
357 justify-content: center;
358 padding: 20px 30px 20px 10px;
359 z-index: 9999999;
360 }
361 .mysticky-welcomebar-preview-mobile-screen .mysticky-welcomebar-fixed{
362 padding: 0 25px;
363 }
364 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-fixed {
365 display: flex;
366 height: auto;
367 }
368 .mysticky-welcomebar-position-top {
369 top:0;
370 }
371 .mysticky-welcomebar-position-bottom {
372 bottom:0;
373 }
374 .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
375 color: <?php echo $welcomebar['mysticky_welcomebar_bgtxtcolor'] ?>;
376 font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
377 font-family: inherit;
378 margin: 0;
379 padding: 0;
380 line-height: 1.2;
381 font-weight: 400;
382 }
383 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
384 padding-left: 30px;
385 display: none;
386 }
387 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-desktop .mysticky-welcomebar-btn {
388 display: block;
389 }
390 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a {
391 background-color: <?php echo $welcomebar['mysticky_welcomebar_btncolor'] ?>;
392 font-family: inherit;
393 color: <?php echo $welcomebar['mysticky_welcomebar_btntxtcolor'] ?>;
394 border-radius: 4px;
395 text-decoration: none;
396 display: inline-block;
397 vertical-align: top;
398 line-height: 1.2;
399 font-size: <?php echo $welcomebar['mysticky_welcomebar_fontsize'] ?>px;
400 font-weight: 400;
401 padding: 5px 20px;
402 white-space: nowrap;
403 }
404 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a:hover {
405 /*opacity: 0.7;*/
406 -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0,0.5);
407 -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
408 box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
409 }
410 .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
411 display: none;
412 vertical-align: top;
413 width: 20px;
414 height: 20px;
415 text-align: center;
416 text-decoration: none;
417 line-height: 20px;
418 border-radius: 5px;
419 color: #000;
420 position: absolute;
421 font-family: Lato;
422 top: 5px;
423 right: 5px;
424 text-shadow: 0 0 0px #fff;
425 -webkit-transition: all 0.5s ease 0s;
426 -moz-transition: all 0.5s ease 0s;
427 transition: all 0.5s ease 0s;
428 -webkit-transform-origin: 50% 50%;
429 -moz-transform-origin: 50% 50%;
430 transform-origin: 50% 50%;
431 }
432 .mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
433 opacity: 1;
434 -webkit-transform: rotate(180deg);
435 -moz-transform: rotate(180deg);
436 transform: rotate(180deg);
437 }
438 .mysticky-welcomebar-fixed.mysticky-welcomebar-showx-desktop .mysticky-welcomebar-close {
439 display: inline-block;
440 }
441 .mysticky-welcomebar-getbar:focus,
442 .mysticky-welcomebar-getbar:active,
443 .mysticky-welcomebar-getbar {
444 background-color: rgba(140,140,140,0.5) !important;
445 border-radius: 8px !important;
446 color: #FFFFFF !important;
447 position: absolute !important;
448 padding: 3px !important;
449 bottom: 3px !important;
450 left: 3px !important;
451 font-size: 10px !important;
452 line-height: 1.4 !important;
453 margin: 0 !important;
454 display: inline-block !important;
455 vertical-align: top !important;
456 font-family: Poppins !important;
457 text-decoration: none !important;
458 visibility: visible !important;
459 }
460 .mysticky-welcomebar-getbar:hover {
461 color: #000000 !important;
462 opacity: 0.5 !important;
463 }
464
465 @media only screen and (max-width: 1024px) {
466 .mysticky-welcomebar-fixed {
467 padding: 0 20px 0 10px;
468 }
469 .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
470 width: 20px;
471 height: 20px;
472 line-height: 20px;
473 right: 0px;
474 }
475 }
476
477 /* Animated Buttons */
478 .mysticky-welcomebar-btn a {
479 -webkit-animation: 1s;
480 animation-duration: 1s;
481 }
482 @-webkit-keyframes flash {
483 from,
484 50%,
485 to {
486 opacity: 1;
487 }
488
489 25%,
490 75% {
491 opacity: 0;
492 }
493 }
494 @keyframes flash {
495 from,
496 50%,
497 to {
498 opacity: 1;
499 }
500
501 25%,
502 75% {
503 opacity: 0;
504 }
505 }
506 .mysticky-welcomebar-attention-flash.animation-start .mysticky-welcomebar-btn a {
507 -webkit-animation-name: flash;
508 animation-name: flash;
509 }
510
511 @keyframes shake {
512 from,
513 to {
514 -webkit-transform: translate3d(0, 0, 0);
515 transform: translate3d(0, 0, 0);
516 }
517
518 10%,
519 30%,
520 50%,
521 70%,
522 90% {
523 -webkit-transform: translate3d(-10px, 0, 0);
524 transform: translate3d(-10px, 0, 0);
525 }
526
527 20%,
528 40%,
529 60%,
530 80% {
531 -webkit-transform: translate3d(10px, 0, 0);
532 transform: translate3d(10px, 0, 0);
533 }
534 }
535
536 .mysticky-welcomebar-attention-shake.animation-start .mysticky-welcomebar-btn a {
537 -webkit-animation-name: shake;
538 animation-name: shake;
539 }
540
541 @-webkit-keyframes swing {
542 20% {
543 -webkit-transform: rotate3d(0, 0, 1, 15deg);
544 transform: rotate3d(0, 0, 1, 15deg);
545 }
546
547 40% {
548 -webkit-transform: rotate3d(0, 0, 1, -10deg);
549 transform: rotate3d(0, 0, 1, -10deg);
550 }
551
552 60% {
553 -webkit-transform: rotate3d(0, 0, 1, 5deg);
554 transform: rotate3d(0, 0, 1, 5deg);
555 }
556
557 80% {
558 -webkit-transform: rotate3d(0, 0, 1, -5deg);
559 transform: rotate3d(0, 0, 1, -5deg);
560 }
561
562 to {
563 -webkit-transform: rotate3d(0, 0, 1, 0deg);
564 transform: rotate3d(0, 0, 1, 0deg);
565 }
566 }
567
568 @keyframes swing {
569 20% {
570 -webkit-transform: rotate3d(0, 0, 1, 15deg);
571 transform: rotate3d(0, 0, 1, 15deg);
572 }
573
574 40% {
575 -webkit-transform: rotate3d(0, 0, 1, -10deg);
576 transform: rotate3d(0, 0, 1, -10deg);
577 }
578
579 60% {
580 -webkit-transform: rotate3d(0, 0, 1, 5deg);
581 transform: rotate3d(0, 0, 1, 5deg);
582 }
583
584 80% {
585 -webkit-transform: rotate3d(0, 0, 1, -5deg);
586 transform: rotate3d(0, 0, 1, -5deg);
587 }
588
589 to {
590 -webkit-transform: rotate3d(0, 0, 1, 0deg);
591 transform: rotate3d(0, 0, 1, 0deg);
592 }
593 }
594
595 .mysticky-welcomebar-attention-swing.animation-start .mysticky-welcomebar-btn a {
596 -webkit-transform-origin: top center;
597 transform-origin: top center;
598 -webkit-animation-name: swing;
599 animation-name: swing;
600 }
601
602 @-webkit-keyframes tada {
603 from {
604 -webkit-transform: scale3d(1, 1, 1);
605 transform: scale3d(1, 1, 1);
606 }
607
608 10%,
609 20% {
610 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
611 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
612 }
613
614 30%,
615 50%,
616 70%,
617 90% {
618 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
619 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
620 }
621
622 40%,
623 60%,
624 80% {
625 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
626 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
627 }
628
629 to {
630 -webkit-transform: scale3d(1, 1, 1);
631 transform: scale3d(1, 1, 1);
632 }
633 }
634
635 @keyframes tada {
636 from {
637 -webkit-transform: scale3d(1, 1, 1);
638 transform: scale3d(1, 1, 1);
639 }
640
641 10%,
642 20% {
643 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
644 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
645 }
646
647 30%,
648 50%,
649 70%,
650 90% {
651 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
652 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
653 }
654
655 40%,
656 60%,
657 80% {
658 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
659 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
660 }
661
662 to {
663 -webkit-transform: scale3d(1, 1, 1);
664 transform: scale3d(1, 1, 1);
665 }
666 }
667
668 .mysticky-welcomebar-attention-tada.animation-start .mysticky-welcomebar-btn a {
669 -webkit-animation-name: tada;
670 animation-name: tada;
671 }
672
673 @-webkit-keyframes heartBeat {
674 0% {
675 -webkit-transform: scale(1);
676 transform: scale(1);
677 }
678
679 14% {
680 -webkit-transform: scale(1.3);
681 transform: scale(1.3);
682 }
683
684 28% {
685 -webkit-transform: scale(1);
686 transform: scale(1);
687 }
688
689 42% {
690 -webkit-transform: scale(1.3);
691 transform: scale(1.3);
692 }
693
694 70% {
695 -webkit-transform: scale(1);
696 transform: scale(1);
697 }
698 }
699
700 @keyframes heartBeat {
701 0% {
702 -webkit-transform: scale(1);
703 transform: scale(1);
704 }
705
706 14% {
707 -webkit-transform: scale(1.3);
708 transform: scale(1.3);
709 }
710
711 28% {
712 -webkit-transform: scale(1);
713 transform: scale(1);
714 }
715
716 42% {
717 -webkit-transform: scale(1.3);
718 transform: scale(1.3);
719 }
720
721 70% {
722 -webkit-transform: scale(1);
723 transform: scale(1);
724 }
725 }
726
727 .mysticky-welcomebar-attention-heartbeat.animation-start .mysticky-welcomebar-btn a {
728 -webkit-animation-name: heartBeat;
729 animation-name: heartBeat;
730 -webkit-animation-duration: 1.3s;
731 animation-duration: 1.3s;
732 -webkit-animation-timing-function: ease-in-out;
733 animation-timing-function: ease-in-out;
734 }
735
736 @-webkit-keyframes wobble {
737 from {
738 -webkit-transform: translate3d(0, 0, 0);
739 transform: translate3d(0, 0, 0);
740 }
741
742 15% {
743 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
744 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
745 }
746
747 30% {
748 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
749 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
750 }
751
752 45% {
753 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
754 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
755 }
756
757 60% {
758 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
759 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
760 }
761
762 75% {
763 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
764 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
765 }
766
767 to {
768 -webkit-transform: translate3d(0, 0, 0);
769 transform: translate3d(0, 0, 0);
770 }
771 }
772
773 @keyframes wobble {
774 from {
775 -webkit-transform: translate3d(0, 0, 0);
776 transform: translate3d(0, 0, 0);
777 }
778
779 15% {
780 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
781 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
782 }
783
784 30% {
785 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
786 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
787 }
788
789 45% {
790 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
791 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
792 }
793
794 60% {
795 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
796 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
797 }
798
799 75% {
800 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
801 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
802 }
803
804 to {
805 -webkit-transform: translate3d(0, 0, 0);
806 transform: translate3d(0, 0, 0);
807 }
808 }
809
810 .mysticky-welcomebar-attention-wobble.animation-start .mysticky-welcomebar-btn a {
811 -webkit-animation-name: wobble;
812 animation-name: wobble;
813 }
814 </style>
815
816 <?php
817 }
818
819 function mysticky_welcomebar_pro_widget_default_fields() {
820 return array(
821 'mysticky_welcomebar_position' => 'top',
822 'mysticky_welcomebar_height' => '60',
823 'mysticky_welcomebar_bgcolor' => '#03ed96',
824 'mysticky_welcomebar_bgtxtcolor' => '#000000',
825 'mysticky_welcomebar_font' => 'Poppins',
826 'mysticky_welcomebar_fontsize' => '16',
827 'mysticky_welcomebar_bar_text' => 'Get 30% off your first purchase',
828 'mysticky_welcomebar_x_desktop' => 'desktop',
829 'mysticky_welcomebar_x_mobile' => 'mobile',
830 'mysticky_welcomebar_btn_desktop' => 'desktop',
831 'mysticky_welcomebar_btn_mobile' => 'mobile',
832 'mysticky_welcomebar_btncolor' => '#000000',
833 'mysticky_welcomebar_btntxtcolor' => '#ffffff',
834 'mysticky_welcomebar_btn_text' => 'Got it!',
835 'mysticky_welcomebar_actionselect' => 'close_bar',
836 'mysticky_welcomebar_redirect' => 'https://www.yourdomain.com',
837 'mysticky_welcomebar_redirect_newtab' => '',
838 'mysticky_welcomebar_device_desktop' => 'desktop',
839 'mysticky_welcomebar_device_mobile' => 'mobile',
840 'mysticky_welcomebar_trigger' => 'after_a_few_seconds',
841 'mysticky_welcomebar_triggersec' => '0',
842 'mysticky_welcomebar_expirydate' => '',
843 'mysticky_welcomebar_page_settings' => '',
844 );
845 }
846
847 function mysticky_welcome_bar_frontend(){
848 $welcomebar = get_option( 'mysticky_option_welcomebar' );
849
850 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'] ) ) {
851 return;
852 }
853 $mysticky_welcomebar_showx_desktop = $mysticky_welcomebar_showx_mobile = '';
854 $mysticky_welcomebar_btn_desktop = $mysticky_welcomebar_btn_mobile = '';
855 $mysticky_welcomebar_display_desktop = $mysticky_welcomebar_display_mobile = '';
856 if( isset($welcomebar['mysticky_welcomebar_x_desktop']) ) {
857 $mysticky_welcomebar_showx_desktop = ' mysticky-welcomebar-showx-desktop';
858 }
859 if( isset($welcomebar['mysticky_welcomebar_x_mobile']) ) {
860 $mysticky_welcomebar_showx_mobile = ' mysticky-welcomebar-showx-mobile';
861 }
862 if( isset($welcomebar['mysticky_welcomebar_btn_desktop']) ) {
863 $mysticky_welcomebar_btn_desktop = ' mysticky-welcomebar-btn-desktop';
864 }
865 if( isset($welcomebar['mysticky_welcomebar_btn_mobile']) ) {
866 $mysticky_welcomebar_btn_mobile = ' mysticky-welcomebar-btn-mobile';
867 }
868 $display = ' mysticky-welcomebar-attention-'.$welcomebar['mysticky_welcomebar_attentionselect'];
869 $mysticky_welcomebar_display_desktop = ' mysticky-welcomebar-display-desktop';
870 $mysticky_welcomebar_display_mobile = ' mysticky-welcomebar-display-mobile';
871
872 $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;
873
874 if( isset($welcomebar['mysticky_welcomebar_actionselect']) ) {
875 if( $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' ) {
876 $mysticky_welcomebar_actionselect_url = esc_url( $welcomebar['mysticky_welcomebar_redirect'] );
877 } else {
878 $mysticky_welcomebar_actionselect_url = 'javascript:void(0)';
879 }
880 }
881 if( !isset($welcomebar['mysticky_welcomebar_enable']) ) {
882 if ( $welcomebar['mysticky_welcomebar_position'] == 'top' ) {
883 $welcomebar_enable_block = "top: -60px";
884 } else {
885 $welcomebar_enable_block = "bottom: -60px";
886 }
887 }
888
889 ?>
890 <div class="mysticky-welcomebar-fixed <?php echo $display_main_class; ?>" style="<?php echo $welcomebar_enable_block; ?>" data-after-triger="after_a_few_seconds" data-triger-sec="0" data-position="<?php echo esc_attr($welcomebar['mysticky_welcomebar_position']);?>" data-height="<?php echo esc_attr($welcomebar['mysticky_welcomebar_height']);?>" data-rediect="<?php echo esc_attr($welcomebar['mysticky_welcomebar_actionselect']);?>">
891 <div class="mysticky-welcomebar-content">
892 <?php echo wpautop( isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase" );?>
893 </div>
894 <div class="mysticky-welcomebar-btn">
895 <a href="<?php echo $mysticky_welcomebar_actionselect_url; ?>" <?php if( isset($welcomebar['mysticky_welcomebar_redirect_newtab']) && $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' && $welcomebar['mysticky_welcomebar_redirect_newtab']== 1):?> target="_blank" <?php endif;?>><?php echo isset($welcomebar['mysticky_welcomebar_btn_text'])?$welcomebar['mysticky_welcomebar_btn_text']:"Got it!";?></a>
896 </div>
897 <a href="javascript:void(0)" class="mysticky-welcomebar-close">X</a>
898 <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>
899 </div>
900 <script>
901
902 jQuery(document).ready(function($){
903 var mysticky_welcomebar_height = jQuery( '.mysticky-welcomebar-fixed' ).innerHeight();
904 if( jQuery( '.mysticky-welcomebar-fixed' ).data('position') == 'top' ) {
905 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
906 } else {
907 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '-' + mysticky_welcomebar_height + 'px' );
908 }
909 if ( sessionStorage.getItem("welcomebar_close") === null ){
910
911 var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
912
913 if ( after_trigger == 'after_a_few_seconds' ) {
914 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
915 if ( $( window ).width() > 767 ) {
916 var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
917 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
918 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
919 setTimeout(function(){
920 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
921 if ( welcombar_position == 'top' ) {
922 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
923 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
924 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
925 $( 'html' ).css( 'margin-bottom', '' );
926 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
927 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
928 } else {
929 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
930 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
931 $( 'html' ).css( 'margin-top', '' );
932 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
933 }
934 }, trigger_sec );
935 }
936 }
937 }
938 if ( $( window ).width() < 767 ) {
939 if ( after_trigger == 'after_a_few_seconds' ) {
940 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
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' ).css( 'top', '0' );
948 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
949 $( 'html' ).css( 'margin-bottom', '' );
950 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
951 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
952 } else {
953 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
954 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
955 $( 'html' ).css( 'margin-top', '' );
956 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
957 }
958 }, trigger_sec );
959 }
960 }
961 }
962 mystickyelements_present();
963 }
964 $( window ).resize( function(){
965 if ( sessionStorage.getItem("welcomebar_close") === null ){
966 var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
967 if ( after_trigger == 'after_a_few_seconds' ) {
968 var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
969 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
970 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
971 if ( $( window ).width() < 767 ) {
972 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
973 setTimeout(function(){
974 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
975 if ( welcombar_position == 'top' ) {
976 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
977 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
978 $( 'html' ).css( 'margin-bottom', '' );
979 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
980 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
981 } else {
982 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
983 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
984 $( 'html' ).css( 'margin-top', '' );
985 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
986 }
987 }, trigger_sec );
988 }
989 } else {
990 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
991 setTimeout(function(){
992 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
993 if ( welcombar_position == 'top' ) {
994 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
995 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
996 $( 'html' ).css( 'margin-bottom', '' );
997 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
998 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
999 } else {
1000 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
1001 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1002 $( 'html' ).css( 'margin-top', '' );
1003 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
1004 }
1005 }, trigger_sec );
1006 }
1007 }
1008 }
1009 mystickyelements_present();
1010 }
1011 } );
1012
1013 jQuery(window).scroll(function(){
1014 if ( sessionStorage.getItem("welcomebar_close") === null ){
1015 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
1016 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
1017 if ( welcombar_position == 'top' ) {
1018 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1019 }
1020 if ( after_trigger === 'after_scroll' ) {
1021 var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
1022 var after_scroll_val = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec');
1023 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
1024 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
1025 if( scroll > after_scroll_val ) {
1026 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-desktop' ) ) {
1027 if ( $( window ).width() > 767 ) {
1028 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
1029 if ( welcombar_position == 'top' ) {
1030 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
1031 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1032 $( 'html' ).css( 'margin-bottom', '' );
1033 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
1034 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1035 } else {
1036 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
1037 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1038 $( 'html' ).css( 'margin-top', '' );
1039 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
1040 }
1041 }
1042 }
1043 if ( $( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
1044 if ( $( window ).width() < 767 ) {
1045 jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
1046 if ( welcombar_position == 'top' ) {
1047 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
1048 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1049 $( 'html' ).css( 'margin-bottom', '' );
1050 $( 'html' ).attr( 'style', 'margin-top: ' + mysticky_welcomebar_height + 'px !important' );
1051 $( '#mysticky-nav' ).css( 'top', mysticky_welcomebar_height + 'px' );
1052 } else {
1053 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
1054 jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
1055 $( 'html' ).css( 'margin-top', '' );
1056 $( 'html' ).attr( 'style', 'margin-bottom: ' + mysticky_welcomebar_height + 'px !important' );
1057 }
1058 }
1059 }
1060 }
1061 }
1062 mystickyelements_present();
1063 }
1064
1065 });
1066 jQuery( '.mysticky-welcomebar-close, .mysticky-welcomebar-btn a' ).on( 'click', function(){
1067 console.log("mysticky_welcomebar_height = " + mysticky_welcomebar_height);
1068 sessionStorage.setItem('welcomebar_close', 'close');
1069 var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
1070 var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
1071 jQuery( '.mysticky-welcomebar-fixed' ).slideUp( 'slow' );
1072 if ( welcombar_position == 'top' ) {
1073 jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '-' + mysticky_welcomebar_height + 'px' );
1074 } else {
1075 jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '-' + mysticky_welcomebar_height + 'px' );
1076 }
1077 jQuery( 'html' ).css( 'margin-top', '' );
1078 jQuery( 'html' ).css( 'margin-bottom', '' );
1079 $( '#mysticky-nav' ).css( 'top', '0px' );
1080 /*if mystickyelements show*/
1081 var mystickyelements_show = $( '.mystickyelements-fixed' ).length;
1082 if( mystickyelements_show && $( window ).width() <= 1024 && $( '.mystickyelements-fixed' ).hasClass( 'mystickyelements-position-mobile-top' ) && welcombar_position == 'top' ) {
1083 var mystickyelements_height = $( '.mystickyelements-fixed' ).height();
1084 $( '.mystickyelements-fixed' ).css( 'top', '' );
1085 $( 'html' ).attr( 'style', 'margin-top: ' + mystickyelements_height + 'px !important' );
1086 }
1087 } );
1088 });
1089 function mystickyelements_present() {
1090 var after_trigger = jQuery( '.mysticky-welcomebar-fixed' ).data('after-triger');
1091 var mystickyelements_show = jQuery( '.mystickyelements-fixed' ).length;
1092 if( mystickyelements_show ) {
1093 var welcombar_position = jQuery( '.mysticky-welcomebar-fixed' ).data('position');
1094 var welcombar_height = jQuery( '.mysticky-welcomebar-fixed' ).innerHeight();
1095 var mystickyelements_height = jQuery( '.mystickyelements-fixed' ).height();
1096 var mystickyelements_total_height = welcombar_height + mystickyelements_height;
1097 if ( jQuery( window ).width() <= 1024 && jQuery( '.mystickyelements-fixed' ).hasClass( 'mystickyelements-position-mobile-top' ) ) {
1098 if ( after_trigger == 'after_a_few_seconds' ) {
1099 if ( jQuery( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
1100 var trigger_sec = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec') * 1000;
1101 setTimeout(function(){
1102 if ( welcombar_position == 'top' ) {
1103 jQuery( '.mystickyelements-fixed' ).css( 'top', welcombar_height );
1104 jQuery( 'html' ).attr( 'style', 'margin-top: ' + mystickyelements_total_height + 'px !important' );
1105 } else {
1106 jQuery( '.mystickyelements-fixed' ).css( 'top', '' );
1107 jQuery( 'html' ).attr( 'style', 'margin-bottom: ' + welcombar_height + 'px !important' );
1108 }
1109 }, trigger_sec );
1110 }
1111 } else if ( after_trigger === 'after_scroll' ) {
1112 var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
1113 var after_scroll_val = $( '.mysticky-welcomebar-fixed' ).data('triger-sec');
1114 if( scroll > after_scroll_val ) {
1115 if ( jQuery( '.mysticky-welcomebar-fixed' ).hasClass( 'mysticky-welcomebar-display-mobile' ) ) {
1116 if ( welcombar_position == 'top' ) {
1117 jQuery( '.mystickyelements-fixed' ).css( 'top', welcombar_height );
1118 jQuery( 'html' ).attr( 'style', 'margin-top: ' + mystickyelements_total_height + 'px !important' );
1119 } else {
1120 jQuery( '.mystickyelements-fixed' ).css( 'top', '' );
1121 jQuery( 'html' ).attr( 'style', 'margin-bottom: ' + welcombar_height + 'px !important' );
1122 }
1123 }
1124 }
1125 }
1126 }
1127 }
1128 }
1129 jQuery(".mysticky-welcomebar-fixed").on(
1130 "animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",
1131 function() {
1132 jQuery(this).removeClass("animation-start");
1133 }
1134 );
1135 jQuery(document).ready(function() {
1136 var container = jQuery(".mysticky-welcomebar-fixed");
1137 var refreshId = setInterval(function() {
1138 container.addClass("animation-start");
1139 }, 3500);
1140 });
1141
1142 </script>
1143 <style>
1144 .mysticky-welcomebar-fixed {
1145 height: 60px;
1146 background-color: <?php echo $welcomebar['mysticky_welcomebar_bgcolor'] ?>;
1147 font-family: <?php echo $welcomebar['mysticky_welcomebar_font'] ?>;
1148 position: fixed;
1149 left: 0;
1150 right: 0;
1151 display: flex;
1152 align-items: center;
1153 justify-content: center;
1154 padding: 20px 50px;
1155 z-index: 9999999;
1156 opacity: 0;
1157 }
1158 .mysticky-welcomebar-animation {
1159 -webkit-transition: all 0.5s ease 0s;
1160 -moz-transition: all 0.5s ease 0s;
1161 transition: all 0.5s ease 0s;
1162 }
1163 .mysticky-welcomebar-position-top {
1164 top: -60px;
1165 }
1166 .mysticky-welcomebar-position-bottom {
1167 bottom: -60px;
1168 }
1169 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed {
1170 top: 0;
1171 height: auto;
1172 }
1173 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed {
1174 bottom: 0;
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' );