PluginProbe ʕ •ᴥ•ʔ
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) / 2.7.4
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) v2.7.4
2.9.1 2.9.0 2.8.9 2.8.8 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 2.0 2.0.1 2.0.3 2.0.4 2.0.5 2.0.6 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7
mystickymenu / welcome-bar.php
mystickymenu Last commit date
css 1 year ago fonts 4 years ago images 1 year ago js 1 year ago languages 2 years ago class-review-box.php 1 year ago class-upgrade-box.php 1 year ago help.php 1 year ago index.php 8 years ago mystickymenu-admin-widgetanalytics.php 1 year ago mystickymenu-affiliate.php 1 year 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 1 year ago mystickymenu.php 1 year ago mystickymeny-new-welcomebar.php 1 year ago readme.txt 1 year ago recommended-plugins.php 1 year ago stickymenu-dashboard.php 1 year ago uninstall.php 2 years ago update.php 1 year ago upgrade-to-pro.php 1 year ago welcome-bar.php 1 year ago
welcome-bar.php
2552 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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;">Choose if you want to show the bar on top or at the bottom of your site</p></span></label>
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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;">Choose the size of your bar in pixels</p></span>
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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e('Choose 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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e('Enhance Your Sticky Menu with Sliding Text. Display multiple lines of content that can scroll automatically in your desired direction.', 'mystickymenu');?><br><img src="<?php echo 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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e('Choose if you want to show an X button to close the bar or not or desktop and mobile devices', 'mystickymenu');?></p></span>
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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e("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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php echo sprintf(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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e("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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;">Choose whether you want to display a button on your bar or not on desktop and mobile devices</p></span>
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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;">Select what you'd like to happen when a visitor clicks on the button <br/>Redirect the visitor to another URL - your visitor will be redirected to another URL after they click on the button (for example, a specific product or latest collection) <br/>Close the Bar - after they user clicks on the button, the Bar will be closed <br/>Launch a Poptin pop-up - when the user clicks on the button, a Poptin pop-up will be launched. You need to first create a free Poptin account (link on "free Poptin account" to <a href='https://www.poptin.com/?utm_source=msm' target="_blank">https://www.poptin.com/?utm_source=msm</a>) and set up your pop-ups <br/>Show a thank-you screen - show a thank you screen after the user clicks on a button with different text from your Bar text</p></span>
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="javascript:void(0);" 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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e("Choose 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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e("Choose if you'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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;">Choose if you want to show the bar on desktop or mobile only, or on both</p></span>
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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;">Choose when you'd like the bar to appear on your site</p></span>
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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e('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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e('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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e('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="javascript:void(0);">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="javascript:void(0);" 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="javascript:void(0);" 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="javascript:void(0);" 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="javascript:void(0);" class="mysticky-tooltip mysticky-new-custom-btn"><i class="dashicons dashicons-editor-help"></i></a><p style="z-index: 99999;"><?php esc_html_e("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="javascript:void(0);" 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="javascript:void(0)"><?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="javascript:void(0);">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_position' => 'top',
1446 'mysticky_welcomebar_height' => '60',
1447 'mysticky_welcomebar_bgcolor' => '#03ed96',
1448 'mysticky_welcomebar_bgtxtcolor' => '#000000',
1449 'mysticky_welcomebar_font' => 'Poppins',
1450 'mysticky_welcomebar_fontsize' => '16',
1451 'mysticky_welcomebar_bar_text' => '<p style="text-align: center;">Get 30% off your first purchase</p>',
1452 'mysticky_welcomebar_x_desktop' => 'desktop',
1453 'mysticky_welcomebar_x_mobile' => 'mobile',
1454 'mysticky_welcomebar_btn_desktop' => 'desktop',
1455 'mysticky_welcomebar_btn_mobile' => 'mobile',
1456 'mysticky_welcomebar_btncolor' => '#000000',
1457 'mysticky_welcomebar_btntxtcolor' => '#ffffff',
1458 'mysticky_welcomebar_btnhovertxtcolor' => '#000000',
1459 'mysticky_welcomebar_btnhoverbordercolor'=> '#000000',
1460 'mysticky_welcomebar_btnhovercolor' => '#ffffff',
1461 'mysticky_welcomebar_btn_text' => 'Got it!',
1462 'mysticky_welcomebar_actionselect' => 'close_bar',
1463 'mysticky_welcomebar_hover_effect' => 'none',
1464 'mysticky_welcomebar_hover_fill_effect' => 'fill1',
1465 'mysticky_welcomebar_hover_border_effect'=> 'border1',
1466 'mysticky_welcomebar_aftersubmission' => 'dont_show_welcomebar',
1467 'mysticky_welcomebar_redirect' => 'https://www.yourdomain.com',
1468 'mysticky_welcomebar_redirect_newtab' => '',
1469 'mysticky_welcomebar_redirect_rel' => '',
1470 'mysticky_welcomebar_device_desktop' => 'desktop',
1471 'mysticky_welcomebar_device_mobile' => 'mobile',
1472 'mysticky_welcomebar_entry_effect' => 'slide-in',
1473 'mysticky_welcomebar_trigger' => 'after_a_few_seconds',
1474 'mysticky_welcomebar_triggersec' => '0',
1475 'mysticky_welcomebar_expirydate' => '',
1476 'mysticky_welcomebar_page_settings' => '',
1477 'mysticky_welcomebar_timer_position' => 'left',
1478 'mysticky_welcomebar_timer_bgcolor' => '#000000',
1479 'mysticky_welcomebar_timer_textcolor' => '#ffffff',
1480 'lead_name_placeholder' => 'Name',
1481 'lead_email_placeholder' => 'Email',
1482 'lead_phone_placeholder' => 'Phone',
1483 'mysticky_welcomebar_enable_lead' => '0',
1484 );
1485 }
1486
1487 function mysticky_welcome_bar_frontend(){
1488 global $wp;
1489 $welcomebar = get_option( 'mysticky_option_welcomebar' );
1490
1491 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) ) {
1492 return;
1493 }
1494
1495 $mysticky_welcomebar_showx_desktop = $mysticky_welcomebar_showx_mobile = '';
1496 $mysticky_welcomebar_btn_desktop = $mysticky_welcomebar_btn_mobile = '';
1497 $mysticky_welcomebar_display_desktop = $mysticky_welcomebar_display_mobile = '';
1498 if( isset($welcomebar['mysticky_welcomebar_x_desktop']) ) {
1499 $mysticky_welcomebar_showx_desktop = ' mysticky-welcomebar-showx-desktop';
1500 }
1501 if( isset($welcomebar['mysticky_welcomebar_x_mobile']) ) {
1502 $mysticky_welcomebar_showx_mobile = ' mysticky-welcomebar-showx-mobile';
1503 }
1504 if( isset($welcomebar['mysticky_welcomebar_btn_desktop']) ) {
1505 $mysticky_welcomebar_btn_desktop = ' mysticky-welcomebar-btn-desktop';
1506 }
1507 if( isset($welcomebar['mysticky_welcomebar_btn_mobile']) ) {
1508 $mysticky_welcomebar_btn_mobile = ' mysticky-welcomebar-btn-mobile';
1509 }
1510
1511 $welcomebar['mysticky_welcomebar_position'] = (isset($welcomebar['mysticky_welcomebar_position'])) ? esc_attr($welcomebar['mysticky_welcomebar_position']) : 'top';
1512
1513 $welcomebar['mysticky_welcomebar_height'] = (isset($welcomebar['mysticky_welcomebar_height'])) ? esc_attr($welcomebar['mysticky_welcomebar_height']) : '60';
1514 $welcomebar['mysticky_welcomebar_actionselect'] = (isset($welcomebar['mysticky_welcomebar_actionselect'])) ? esc_attr($welcomebar['mysticky_welcomebar_actionselect']) : 'close_bar';
1515 $welcomebar['mysticky_welcomebar_hover_effect'] = (isset($welcomebar['mysticky_welcomebar_hover_effect'])) ? esc_attr($welcomebar['mysticky_welcomebar_hover_effect']) : 'none';
1516 $welcomebar['mysticky_welcomebar_aftersubmission'] = (isset($welcomebar['mysticky_welcomebar_aftersubmission'])) ? esc_attr($welcomebar['mysticky_welcomebar_aftersubmission']) : 'dont_show_welcomebar';
1517 $welcomebar['mysticky_welcomebar_attentionselect'] = (isset($welcomebar['mysticky_welcomebar_attentionselect'])) ? esc_attr($welcomebar['mysticky_welcomebar_attentionselect']) : '';
1518
1519 $welcomebar['mysticky_welcomebar_show_success_message'] = (isset($welcomebar['mysticky_welcomebar_show_success_message'])) ? esc_html($welcomebar['mysticky_welcomebar_show_success_message']) : '';
1520
1521 $display = ' mysticky-welcomebar-attention-'.$welcomebar['mysticky_welcomebar_attentionselect'];
1522 $display_entry_effect = (isset($welcomebar['mysticky_welcomebar_entry_effect'])) ? ' mysticky-welcomebar-entry-effect-'.$welcomebar['mysticky_welcomebar_entry_effect'] : ' mysticky-welcomebar-entry-effect-slide-in';
1523 $mysticky_welcomebar_display_desktop = ' mysticky-welcomebar-display-desktop';
1524 $mysticky_welcomebar_display_mobile = ' mysticky-welcomebar-display-mobile';
1525
1526
1527 $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;
1528
1529 if( isset($welcomebar['mysticky_welcomebar_enable_lead']) && $welcomebar['mysticky_welcomebar_enable_lead'] == 1 ):
1530 $display_main_class .= ' welcombar-contact-lead ';
1531 endif;
1532
1533 if( isset($welcomebar['mysticky_welcomebar_actionselect']) ) {
1534 if( $welcomebar['mysticky_welcomebar_actionselect'] == 'redirect_to_url' ) {
1535 $mysticky_welcomebar_actionselect_url = ( is_email($welcomebar['mysticky_welcomebar_redirect']) ) ? esc_url($welcomebar['mysticky_welcomebar_redirect']) : esc_url( $welcomebar['mysticky_welcomebar_redirect'] );
1536 } else if( $welcomebar['mysticky_welcomebar_actionselect'] == 'poptin_popup'){
1537 $mysticky_welcomebar_actionselect_url = esc_url( $welcomebar['mysticky_welcomebar_poptin_popup_link'] );
1538 } else {
1539 $mysticky_welcomebar_actionselect_url = 'javascript:void(0)';
1540 }
1541 }
1542
1543 if ( !get_option( 'get_mystickybar_page_views' ) ) {
1544 update_option( 'get_mystickybar_page_views', 1);
1545 }
1546
1547 ?>
1548 <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']);?>">
1549 <div class="mysticky-welcomebar-fixed-wrap">
1550 <div class="mysticky-welcomebar-content">
1551 <?php
1552 echo wpautop( isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase" );
1553 ?>
1554 </div>
1555
1556 <?php if( isset( $welcomebar['mysticky_welcomebar_enable_lead'] ) && $welcomebar['mysticky_welcomebar_enable_lead'] == 1 ): ?>
1557 <div class="mystickymenu-front mysticky-welcomebar-lead-content">
1558 <div>
1559 <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;"/>
1560 </div>
1561
1562 <div>
1563 <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';?>"/>
1564 </div>
1565 <div>
1566 <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';?>"/>
1567 </div>
1568
1569
1570
1571 <input type="hidden" id="contact-lead-pagelink-0" name="contact-page-link" value=" <?php echo esc_url(home_url( $wp->request ));?>">
1572
1573 <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;?>">
1574 </div>
1575
1576 <div class="mysticky-welcomebar-thankyou-content mysticky-welcomebar-content" style="display: none;">
1577 <?php echo wpautop( isset( $welcomebar['mysticky_welcomebar_thankyou_screen_text'] )? stripslashes( $welcomebar['mysticky_welcomebar_thankyou_screen_text'] ):"Thank you for submitting the form" );?>
1578 </div>
1579 <?php endif; ?>
1580
1581 <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; ?>" >
1582 <?php
1583 $mysticky_welcomebar_btn_text = isset($welcomebar['mysticky_welcomebar_btn_text']) ? stripslashes($welcomebar['mysticky_welcomebar_btn_text']) : stripslashes("Got it!");
1584 if( is_email($mysticky_welcomebar_actionselect_url) ){
1585 if( strpos($mysticky_welcomebar_actionselect_url, 'mailto:') === false ){
1586 $mysticky_welcomebar_actionselect_url = "mailto:".$mysticky_welcomebar_actionselect_url;
1587 }
1588 }
1589 ?>
1590
1591 <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);?>
1592 </a>
1593 </div>
1594
1595
1596
1597
1598
1599 <?php
1600 $x_color = (isset($welcomebar['mysticky_welcomebar_x_color'])) ? esc_attr($welcomebar['mysticky_welcomebar_x_color']) : '#000000';
1601 ?>
1602 <span class="mysticky-welcomebar-close" style="color:<?php echo esc_attr($x_color); ?>">X</span>
1603 </div>
1604 </div>
1605 <?php
1606
1607 }
1608 add_action( 'wp_footer', 'mysticky_welcome_bar_frontend' );
1609
1610 function mysticky_welcome_bar_frontend_styles() {
1611 $welcomebar = get_option( 'mysticky_option_welcomebar' );
1612
1613 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) ) {
1614 return;
1615 }
1616
1617 if( isset($welcomebar['mysticky_welcomebar_font']) && $welcomebar['mysticky_welcomebar_font'] == 'System Stack' ){
1618 $welcomebar['mysticky_welcomebar_font'] = '-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';
1619 }
1620
1621 $welcomebar['mysticky_welcomebar_font'] = (isset($welcomebar['mysticky_welcomebar_font']) && $welcomebar['mysticky_welcomebar_font'] == 'Inherit') ? strtolower($welcomebar['mysticky_welcomebar_font']) : $welcomebar['mysticky_welcomebar_font'];
1622 ?>
1623
1624 <style id="mysticky-welcomebar-inline-css">
1625 .mysticky-welcomebar-fixed , .mysticky-welcomebar-fixed * {
1626 -webkit-box-sizing: border-box;
1627 -moz-box-sizing: border-box;
1628 box-sizing: border-box;
1629 }
1630 .mysticky-welcomebar-fixed {
1631 background-color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_bgcolor']) ?>;
1632 font-family: <?php echo esc_attr($welcomebar['mysticky_welcomebar_font']) ?>;
1633 position: fixed;
1634 left: 0;
1635 right: 0;
1636 z-index: 9999999;
1637 opacity: 0;
1638 }
1639 .mysticky-welcomebar-fixed-wrap {
1640 min-height: 60px;
1641 padding: 20px 50px;
1642 display: flex;
1643 align-items: center;
1644 justify-content: center;
1645 width: 100%;
1646 height: 100%;
1647 }
1648 .mysticky-welcomebar-fixed-wrap .mysticky-welcomebar-content {
1649 flex: 1;
1650 text-align:center;
1651 }
1652 .mysticky-welcomebar-animation {
1653 -webkit-transition: all 1s ease 0s;
1654 -moz-transition: all 1s ease 0s;
1655 transition: all 1s ease 0s;
1656 }
1657 .mysticky-welcomebar-position-top {
1658 top:0;
1659 }
1660 .mysticky-welcomebar-position-bottom {
1661 bottom:0;
1662 }
1663 .mysticky-welcomebar-position-top.mysticky-welcomebar-entry-effect-slide-in {
1664 top: -60px;
1665 }
1666 .mysticky-welcomebar-position-bottom.mysticky-welcomebar-entry-effect-slide-in {
1667 bottom: -60px;
1668 }
1669 .mysticky-welcomebar-entry-effect-fade {
1670 opacity: 0;
1671 }
1672 .mysticky-welcomebar-entry-effect-none {
1673 display: none;
1674 }
1675 .mysticky-welcomebar-fixed .mysticky-welcomebar-content p a{
1676 text-decoration: underline;
1677 text-decoration-thickness: 1px;
1678 text-underline-offset: 0.25ch;
1679 }
1680 .mysticky-welcomebar-fixed .mysticky-welcomebar-content p a,
1681 .mysticky-welcomebar-fixed .mysticky-welcomebar-content p {
1682 color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_bgtxtcolor']) ?>;
1683 font-size: <?php echo esc_attr($welcomebar['mysticky_welcomebar_fontsize']) ?>px;
1684 margin: 0;
1685 padding: 0;
1686 line-height: 1.2;
1687 font-weight: 400;
1688 font-family:<?php echo esc_attr($welcomebar['mysticky_welcomebar_font']); ?>
1689 }
1690 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
1691 /*padding-left: 30px;*/
1692 display: none;
1693 line-height: 1;
1694 margin-left: 10px;
1695 }
1696 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-desktop .mysticky-welcomebar-btn {
1697 display: block;
1698 position: relative;
1699 }
1700 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a {
1701 background-color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btncolor']); ?>;
1702 font-family: inherit;
1703 color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btntxtcolor']); ?>;
1704 border-radius: 4px;
1705 text-decoration: none;
1706 display: inline-block;
1707 vertical-align: top;
1708 line-height: 1.2;
1709 font-size: <?php echo esc_attr($welcomebar['mysticky_welcomebar_fontsize']); ?>px;
1710 font-weight: 400;
1711 padding: 5px 20px;
1712 white-space: nowrap;
1713 }
1714
1715 <?php if ( isset($welcomebar['mysticky_welcomebar_hover_effect']) && $welcomebar['mysticky_welcomebar_hover_effect'] != 'none' ) {?>
1716 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a:hover {
1717 /*opacity: 0.7;*/
1718 <?php if ( $welcomebar['mysticky_welcomebar_hover_effect'] != 'none' ) : ?> color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovertxtcolor']); ?>; <?php endif;?>
1719 <?php if ( $welcomebar['mysticky_welcomebar_hover_effect'] == 'border_effect_button' ) : ?> background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovercolor']); ?>; <?php endif;?>
1720
1721 -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0,0.5);
1722 -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
1723 box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
1724 }
1725 <?php } ?>
1726 <?php if ( isset($welcomebar['mysticky_welcomebar_hover_effect']) && $welcomebar['mysticky_welcomebar_hover_effect'] == 'border_effect_button' ) : ?>
1727 .mysticky-welcomebar-btn:before,
1728 .mysticky-welcomebar-btn:after {
1729 background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhoverbordercolor']); ?> ;
1730 z-index: 0;
1731 }
1732 .mysticky-welcomebar-btn a:before,
1733 .mysticky-welcomebar-btn a:after {
1734 background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhoverbordercolor']); ?>;
1735 z-index: 0;
1736 }
1737 <?php endif;?>
1738 <?php if ( isset($welcomebar['mysticky_welcomebar_hover_effect']) && $welcomebar['mysticky_welcomebar_hover_effect'] == 'fill_effect_button' ) : ?>
1739 .mysticky-welcomebar-btn a:after {
1740 background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovercolor']); ?>;
1741 z-index: -1;
1742 border-radius: 4px;
1743 }
1744 .mysticky-welcomebar-btn a:before,
1745 .mysticky-welcomebar-btn a:after {
1746 background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovercolor']); ?>;
1747 z-index: -1;
1748 }
1749 <?php endif;?>
1750 .mysticky-welcomebar-fixed .mysticky-welcomebar-close {
1751 display: none;
1752 vertical-align: top;
1753 width: 30px;
1754 height: 30px;
1755 text-align: center;
1756 line-height: 30px;
1757 border-radius: 5px;
1758 color: #000;
1759 position: absolute;
1760 top: 5px;
1761 right: 10px;
1762 outline: none;
1763 text-decoration: none;
1764 text-shadow: 0 0 0px #fff;
1765 -webkit-transition: all 0.5s ease 0s;
1766 -moz-transition: all 0.5s ease 0s;
1767 transition: all 0.5s ease 0s;
1768 -webkit-transform-origin: 50% 50%;
1769 -moz-transform-origin: 50% 50%;
1770 transform-origin: 50% 50%;
1771 }
1772 .mysticky-welcomebar-fixed .mysticky-welcomebar-close:hover {
1773 opacity: 1;
1774 -webkit-transform: rotate(180deg);
1775 -moz-transform: rotate(180deg);
1776 transform: rotate(180deg);
1777 }
1778 .mysticky-welcomebar-fixed .mysticky-welcomebar-close span.dashicons {
1779 font-size: 27px;
1780 }
1781 .mysticky-welcomebar-fixed.mysticky-welcomebar-showx-desktop .mysticky-welcomebar-close {
1782 display: inline-block;
1783 cursor: pointer;
1784 }
1785 /* Animated Buttons */
1786 .mysticky-welcomebar-btn a {
1787 -webkit-animation-duration: 1s;
1788 animation-duration: 1s;
1789 }
1790 @-webkit-keyframes flash {
1791 from,
1792 50%,
1793 to {
1794 opacity: 1;
1795 }
1796
1797 25%,
1798 75% {
1799 opacity: 0;
1800 }
1801 }
1802 @keyframes flash {
1803 from,
1804 50%,
1805 to {
1806 opacity: 1;
1807 }
1808
1809 25%,
1810 75% {
1811 opacity: 0;
1812 }
1813 }
1814 .mysticky-welcomebar-attention-flash.animation-start .mysticky-welcomebar-btn a {
1815 -webkit-animation-name: flash;
1816 animation-name: flash;
1817 }
1818
1819 @keyframes shake {
1820 from,
1821 to {
1822 -webkit-transform: translate3d(0, 0, 0);
1823 transform: translate3d(0, 0, 0);
1824 }
1825
1826 10%,
1827 30%,
1828 50%,
1829 70%,
1830 90% {
1831 -webkit-transform: translate3d(-10px, 0, 0);
1832 transform: translate3d(-10px, 0, 0);
1833 }
1834
1835 20%,
1836 40%,
1837 60%,
1838 80% {
1839 -webkit-transform: translate3d(10px, 0, 0);
1840 transform: translate3d(10px, 0, 0);
1841 }
1842 }
1843
1844 .mysticky-welcomebar-attention-shake.animation-start .mysticky-welcomebar-btn a {
1845 -webkit-animation-name: shake;
1846 animation-name: shake;
1847 }
1848
1849 @-webkit-keyframes swing {
1850 20% {
1851 -webkit-transform: rotate3d(0, 0, 1, 15deg);
1852 transform: rotate3d(0, 0, 1, 15deg);
1853 }
1854
1855 40% {
1856 -webkit-transform: rotate3d(0, 0, 1, -10deg);
1857 transform: rotate3d(0, 0, 1, -10deg);
1858 }
1859
1860 60% {
1861 -webkit-transform: rotate3d(0, 0, 1, 5deg);
1862 transform: rotate3d(0, 0, 1, 5deg);
1863 }
1864
1865 80% {
1866 -webkit-transform: rotate3d(0, 0, 1, -5deg);
1867 transform: rotate3d(0, 0, 1, -5deg);
1868 }
1869
1870 to {
1871 -webkit-transform: rotate3d(0, 0, 1, 0deg);
1872 transform: rotate3d(0, 0, 1, 0deg);
1873 }
1874 }
1875
1876 @keyframes swing {
1877 20% {
1878 -webkit-transform: rotate3d(0, 0, 1, 15deg);
1879 transform: rotate3d(0, 0, 1, 15deg);
1880 }
1881
1882 40% {
1883 -webkit-transform: rotate3d(0, 0, 1, -10deg);
1884 transform: rotate3d(0, 0, 1, -10deg);
1885 }
1886
1887 60% {
1888 -webkit-transform: rotate3d(0, 0, 1, 5deg);
1889 transform: rotate3d(0, 0, 1, 5deg);
1890 }
1891
1892 80% {
1893 -webkit-transform: rotate3d(0, 0, 1, -5deg);
1894 transform: rotate3d(0, 0, 1, -5deg);
1895 }
1896
1897 to {
1898 -webkit-transform: rotate3d(0, 0, 1, 0deg);
1899 transform: rotate3d(0, 0, 1, 0deg);
1900 }
1901 }
1902
1903 .mysticky-welcomebar-attention-swing.animation-start .mysticky-welcomebar-btn a {
1904 -webkit-transform-origin: top center;
1905 transform-origin: top center;
1906 -webkit-animation-name: swing;
1907 animation-name: swing;
1908 }
1909
1910 @-webkit-keyframes tada {
1911 from {
1912 -webkit-transform: scale3d(1, 1, 1);
1913 transform: scale3d(1, 1, 1);
1914 }
1915
1916 10%,
1917 20% {
1918 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1919 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1920 }
1921
1922 30%,
1923 50%,
1924 70%,
1925 90% {
1926 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1927 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1928 }
1929
1930 40%,
1931 60%,
1932 80% {
1933 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1934 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1935 }
1936
1937 to {
1938 -webkit-transform: scale3d(1, 1, 1);
1939 transform: scale3d(1, 1, 1);
1940 }
1941 }
1942
1943 @keyframes tada {
1944 from {
1945 -webkit-transform: scale3d(1, 1, 1);
1946 transform: scale3d(1, 1, 1);
1947 }
1948
1949 10%,
1950 20% {
1951 -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1952 transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
1953 }
1954
1955 30%,
1956 50%,
1957 70%,
1958 90% {
1959 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1960 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
1961 }
1962
1963 40%,
1964 60%,
1965 80% {
1966 -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1967 transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
1968 }
1969
1970 to {
1971 -webkit-transform: scale3d(1, 1, 1);
1972 transform: scale3d(1, 1, 1);
1973 }
1974 }
1975
1976 .mysticky-welcomebar-attention-tada.animation-start .mysticky-welcomebar-btn a {
1977 -webkit-animation-name: tada;
1978 animation-name: tada;
1979 }
1980
1981 @-webkit-keyframes heartBeat {
1982 0% {
1983 -webkit-transform: scale(1);
1984 transform: scale(1);
1985 }
1986
1987 14% {
1988 -webkit-transform: scale(1.3);
1989 transform: scale(1.3);
1990 }
1991
1992 28% {
1993 -webkit-transform: scale(1);
1994 transform: scale(1);
1995 }
1996
1997 42% {
1998 -webkit-transform: scale(1.3);
1999 transform: scale(1.3);
2000 }
2001
2002 70% {
2003 -webkit-transform: scale(1);
2004 transform: scale(1);
2005 }
2006 }
2007
2008 @keyframes heartBeat {
2009 0% {
2010 -webkit-transform: scale(1);
2011 transform: scale(1);
2012 }
2013
2014 14% {
2015 -webkit-transform: scale(1.3);
2016 transform: scale(1.3);
2017 }
2018
2019 28% {
2020 -webkit-transform: scale(1);
2021 transform: scale(1);
2022 }
2023
2024 42% {
2025 -webkit-transform: scale(1.3);
2026 transform: scale(1.3);
2027 }
2028
2029 70% {
2030 -webkit-transform: scale(1);
2031 transform: scale(1);
2032 }
2033 }
2034
2035 .mysticky-welcomebar-attention-heartbeat.animation-start .mysticky-welcomebar-btn a {
2036 -webkit-animation-name: heartBeat;
2037 animation-name: heartBeat;
2038 -webkit-animation-duration: 1.3s;
2039 animation-duration: 1.3s;
2040 -webkit-animation-timing-function: ease-in-out;
2041 animation-timing-function: ease-in-out;
2042 }
2043
2044 @-webkit-keyframes wobble {
2045 from {
2046 -webkit-transform: translate3d(0, 0, 0);
2047 transform: translate3d(0, 0, 0);
2048 }
2049
2050 15% {
2051 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
2052 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
2053 }
2054
2055 30% {
2056 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
2057 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
2058 }
2059
2060 45% {
2061 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
2062 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
2063 }
2064
2065 60% {
2066 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
2067 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
2068 }
2069
2070 75% {
2071 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
2072 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
2073 }
2074
2075 to {
2076 -webkit-transform: translate3d(0, 0, 0);
2077 transform: translate3d(0, 0, 0);
2078 }
2079 }
2080
2081 @keyframes wobble {
2082 from {
2083 -webkit-transform: translate3d(0, 0, 0);
2084 transform: translate3d(0, 0, 0);
2085 }
2086
2087 15% {
2088 -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
2089 transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
2090 }
2091
2092 30% {
2093 -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
2094 transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
2095 }
2096
2097 45% {
2098 -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
2099 transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
2100 }
2101
2102 60% {
2103 -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
2104 transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
2105 }
2106
2107 75% {
2108 -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
2109 transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
2110 }
2111
2112 to {
2113 -webkit-transform: translate3d(0, 0, 0);
2114 transform: translate3d(0, 0, 0);
2115 }
2116 }
2117
2118 .mysticky-welcomebar-attention-wobble.animation-start .mysticky-welcomebar-btn a {
2119 -webkit-animation-name: wobble;
2120 animation-name: wobble;
2121 }
2122 @media only screen and (min-width: 768px) {
2123 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-entry-effect-fade.entry-effect {
2124 opacity: 1;
2125 }
2126 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-entry-effect-none.entry-effect {
2127 display: block;
2128 }
2129 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed ,
2130 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-entry-effect-slide-in.entry-effect.mysticky-welcomebar-fixed {
2131 top: 0;
2132 }
2133 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed ,
2134 .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-entry-effect-slide-in.entry-effect.mysticky-welcomebar-fixed {
2135 bottom: 0;
2136 }
2137 }
2138 @media only screen and (max-width: 767px) {
2139 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-entry-effect-fade.entry-effect {
2140 opacity: 1;
2141 }
2142 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-entry-effect-none.entry-effect {
2143 display: block;
2144 }
2145 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-position-top.mysticky-welcomebar-fixed ,
2146 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-position-top.mysticky-welcomebar-entry-effect-slide-in.entry-effect.mysticky-welcomebar-fixed {
2147 top: 0;
2148 }
2149 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-position-bottom.mysticky-welcomebar-fixed ,
2150 .mysticky-welcomebar-display-mobile.mysticky-welcomebar-position-bottom.mysticky-welcomebar-entry-effect-slide-in.entry-effect.mysticky-welcomebar-fixed {
2151 bottom: 0;
2152 }
2153 /*.mysticky-welcomebar-fixed.mysticky-welcomebar-showx-desktop .mysticky-welcomebar-close {
2154 display: none;
2155 }
2156 .mysticky-welcomebar-fixed.mysticky-welcomebar-showx-mobile .mysticky-welcomebar-close {
2157 display: inline-block;
2158 }*/
2159 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-desktop .mysticky-welcomebar-btn {
2160 display: none;
2161 }
2162 .mysticky-welcomebar-fixed.mysticky-welcomebar-btn-mobile .mysticky-welcomebar-btn {
2163 display: block;
2164 /*margin-top: 10px;*/
2165 }
2166 }
2167 @media only screen and (max-width: 480px) {
2168
2169 .mysticky-welcomebar-fixed-wrap {padding: 15px 35px 10px 10px; flex-wrap:wrap;}
2170 /*.welcombar-contact-lead .mysticky-welcomebar-fixed-wrap {flex-wrap: wrap; justify-content: center;}*/
2171
2172 .mysticky-welcomebar-fixed .mystickymenu-front.mysticky-welcomebar-lead-content {margin: 10px 0 10px 20px !important;}
2173
2174 .mysticky-welcomebar-fixed .mysticky-welcomebar-btn {
2175 padding-left: 10px;
2176 }
2177 }
2178
2179
2180 body.mysticky-welcomebar-apper #wpadminbar{
2181 z-index:99999999;
2182 }
2183
2184 .mysticky-welcomebar-fixed .mystickymenu-front.mysticky-welcomebar-lead-content {
2185 display: flex;
2186 width: auto;
2187 margin: 0 0px 0 10px;
2188 }
2189
2190 .mystickymenu-front.mysticky-welcomebar-lead-content input[type="text"] {
2191 font-size: 12px;
2192 padding: 7px 5px;
2193 margin-right: 10px;
2194 min-width: 50%;
2195 border: 0;
2196 width:auto;
2197 }
2198
2199 .mystickymenu-front.mysticky-welcomebar-lead-content input[type="text"]:focus {
2200 outline: unset;
2201 box-shadow: unset;
2202 }
2203
2204 .input-error {
2205 color: #ff0000;
2206 font-style: normal;
2207 font-family: inherit;
2208 font-size: 13px;
2209 display: block;
2210 position: absolute;
2211 bottom: 0px;
2212 }
2213
2214 .mysticky-welcomebar-fixed.mysticky-site-front .mysticky-welcomebar-btn.contact-lead-button {
2215 margin-left: 0;
2216 }
2217 .morphext > .morphext__animated {
2218 display: inline-block;
2219 }
2220
2221 .mysticky-welcomebar-btn a {
2222 outline: none !important;
2223 cursor: pointer;
2224 position: relative;
2225 }
2226 .mysticky-welcomebar-hover-effect-border1 {
2227 position: relative;
2228 }
2229 .mysticky-welcomebar-hover-effect-border1 a {
2230 display: block;
2231 width: 100%;
2232 height: 100%;
2233 }
2234 .mysticky-welcomebar-hover-effect-border1:before,
2235 .mysticky-welcomebar-hover-effect-border1:after {
2236 position: absolute;
2237 content: "";
2238 height: 0%;
2239 width: 2px;
2240 background: #000;
2241 }
2242 .mysticky-welcomebar-hover-effect-border1:before {
2243 right: 0;
2244 top: 0;
2245 transition: all 0.1s ease;
2246 z-index: 1 !important;
2247 }
2248 .mysticky-welcomebar-hover-effect-border1:after {
2249 left: 0;
2250 bottom: 0;
2251 transition: all 0.1s 0.2s ease;
2252 }
2253 .mysticky-welcomebar-hover-effect-border1:hover:before {
2254 transition: all 0.1s 0.2s ease;
2255 height: 100%;
2256 }
2257 .mysticky-welcomebar-hover-effect-border1:hover:after {
2258 transition: all 0.1s ease;
2259 height: 100%;
2260 }
2261 .mysticky-welcomebar-hover-effect-border1 a:before,
2262 .mysticky-welcomebar-hover-effect-border1 a:after {
2263 position: absolute;
2264 content: "";
2265 background: #000;
2266 }
2267 .mysticky-welcomebar-hover-effect-border1 a:before {
2268 left: 0;
2269 top: 0;
2270 width: 0%;
2271 height: 2px;
2272 transition: all 0.1s 0.1s ease;
2273 }
2274 .mysticky-welcomebar-hover-effect-border1 a:after {
2275 left: 0;
2276 bottom: 0;
2277 width: 100%;
2278 height: 2px;
2279 }
2280 .mysticky-welcomebar-hover-effect-border1 a:hover:before {
2281 width: 100%;
2282 }
2283
2284 .mysticky-welcomebar-hover-effect-border2 a {
2285 position: relative;
2286 display: block;
2287 width: 100%;
2288 height: 100%;
2289 }
2290 .mysticky-welcomebar-hover-effect-border2:before,
2291 .mysticky-welcomebar-hover-effect-border2:after {
2292 position: absolute;
2293 content: "";
2294 right: 0px;
2295 transition: all 0.3s ease;
2296 border-radius: 4px;
2297 z-index: 99;
2298 }
2299 .mysticky-welcomebar-hover-effect-border2:before {
2300 width: 2px;
2301 }
2302 .mysticky-welcomebar-hover-effect-border2:after {
2303 width: 0%;
2304 height: 2px;
2305 }
2306 .mysticky-welcomebar-hover-effect-border2:hover:before {
2307 height: 29px;
2308 }
2309 .mysticky-welcomebar-hover-effect-border2:hover:after {
2310 width: 86px;
2311 }
2312 .mysticky-welcomebar-hover-effect-border2 a:before,
2313 .mysticky-welcomebar-hover-effect-border2 a:after {
2314 position: absolute;
2315 content: "";
2316 left: 0;
2317 bottom: 0;
2318 transition: all 0.3s ease;
2319 z-index: 0 !important;
2320 }
2321 .mysticky-welcomebar-hover-effect-border2 a:before {
2322 width: 2px;
2323 height: 0%;
2324 }
2325 .mysticky-welcomebar-hover-effect-border2 a:after {
2326 width: 0%;
2327 height: 2px;
2328 }
2329 .mysticky-welcomebar-hover-effect-border2 a:hover:before {
2330 height: 100%;
2331 }
2332 .mysticky-welcomebar-hover-effect-border2 a:hover:after {
2333 width: 100%;
2334 }
2335 .mysticky-welcomebar-hover-effect-border3 a {
2336 position: relative;
2337 display: block;
2338 width: 100%;
2339 height: 100%;
2340 }
2341 .mysticky-welcomebar-hover-effect-border3:before,
2342 .mysticky-welcomebar-hover-effect-border3:after {
2343 position: absolute;
2344 content: "";
2345 right: 0px;
2346 transition: all 0.3s ease;
2347 z-index: 99;
2348 }
2349 .mysticky-welcomebar-hover-effect-border3:before {
2350 height: 14px;
2351 width: 2px;
2352 }
2353 .mysticky-welcomebar-hover-effect-border3:after {
2354 width: 14px;
2355 height: 2px;
2356 }
2357 .mysticky-welcomebar-hover-effect-border3:hover:before {
2358 height: 29px;
2359 }
2360 .mysticky-welcomebar-hover-effect-border3:hover:after {
2361 width: 86px;
2362 }
2363 .mysticky-welcomebar-hover-effect-border3 a:before,
2364 .mysticky-welcomebar-hover-effect-border3 a:after {
2365 position: absolute;
2366 content: "";
2367 left: 0;
2368 bottom: 0;
2369 transition: all 0.3s ease;
2370 z-index: 0 !important;
2371 }
2372 .mysticky-welcomebar-hover-effect-border3 a:before {
2373 width: 2px;
2374 height: 50%;
2375 }
2376 .mysticky-welcomebar-hover-effect-border3 a:after {
2377 width: 14px;
2378 height: 2px;
2379 }
2380 .mysticky-welcomebar-hover-effect-border3 a:hover:before {
2381 height: 100%;
2382 }
2383 .mysticky-welcomebar-hover-effect-border3 a:hover:after {
2384 width: 100%;
2385 }
2386 .mysticky-welcomebar-hover-effect-border4 a {
2387 position: relative;
2388 display: block;
2389 width: 100%;
2390 height: 100%;
2391 }
2392 .mysticky-welcomebar-hover-effect-border4:before,
2393 .mysticky-welcomebar-hover-effect-border4:after {
2394 position: absolute;
2395 content: "";
2396 right: 0px;
2397 bottom: 0px ;
2398 transition: all 0.3s ease;
2399 z-index: 99;
2400 }
2401 .mysticky-welcomebar-hover-effect-border4:before {
2402 height: 14px;
2403 width: 2px;
2404 }
2405 .mysticky-welcomebar-hover-effect-border4:after {
2406 width: 14px;
2407 height: 2px;
2408 }
2409 .mysticky-welcomebar-hover-effect-border4:hover:before {
2410 height: 29px;
2411 }
2412 .mysticky-welcomebar-hover-effect-border4:hover:after {
2413 width: 86px;
2414 }
2415 .mysticky-welcomebar-hover-effect-border4 a:before,
2416 .mysticky-welcomebar-hover-effect-border4 a:after {
2417 position: absolute;
2418 content: "";
2419 left: 0;
2420 top: 0;
2421 transition: all 0.3s ease;
2422 }
2423 .mysticky-welcomebar-hover-effect-border4 a:before {
2424 width: 2px;
2425 height: 50%;
2426 }
2427 .mysticky-welcomebar-hover-effect-border4 a:after {
2428 width: 14px;
2429 height: 2px;
2430 }
2431 .mysticky-welcomebar-hover-effect-border4 a:hover:before {
2432 height: 100%;
2433 }
2434 .mysticky-welcomebar-hover-effect-border4 a:hover:after {
2435 width: 100%;
2436 }
2437
2438 .mysticky-welcomebar-hover-effect-fill1 a {
2439 z-index: 1;
2440 }
2441 .mysticky-welcomebar-hover-effect-fill1 a:after {
2442 position: absolute;
2443 content: "";
2444 width: 0;
2445 height: 100%;
2446 top: 0;
2447 left: 0;
2448 z-index: -1;
2449 }
2450 .mysticky-welcomebar-hover-effect-fill1 a:hover:after {
2451 width: 100%;
2452 }
2453 .mysticky-welcomebar-hover-effect-fill1 a:active {
2454 top: 2px;
2455 }
2456 .mysticky-welcomebar-hover-effect-fill2 a {
2457 z-index: 1;
2458 }
2459 .mysticky-welcomebar-hover-effect-fill2 a:after {
2460 position: absolute;
2461 content: "";
2462 width: 0;
2463 height: 100%;
2464 top: 0;
2465 left: 0;
2466 direction: rtl;
2467 z-index: -1;
2468 transition: all 0.3s ease;
2469 }
2470 .mysticky-welcomebar-hover-effect-fill2 a:hover:after {
2471 left: auto;
2472 right: 0;
2473 width: 100%;
2474 }
2475 .mysticky-welcomebar-hover-effect-fill2 a:active {
2476 top: 2px;
2477 }
2478 .mysticky-welcomebar-hover-effect-fill3 a {
2479 border: 0px solid #000;
2480 z-index: 1;
2481 }
2482 .mysticky-welcomebar-hover-effect-fill3 a:after {
2483 position: absolute;
2484 content: "";
2485 width: 100%;
2486 height: 0;
2487 bottom: 0;
2488 left: 0;
2489 z-index: -1;
2490 transition: all 0.3s ease;
2491 }
2492 .mysticky-welcomebar-hover-effect-fill3 a:hover:after {
2493 top: 0;
2494 height: 100%;
2495 }
2496 .mysticky-welcomebar-hover-effect-fill3 a:active {
2497 top: 2px;
2498 }
2499 .mysticky-welcomebar-hover-effect-fill4 a {
2500 z-index: 1;
2501 }
2502 .mysticky-welcomebar-hover-effect-fill4 a:after {
2503 position: absolute;
2504 content: "";
2505 width: 100%;
2506 height: 0;
2507 top: 0;
2508 left: 0;
2509 z-index: -1;
2510 transition: all 0.3s ease;
2511 }
2512 .mysticky-welcomebar-hover-effect-fill4 a:hover:after {
2513 top: auto;
2514 bottom: 0;
2515 height: 100%;
2516 }
2517 .mysticky-welcomebar-hover-effect-fill4 a:active {
2518 top: 2px;
2519 }
2520 .mysticky-welcomebar-hover-effect-fill5 a {
2521 border: 0px solid #000;
2522 z-index: 3;
2523 }
2524 .mysticky-welcomebar-hover-effect-fill5 a:after {
2525 position: absolute;
2526 content: "";
2527 width: 0;
2528 height: 100%;
2529 top: 0;
2530 right: 0;
2531 z-index: -1;
2532 transition: all 0.3s ease;
2533 }
2534 .mysticky-welcomebar-hover-effect-fill5 a:hover:after {
2535 left: 0;
2536 width: 100%;
2537 }
2538 .mysticky-welcomebar-hover-effect-fill5 a:active {
2539 top: 2px;
2540 }
2541
2542
2543
2544 </style>
2545 <?php
2546
2547 }
2548 add_action('wp_head', 'mysticky_welcome_bar_frontend_styles',99);
2549
2550 function mysticky_welcomebar_slider_text_sort( $a, $b ) {
2551 return strlen($b)-strlen($a);
2552 }