admin-content.php
6 years ago
folder-deactivate-form.php
6 years ago
folder-popup.php
6 years ago
general-settings.php
6 years ago
help.php
6 years ago
update.php
6 years ago
upgrade-to-pro.php
6 years ago
update.php
100 lines
| 1 | <style> |
| 2 | |
| 3 | .updates-form-form { |
| 4 | min-height: calc(100vh - 280px); |
| 5 | } |
| 6 | .popup-form-content { |
| 7 | background: #ffffff; |
| 8 | min-height: 100px; |
| 9 | width: 450px; |
| 10 | text-align: center; |
| 11 | margin-top: 50px; |
| 12 | border: solid 1px #c1c1c1; |
| 13 | } |
| 14 | .updates-content-buttons button { |
| 15 | margin: 10px 3px !important; |
| 16 | float: left; |
| 17 | } |
| 18 | .updates-content-buttons a span { |
| 19 | -webkit-animation: fa-spin 0.75s infinite linear; |
| 20 | animation: fa-spin 0.75s infinite linear; |
| 21 | } |
| 22 | .updates-content-buttons a:hover, .updates-content-buttons a:focus { |
| 23 | color: #ffffff; |
| 24 | background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1)); |
| 25 | } |
| 26 | .updates-content-buttons a:focus { |
| 27 | outline: 0; |
| 28 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50,100,150,.4); |
| 29 | } |
| 30 | .updates-content-buttons button.form-cancel-btn { |
| 31 | float: right !important; |
| 32 | } |
| 33 | .form-submit-btn { |
| 34 | background-color: #3085d6; |
| 35 | } |
| 36 | .updates-content-buttons a span { |
| 37 | -webkit-animation: fa-spin 0.75s infinite linear; |
| 38 | animation: fa-spin 0.75s infinite linear; |
| 39 | } |
| 40 | .add-update-title { |
| 41 | font-size: 20px; |
| 42 | line-height: 30px; |
| 43 | padding: 20px 20px 0; |
| 44 | } |
| 45 | .folder-update-input { |
| 46 | padding: 10px 20px; |
| 47 | } |
| 48 | .folder-update-input input { |
| 49 | width: 100%; |
| 50 | transition: border-color .3s,box-shadow .3s; |
| 51 | border: 1px solid #d9d9d9; |
| 52 | border-radius: .1875em; |
| 53 | font-size: 1.125em; |
| 54 | box-shadow: inset 0 1px 1px rgba(0,0,0,.06); |
| 55 | box-sizing: border-box; |
| 56 | height: 2.625em; |
| 57 | margin: 1em auto; |
| 58 | } |
| 59 | .updates-content-buttons { |
| 60 | background: #c1c1c1; |
| 61 | padding: 0 20px; |
| 62 | } |
| 63 | |
| 64 | </style> |
| 65 | <div class="updates-form-form" > |
| 66 | <div class="popup-form-content"> |
| 67 | <div id="add-update-title" class="add-update-title"> |
| 68 | Would you like to get feature updates for Folders in real-time? |
| 69 | </div> |
| 70 | <div class="folder-update-input"> |
| 71 | <input id="folder_update_email" autocomplete="off" value="<?php echo get_option( 'admin_email' ) ?>" placeholder="Email address"> |
| 72 | </div> |
| 73 | <div class="updates-content-buttons"> |
| 74 | <button href="javascript:;" class="button button-primary form-submit-btn yes">Yes, I want</button> |
| 75 | <button href="javascript:;" class="button button-secondary form-cancel-btn no">Skip</button> |
| 76 | <div style="clear: both"></div> |
| 77 | </div> |
| 78 | <input type="hidden" id="folder_update_status" value="<?php echo wp_create_nonce("folder_update_status") ?>"> |
| 79 | </div> |
| 80 | </div> |
| 81 | <script> |
| 82 | jQuery(document).ready(function($) { |
| 83 | $(document).on("click", ".updates-content-buttons button", function () { |
| 84 | var updateStatus = 0; |
| 85 | if ($(this).hasClass("yes")) { |
| 86 | updateStatus = 1; |
| 87 | } |
| 88 | $(".updates-content-buttons button").attr("disabled", true); |
| 89 | $.ajax({ |
| 90 | url: ajaxurl, |
| 91 | data: "action=folder_update_status&status=" + updateStatus + "&nonce=" + $("#folder_update_status").val() + "&email=" + $("#folder_update_email").val(), |
| 92 | type: 'post', |
| 93 | cache: false, |
| 94 | success: function () { |
| 95 | window.location.reload(); |
| 96 | } |
| 97 | }) |
| 98 | }); |
| 99 | }); |
| 100 | </script> |