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