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