PluginProbe ʕ •ᴥ•ʔ
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization / 1.18.6
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization v1.18.6
1.19.8 1.19.7 1.19.6 1.19.5 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.15.1 1.15.2 1.15.3 1.16.0 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.16.6 1.16.7 1.16.8 1.17.0 1.17.6 1.17.7 1.17.8 1.17.9 1.18.0 1.18.1 1.18.2 1.18.3 1.18.4 1.18.5 1.18.6 1.18.7 1.18.8 1.18.9 1.19.0 1.19.1 1.19.2 1.19.3 1.19.4 1.3.19 1.3.20 1.4.0 1.4.1 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.13 1.5.14 1.5.15 1.5.16 1.5.17 1.5.18 1.5.19 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.8.1 1.8.3 1.9.0 1.9.1 1.9.2
nitropack / view / admin.php
nitropack / view Last commit date
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>