| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
$dashboard = isset($dashboard) && is_array($dashboard) ? $dashboard : []; |
| 7 |
$ok = !empty($dashboard['ok']); |
| 8 |
$url_count = $ok ? (int) $dashboard['canonical_url_count'] : 0; |
| 9 |
$optimized_count = $ok ? (int) $dashboard['optimized_url_count'] : 0; |
| 10 |
?> |
| 11 |
<section class="rl6-page-heading"> |
| 12 |
<div> |
| 13 |
<span class="rl6-eyebrow">Site optimization</span> |
| 14 |
<h1>Optimization</h1> |
| 15 |
<p>Review the URLs RabbitLoader has detected and optimized for this website.</p> |
| 16 |
</div> |
| 17 |
</section> |
| 18 |
|
| 19 |
<section class="rl6-card rl6-section-card rl6-section-card-first"> |
| 20 |
<div class="rl6-section-title-row rl6-section-title-wrap"> |
| 21 |
<div> |
| 22 |
<span class="rl6-eyebrow">Pages</span> |
| 23 |
<h2>Optimized URLs</h2> |
| 24 |
<p> |
| 25 |
<?php if ($ok) : ?> |
| 26 |
RabbitLoader currently reports <?php echo esc_html(number_format_i18n($optimized_count)); ?> |
| 27 |
optimized out of <?php echo esc_html(number_format_i18n($url_count)); ?> detected URLs. |
| 28 |
<?php else : ?> |
| 29 |
URL summary data is currently unavailable. |
| 30 |
<?php endif; ?> |
| 31 |
</p> |
| 32 |
</div> |
| 33 |
|
| 34 |
<div class="rl6-url-tools"> |
| 35 |
<label class="rl6-search"> |
| 36 |
<span class="dashicons dashicons-search"></span> |
| 37 |
<input type="search" placeholder="Search URLs" disabled> |
| 38 |
</label> |
| 39 |
<button type="button" class="rl6-button rl6-button-secondary" disabled>Status</button> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
|
| 43 |
<div class="rl6-table-wrap"> |
| 44 |
<table class="rl6-table"> |
| 45 |
<thead> |
| 46 |
<tr> |
| 47 |
<th>URL</th> |
| 48 |
<th>Status</th> |
| 49 |
<th>Mobile</th> |
| 50 |
<th>Desktop</th> |
| 51 |
<th>Last optimized</th> |
| 52 |
<th></th> |
| 53 |
</tr> |
| 54 |
</thead> |
| 55 |
<tbody> |
| 56 |
<tr class="rl6-empty-row"> |
| 57 |
<td colspan="6"> |
| 58 |
<div class="rl6-empty-state"> |
| 59 |
<span class="dashicons dashicons-list-view"></span> |
| 60 |
<strong>URL-level data connection comes next</strong> |
| 61 |
<p> |
| 62 |
The old WordPress UI used RabbitLoader's shared URL List component. |
| 63 |
This table is now in its final location and will be wired without changing the layout. |
| 64 |
</p> |
| 65 |
</div> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
</tbody> |
| 69 |
</table> |
| 70 |
</div> |
| 71 |
</section> |
| 72 |
|