| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
$domain = isset($domain) ? $domain : RL5_Settings::domain(); |
| 7 |
$did = isset($did) ? $did : RL5_Settings::did(); |
| 8 |
?> |
| 9 |
<section class="rl6-page-heading"> |
| 10 |
<div> |
| 11 |
<span class="rl6-eyebrow">Configuration</span> |
| 12 |
<h1>Settings</h1> |
| 13 |
<p>Page rules, connection details and advanced WordPress controls.</p> |
| 14 |
</div> |
| 15 |
</section> |
| 16 |
|
| 17 |
<section class="rl6-card rl6-section-card"> |
| 18 |
<div class="rl6-section-title-row rl6-section-title-wrap"> |
| 19 |
<div> |
| 20 |
<span class="rl6-eyebrow">Optimization rules</span> |
| 21 |
<h2>Page Rules</h2> |
| 22 |
<p>Control where RabbitLoader should apply or exclude optimization.</p> |
| 23 |
</div> |
| 24 |
<button |
| 25 |
type="button" |
| 26 |
class="rl6-button rl6-button-primary rl6-ui-preview" |
| 27 |
data-message="Page Rules will reuse the existing RabbitLoader page-rule backend after the UI is approved." |
| 28 |
> |
| 29 |
+ Add Page Rule |
| 30 |
</button> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="rl6-table-wrap"> |
| 34 |
<table class="rl6-table"> |
| 35 |
<thead> |
| 36 |
<tr> |
| 37 |
<th>URL pattern</th> |
| 38 |
<th>Behavior</th> |
| 39 |
<th></th> |
| 40 |
</tr> |
| 41 |
</thead> |
| 42 |
<tbody> |
| 43 |
<tr class="rl6-empty-row"> |
| 44 |
<td colspan="3"> |
| 45 |
<div class="rl6-empty-state"> |
| 46 |
<span class="dashicons dashicons-filter"></span> |
| 47 |
<strong>Page Rules will appear here</strong> |
| 48 |
<p>The old WordPress Settings tab mounted RabbitLoader's Page Rule component here.</p> |
| 49 |
</div> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
</tbody> |
| 53 |
</table> |
| 54 |
</div> |
| 55 |
</section> |
| 56 |
|
| 57 |
<section class="rl6-card rl6-section-card"> |
| 58 |
<div class="rl6-section-title-row"> |
| 59 |
<div> |
| 60 |
<span class="rl6-eyebrow">RabbitLoader account</span> |
| 61 |
<h2>Connection</h2> |
| 62 |
</div> |
| 63 |
<span class="rl6-status-pill rl6-status-success"> |
| 64 |
<span class="rl6-status-dot"></span> |
| 65 |
Connected |
| 66 |
</span> |
| 67 |
</div> |
| 68 |
|
| 69 |
<div class="rl6-settings-grid"> |
| 70 |
<div class="rl6-setting-item"> |
| 71 |
<span>Website</span> |
| 72 |
<strong><?php echo esc_html($domain); ?></strong> |
| 73 |
</div> |
| 74 |
<div class="rl6-setting-item"> |
| 75 |
<span>Domain ID</span> |
| 76 |
<strong class="rl6-mono"><?php echo esc_html($did); ?></strong> |
| 77 |
</div> |
| 78 |
<div class="rl6-setting-item"> |
| 79 |
<span>Plugin version</span> |
| 80 |
<strong><?php echo esc_html(RL5_VERSION); ?></strong> |
| 81 |
</div> |
| 82 |
</div> |
| 83 |
|
| 84 |
<div class="rl6-card-actions"> |
| 85 |
<a class="rl6-button rl6-button-secondary" href="https://dash.rabbitloader.com/" target="_blank" rel="noopener noreferrer"> |
| 86 |
Open RabbitLoader Console |
| 87 |
</a> |
| 88 |
<button id="rl5-disconnect-button" type="button" class="rl6-button rl6-button-outline-danger"> |
| 89 |
Disconnect |
| 90 |
</button> |
| 91 |
</div> |
| 92 |
</section> |
| 93 |
|