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