admin-content.php
5 years ago
folder-deactivate-form.php
6 years ago
folder-popup.php
5 years ago
general-settings.php
5 years ago
help.php
6 years ago
recommended-plugins.php
5 years ago
update.php
6 years ago
upgrade-to-pro.php
5 years ago
folder-popup.php
47 lines
| 1 | <?php if(!defined('ABSPATH')) exit; ?> |
| 2 | <div class="folder-popup" id="folder-intro-popup"> |
| 3 | <div class="folder-popup-box"> |
| 4 | <div class="folder-popup-header"> |
| 5 | Welcome to Folders 🎉 |
| 6 | <button class="close-folder-popup"><span class="dashicons dashicons-no-alt"></span></button> |
| 7 | <div class="clear"></div> |
| 8 | </div> |
| 9 | <div class="folder-popup-content"> |
| 10 | Select the places where you want Folders to appear (Media Library, Posts, Pages, Custom Posts). Need help? Visit our <a target="_blank" href="https://premio.io/help/folders/?utm_soruce=wordpressfolders">Help Center</a>. |
| 11 | <iframe width="420" height="240" src="https://www.youtube.com/embed/GKq5jvuoRY0?rel=0&start=14"></iframe> |
| 12 | </div> |
| 13 | <div class="folder-popup-footer"> |
| 14 | <button type="button">Go to Folders</button> |
| 15 | </div> |
| 16 | </div> |
| 17 | </div> |
| 18 | <script> |
| 19 | jQuery(document).ready(function(){ |
| 20 | jQuery(document).on("click", ".folder-popup-box button, #folder-intro-popup", function(e){ |
| 21 | e.stopPropagation(); |
| 22 | var nonceVal = "<?php echo wp_create_nonce("folder_update_popup_status") ?>"; |
| 23 | jQuery("#folder-intro-popup").remove(); |
| 24 | jQuery.ajax({ |
| 25 | type: 'POST', |
| 26 | url: ajaxurl, |
| 27 | data: { |
| 28 | action: 'folder_update_popup_status', |
| 29 | nonce: nonceVal |
| 30 | }, |
| 31 | beforeSend: function (xhr) { |
| 32 | |
| 33 | }, |
| 34 | success: function (res) { |
| 35 | |
| 36 | }, |
| 37 | error: function (xhr, status, error) { |
| 38 | |
| 39 | } |
| 40 | }); |
| 41 | }); |
| 42 | |
| 43 | jQuery(document).on("click", ".folder-popup-box", function(e){ |
| 44 | e.stopPropagation(); |
| 45 | }); |
| 46 | }); |
| 47 | </script> |