images
1 year ago
javascript
1 year ago
modals
1 year ago
stylesheet
1 year ago
templates
2 years ago
admin.php
1 year ago
connect-oneclick.php
1 year ago
connect.php
2 years ago
dashboard-oneclick.php
1 year ago
dashboard.php
1 year ago
oneclick.php
1 year ago
system-report.php
1 year ago
admin.php
82 lines
| 1 | <script> |
| 2 | let nitroNonce = '<?php echo wp_create_nonce( NITROPACK_NONCE ); ?>'; |
| 3 | </script> |
| 4 | <div id="nitropack-container"> |
| 5 | <nav class="nitro-navigation"> |
| 6 | <div class="nitro-navigation-inner"> |
| 7 | <img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/nitropack_logo.svg'; ?>" height="25" |
| 8 | alt="NitroPack" /> |
| 9 | </div> |
| 10 | </nav> |
| 11 | |
| 12 | <main id="main"> |
| 13 | <div class="container"> |
| 14 | <?php if ( ! isset( $_GET['subpage'] ) ) : ?> |
| 15 | <?php require_once NITROPACK_PLUGIN_DIR . "view/dashboard.php"; |
| 16 | ?> |
| 17 | <?php endif; ?> |
| 18 | <?php if ( isset( $_GET['subpage'] ) && $_GET['subpage'] == 'system-report' ) : ?> |
| 19 | <?php require_once NITROPACK_PLUGIN_DIR . "view/system-report.php"; |
| 20 | ?> |
| 21 | <?php endif; ?> |
| 22 | </div> |
| 23 | </main> |
| 24 | <?php require_once NITROPACK_PLUGIN_DIR . 'view/templates/template-toast.php'; ?> |
| 25 | </div> |
| 26 | |
| 27 | <?php if ( NITROPACK_SUPPORT_BUBBLE_VISIBLE ) { ?> |
| 28 | <div class="support-widget"> |
| 29 | <!-- support widget --> |
| 30 | <script> |
| 31 | window.intercomSettings = { |
| 32 | api_base: "https://api-iam.intercom.io", |
| 33 | app_id: "d5v9p9vg" |
| 34 | }; |
| 35 | |
| 36 | (function () { |
| 37 | var w = window; |
| 38 | var ic = w.Intercom; |
| 39 | if (typeof ic === "function") { |
| 40 | ic('reattach_activator'); |
| 41 | ic('update', w.intercomSettings); |
| 42 | } else { |
| 43 | var d = document; |
| 44 | var i = function () { |
| 45 | i.c(arguments); |
| 46 | }; |
| 47 | i.q = []; |
| 48 | i.c = function (args) { |
| 49 | i.q.push(args); |
| 50 | }; |
| 51 | w.Intercom = i; |
| 52 | var l = function () { |
| 53 | var s = d.createElement('script'); |
| 54 | s.type = 'text/javascript'; |
| 55 | s.async = true; |
| 56 | s.src = 'https://widget.intercom.io/widget/d5v9p9vg'; |
| 57 | var x = d.getElementsByTagName('script')[0]; |
| 58 | x.parentNode.insertBefore(s, x); |
| 59 | }; |
| 60 | if (document.readyState === 'complete') { |
| 61 | l(); |
| 62 | } else if (w.attachEvent) { |
| 63 | w.attachEvent('onload', l); |
| 64 | } else { |
| 65 | w.addEventListener('load', l, false); |
| 66 | } |
| 67 | } |
| 68 | })(); |
| 69 | </script> |
| 70 | <!-- end support widget --> |
| 71 | </div> |
| 72 | <?php } ?> |
| 73 | <script> |
| 74 | (function ($) { |
| 75 | window.addEventListener("cache.purge.success", function () { |
| 76 | setTimeout(function () { |
| 77 | document.cookie = "nitropack_apwarning=1; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=<?php echo nitropack_cookiepath(); ?>"; |
| 78 | window.location.reload() |
| 79 | }, 1500) |
| 80 | }); |
| 81 | })(jQuery); |
| 82 | </script> |