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