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
media-replace.php
5 years ago
recommended-plugins.php
5 years ago
update.php
6 years ago
upgrade-table.php
5 years ago
upgrade-to-pro.php
5 years ago
folder-popup.php
72 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 | if(jQuery("#import-third-party-plugin-data").length) { |
| 42 | jQuery("#import-third-party-plugin-data").show(); |
| 43 | } |
| 44 | }); |
| 45 | |
| 46 | jQuery("#import-third-party-plugin-data").hide(); |
| 47 | |
| 48 | jQuery(document).on("click", "#cancel-plugin-import", function(){ |
| 49 | jQuery.ajax({ |
| 50 | type: 'POST', |
| 51 | url: ajaxurl, |
| 52 | data: { |
| 53 | action: 'wcp_update_folders_import_status', |
| 54 | nonce: '<?php echo wp_create_nonce("folders_import_3rd_party_data") ?>' |
| 55 | }, |
| 56 | beforeSend: function (xhr) { |
| 57 | |
| 58 | }, |
| 59 | success: function (res) { |
| 60 | |
| 61 | }, |
| 62 | error: function (xhr, status, error) { |
| 63 | |
| 64 | } |
| 65 | }); |
| 66 | }); |
| 67 | |
| 68 | jQuery(document).on("click", ".folder-popup-box", function(e){ |
| 69 | e.stopPropagation(); |
| 70 | }); |
| 71 | }); |
| 72 | </script> |