PluginProbe
Disk Usage Insights / 1.8
Disk Usage Insights v1.8
trunk 1.0 1.10 1.11 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
disk-usage-insights / views / results.php

results.php in Disk Usage Insights 1.8, at views/results.php

131 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) { // Ensure running within WordPress
3 exit;
4 }
5 ?>
6 <?php include_once __DIR__ . '/blocks/header.php'; ?>
7
8 <h1>Snapshot <?php echo esc_html($snapshot); ?></h1>
9 <div>
10 <a href="?page=disk-usage-insights">Dashboard</a> &gt; Snapshot <?php echo esc_html($snapshot); ?>
11 </div>
12 <br>
13
14 <!--
15 <input id="cbIncludeCore" type="checkbox" checked><label for="cbIncludeCore">Include WordPress Core Files</label><br>
16 <br>
17 -->
18
19 <div class="DUI-panel">
20 <div class="DUI-panel__content">
21 Root Directory: <?php echo esc_html($root); ?><br>
22 Total Size: <?php echo esc_html(number_format_i18n($totalSize)); ?>
23 <br>
24 <br>
25 <div class="stackedbarchart" style="border: 1px solid black; margin-bottom: 5px;">
26 <?php foreach ($barChart as $idx => $bar): ?>
27 <div class="stackedbarchart__bar stackedbarchart__color--<?php echo ($idx % 10); ?>" style="width: <?php echo esc_html($bar['percent']) ?>%; height: 20px;">
28 <?php if ($bar['percent'] > 10): ?>
29 <?php echo esc_html($bar['label']) ?>
30 <?php endif; ?>
31 </div>
32 <?php endforeach ?>
33 </div>
34 <div class="stackedbarchart__legend">
35 <?php foreach ($barChart as $idx => $bar): ?>
36 <div>
37 <div class="stackedbarchart__legendcolor stackedbarchart__color--<?php echo ($idx % 10); ?>"></div>
38 <!-- <?php echo esc_html($bar['percent']) ?>% -->
39 <?php echo esc_html($bar['mb']) ?> MB
40 <?php echo esc_html($bar['label']) ?>
41 </div>
42 <?php endforeach ?>
43 </div>
44 </div>
45 </div>
46
47
48 <div hx-trigger="load"
49 hx-get="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_results_table&table=largest-files&snapshot=<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"
50 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>"}'
51 class="TOP10"
52 >
53
54 <div class="DUI-panel DUI-panel--TOP10">
55 <div class="DUI-panel__content">
56 ...
57 </div>
58 </div>
59
60 </div>
61
62 <div hx-trigger="load"
63 hx-get="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_results_table&table=largest-folders-files&snapshot=<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"
64 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>"}'
65 class="TOP10"
66 >
67
68 <div class="DUI-panel DUI-panel--TOP10">
69 <div class="DUI-panel__content">
70 ...
71 </div>
72 </div>
73
74 </div>
75
76 <div hx-trigger="load"
77 hx-get="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_results_table&table=largest-folders-sub-folders&snapshot=<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"
78 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>"}'
79 class="TOP10"
80 >
81
82 <div class="DUI-panel DUI-panel--TOP10">
83 <div class="DUI-panel__content">
84 ...
85 </div>
86 </div>
87
88 </div>
89
90 <div hx-trigger="load"
91 hx-get="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_results_table&table=folders-most-files&snapshot=<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"
92 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>"}'
93 class="TOP10"
94 >
95
96 <div class="DUI-panel DUI-panel--TOP10">
97 <div class="DUI-panel__content">
98 ...
99 </div>
100 </div>
101
102 </div>
103
104 <div hx-trigger="load"
105 hx-get="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_results_table&table=largest-plugins&snapshot=<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"
106 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>"}'
107 class="TOP10"
108 >
109
110 <div class="DUI-panel DUI-panel--TOP10">
111 <div class="DUI-panel__content">
112 ...
113 </div>
114 </div>
115
116 </div>
117
118 <div hx-trigger="load"
119
120 hx-get="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_results_table&table=largest-themes&snapshot=<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"
121 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>"}'
122 class="TOP10"
123 >
124
125 <div class="DUI-panel DUI-panel--TOP10">
126 <div class="DUI-panel__content">
127 ...
128 </div>
129 </div>
130
131 </div>