PluginProbe ʕ •ᴥ•ʔ
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization / 1.19.2
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization v1.19.2
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 / dashboard-oneclick.php
nitropack / view Last commit date
animations 7 months ago images 3 months ago javascript 3 months ago modals 3 months ago stylesheet 4 months ago templates 1 year ago admin.php 3 months ago connect-oneclick.php 3 months ago connect.php 7 months ago dashboard-oneclick.php 3 months ago dashboard.php 3 months ago oneclick.php 3 months ago preview-site.php 7 months ago system-report.php 4 months ago
dashboard-oneclick.php
83 lines
1 <?php
2 $settings = new \NitroPack\WordPress\Settings();
3 $notifications = new \NitroPack\WordPress\Notifications\Notifications();
4
5 $conflictingPlugins = \NitroPack\WordPress\ConflictingPlugins::getInstance();
6 $conflictingPlugins_list = $conflictingPlugins->nitropack_get_conflicting_plugins();
7 if ( $conflictingPlugins_list ) {
8 require_once NITROPACK_PLUGIN_DIR . 'view/modals/modal-plugin-deactivate.php';
9 }
10
11 $notifications->nitropack_display_admin_notices();
12 $dismissed_notices = get_option( 'nitropack-dismissed-notices' );
13
14 $nitro = get_nitropack_sdk();
15 try {
16 $cache_warmup_stats = $nitro->getApi()->getWarmupStats();
17 } catch ( \Exception $e ) {
18 $cache_warmup_stats = [ 'status' => 0 ];
19 }
20 $cache_warmup_enabled = ! empty( $cache_warmup_stats['status'] ) && $cache_warmup_stats['status'] === 1 ? true : false;
21 ?>
22 <div class="grid grid-cols-2 gap-6 grid-col-1-tablet items-start nitropack-dashboard">
23 <div class="col-span-1">
24 <!-- Optimized Pages Card -->
25 <?php $settings->optimizations->render(); ?>
26
27 <!-- Optimization Mode Card -->
28 <?php $settings->optimization_level->render(); ?>
29
30 <div class="card card-automated-behavior">
31 <div class="card-header">
32 <h3><?php esc_html_e( 'Automated Behavior', 'nitropack' ); ?></h3>
33 </div>
34 <div class="card-body">
35 <div class="options-container">
36 <?php $settings->auto_purge->render();
37 $settings->cpt_optimization->render(); ?>
38
39 </div>
40 </div>
41 </div>
42 <!-- Automated Behavior Card End -->
43 <!-- Go to app Card -->
44 <div class="card exclusion-card">
45 <div class="card-header">
46 <h3><?php esc_html_e( 'Exclusions', 'nitropack' ); ?></h3>
47 </div>
48 <div class="card-body">
49 <div class="options-container">
50 <?php $settings->shortcodes->render(); ?>
51 </div>
52 </div>
53 </div>
54 <!-- Go to app card End -->
55 </div>
56 <div class="col-span-1">
57 <!-- Basic Settings Card -->
58 <div class="card card-basic-settings">
59 <div class="card-header">
60 <h3><?php esc_html_e( 'Basic Settings', 'nitropack' ); ?></h3>
61 </div>
62 <div class="card-body">
63 <div class="options-container">
64 <?php
65 $settings->cache_warmup->render();
66 $settings->test_mode->render();
67 $settings->html_compression->render();
68 $settings->beaver_builder->render();
69 $settings->editor_clear_cache->render();
70 ?>
71 </div>
72 </div>
73 </div>
74 </div>
75 <?php
76 $CPTOptimization = NitroPack\WordPress\Settings\CPTOptimization::getInstance();
77 $notOptimizedCPTs = $CPTOptimization->nitropack_filter_non_optimized();
78 $notices = get_option( 'nitropack-dismissed-notices', [] );
79 $optimizedCPT_notice = in_array( 'OptimizeCPT', $notices, true ) ? true : false;
80 if ( ! $optimizedCPT_notice && ! empty( $notOptimizedCPTs ) )
81 require_once NITROPACK_PLUGIN_DIR . 'view/modals/modal-not-optimized-CPT.php'; ?>
82 </div>
83 <?php require_once NITROPACK_PLUGIN_DIR . 'view/modals/modal-unsaved-changes.php'; ?>