mystickymenu
Last commit date
css
6 years ago
fonts
7 years ago
images
6 years ago
js
6 years ago
languages
7 years ago
class-review-box.php
6 years ago
index.php
8 years ago
mystickymenu-affiliate.php
6 years ago
mystickymenu-fonts.php
6 years ago
mystickymenu-popup.php
6 years ago
mystickymenu.php
6 years ago
readme.txt
5 years ago
uninstall.php
7 years ago
welcome-bar.php
6 years 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 | Welcome to 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 | 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 <a target="_blank" href="https://premio.io/help/mystickymenu/?utm_source=pluginonboarding">Help Center</a>. |
| 10 | <iframe width="420" height="240" src="https://www.youtube.com/embed/G_7swGnRmN0?rel=0&start=22"></iframe> |
| 11 | </div> |
| 12 | <div class="mystickymenu-popup-footer"> |
| 13 | <button type="button">Go to 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 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> |