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