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