settings-tabs
1 year ago
admin-content.php
1 year ago
email-signup.php
1 year ago
folder-deactivate-form.php
1 year ago
folder-popup.php
1 year ago
general-settings.php
1 year ago
help.php
1 year ago
media-cleaning.php
1 year ago
media-replace.php
1 year ago
modals.php
1 year ago
recommended-plugins.php
1 year ago
update.php
1 year ago
upgrade-table.php
1 year ago
upgrade-to-pro.php
1 year ago
folder-popup.php
89 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin folders popup data |
| 4 | * |
| 5 | * @author : Premio <contact@premio.io> |
| 6 | * @license : GPL2 |
| 7 | * */ |
| 8 | |
| 9 | if (!defined('ABSPATH')) { |
| 10 | exit; |
| 11 | } |
| 12 | ?> |
| 13 | <div class="folder-popup" id="folder-intro-popup"> |
| 14 | <div class="folder-popup-box"> |
| 15 | <div class="folder-popup-header"> |
| 16 | <?php esc_html_e("Welcome to Folders", "folders") ?> 🎉 |
| 17 | <button class="close-folder-popup"><span class="dashicons dashicons-no-alt"></span></button> |
| 18 | <div class="clear"></div> |
| 19 | </div> |
| 20 | <div class="folder-popup-content"> |
| 21 | <?php printf(esc_html__("Select the places where you want Folders to appear (Media Library, Posts, Pages, Custom Posts). Need help? Visit our %1\$s", "folders"), '<a target="_blank" href="https://premio.io/help/folders/?utm_soruce=wordpressfolders">'.esc_html__("Help Center", "folders")."</a>.") ?> |
| 22 | <iframe width="420" height="240" src="https://www.youtube.com/embed/1SqDey4idlQ?rel=0"></iframe> |
| 23 | </div> |
| 24 | <div class="folder-popup-footer"> |
| 25 | <button type="button"><?php esc_html_e("Go to Folders", "folders"); ?></button> |
| 26 | </div> |
| 27 | </div> |
| 28 | </div> |
| 29 | <script> |
| 30 | jQuery(document).ready(function(){ |
| 31 | jQuery(document).on("click", ".folder-popup-box button, #folder-intro-popup", function(e){ |
| 32 | e.stopPropagation(); |
| 33 | var nonceVal = "<?php echo esc_attr(wp_create_nonce("folder_update_popup_status")) ?>"; |
| 34 | jQuery("#folder-intro-popup").remove(); |
| 35 | jQuery.ajax({ |
| 36 | type: 'POST', |
| 37 | url: ajaxurl, |
| 38 | data: { |
| 39 | action: 'folder_update_popup_status', |
| 40 | nonce: nonceVal |
| 41 | }, |
| 42 | beforeSend: function (xhr) { |
| 43 | |
| 44 | }, |
| 45 | success: function (res) { |
| 46 | |
| 47 | }, |
| 48 | error: function (xhr, status, error) { |
| 49 | |
| 50 | } |
| 51 | }); |
| 52 | if(jQuery("#import-third-party-plugin-data").length) { |
| 53 | jQuery("#import-third-party-plugin-data").show(); |
| 54 | } else if($("#wordpress-popup").length) { |
| 55 | $("#wordpress-popup").show(); |
| 56 | } |
| 57 | }); |
| 58 | |
| 59 | jQuery("#import-third-party-plugin-data").hide(); |
| 60 | |
| 61 | jQuery(document).on("click", "#cancel-plugin-import", function(){ |
| 62 | jQuery.ajax({ |
| 63 | type: 'POST', |
| 64 | url: ajaxurl, |
| 65 | data: { |
| 66 | action: 'wcp_update_folders_import_status', |
| 67 | nonce: '<?php echo esc_attr(wp_create_nonce("folders_import_3rd_party_data")) ?>' |
| 68 | }, |
| 69 | beforeSend: function (xhr) { |
| 70 | |
| 71 | }, |
| 72 | success: function (res) { |
| 73 | |
| 74 | }, |
| 75 | error: function (xhr, status, error) { |
| 76 | |
| 77 | } |
| 78 | }); |
| 79 | if(jQuery("#wordpress-popup").length) { |
| 80 | jQuery("#wordpress-popup").show(); |
| 81 | } |
| 82 | }); |
| 83 | |
| 84 | jQuery(document).on("click", ".folder-popup-box", function(e){ |
| 85 | e.stopPropagation(); |
| 86 | }); |
| 87 | }); |
| 88 | </script> |
| 89 |