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