mystickymenu
Last commit date
admin
1 week ago
dist
1 week ago
images
1 year ago
languages
1 week ago
class-email-signup.php
7 months ago
class-help.php
1 month ago
class-review-box.php
1 month ago
class-upgrade-box.php
1 month ago
index.php
8 years ago
mystickymenu-admin-widgetanalytics.php
1 week ago
mystickymenu-contact-leads.php
1 week ago
mystickymenu-deactivate-form.php
1 month ago
mystickymenu-fonts.php
2 years ago
mystickymenu-leads.php
1 week ago
mystickymenu-popup.php
1 month ago
mystickymenu-review-popup.php
10 months ago
mystickymenu.php
1 week ago
mystickymeny-new-welcomebar.php
1 week ago
readme.txt
1 week ago
recommended-plugins.php
7 months ago
uninstall.php
2 years ago
upgrade-to-pro.php
1 month ago
welcome-bar.php
1 week ago
mystickymenu-popup.php
46 lines
| 1 | <div class="mystickymenu-popup" id="mystickymenu-intro-popup"> |
| 2 | <div class="mystickymenu-popup-box"> |
| 3 | <div class="mystickymenu-popup-header"> |
| 4 | <?php esc_html_e('Welcome to myStickymenu 🎉', 'mystickymenu'); ?> |
| 5 | <button class="close-mystickymenu-popup"><span class="dashicons dashicons-no-alt"></span></button> |
| 6 | <div class="clear"></div> |
| 7 | </div> |
| 8 | <div class="mystickymenu-popup-content"> |
| 9 | <?php printf(esc_html__('With myStickymenu you can make your website\'s menu sticky. You can also use it to create a welcome notification bar. Need help? Visit our %1$sHelp Center%2$s', 'mystickymenu'), '<a target="_blank" href="https://premio.io/help/mystickymenu/?utm_source=pluginonboarding">', '</a>') ?> |
| 10 | <iframe class="w-full" width="420" height="240" src="https://www.youtube.com/embed/5sebFgUMpDA"></iframe> |
| 11 | </div> |
| 12 | <div class="mystickymenu-popup-footer"> |
| 13 | <button type="button"><?php esc_html_e('Go to myStickymenu', 'mystickymenu'); ?></button> |
| 14 | </div> |
| 15 | </div> |
| 16 | </div> |
| 17 | <script> |
| 18 | jQuery(document).ready(function(){ |
| 19 | jQuery(document).on("click", ".mystickymenu-popup-box button, #mystickymenu-intro-popup", function(e){ |
| 20 | e.stopPropagation(); |
| 21 | var nonceVal = "<?php echo esc_attr(wp_create_nonce("mystickymenu_update_popup_status")) ?>"; |
| 22 | jQuery("#mystickymenu-intro-popup").remove(); |
| 23 | jQuery.ajax({ |
| 24 | type: 'POST', |
| 25 | url: ajaxurl, |
| 26 | data: { |
| 27 | action: 'mystickymenu_update_popup_status', |
| 28 | nonce: nonceVal |
| 29 | }, |
| 30 | beforeSend: function (xhr) { |
| 31 | |
| 32 | }, |
| 33 | success: function (res) { |
| 34 | |
| 35 | }, |
| 36 | error: function (xhr, status, error) { |
| 37 | |
| 38 | } |
| 39 | }); |
| 40 | }); |
| 41 | |
| 42 | jQuery(document).on("click", ".mystickymenu-popup-box", function(e){ |
| 43 | e.stopPropagation(); |
| 44 | }); |
| 45 | }); |
| 46 | </script> |