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