| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
$tab = isset($tab) ? $tab : 'dashboard'; |
| 7 |
$tabs = isset($tabs) && is_array($tabs) ? $tabs : []; |
| 8 |
$domain = isset($domain) ? $domain : RL5_Settings::domain(); |
| 9 |
?> |
| 10 |
<div class="wrap rl6-wrap"> |
| 11 |
<header class="rl6-header"> |
| 12 |
<div class="rl6-brand-block"> |
| 13 |
<img |
| 14 |
src="<?php echo esc_url(RL5_URL . 'assets/logo-dark.svg'); ?>" |
| 15 |
class="rl6-logo" |
| 16 |
alt="RabbitLoader" |
| 17 |
> |
| 18 |
<div class="rl6-site-meta"> |
| 19 |
<strong><?php echo esc_html($domain); ?></strong> |
| 20 |
<span>WordPress performance optimization</span> |
| 21 |
</div> |
| 22 |
</div> |
| 23 |
|
| 24 |
<div class="rl6-header-actions"> |
| 25 |
<span class="rl6-status-pill rl6-status-success"> |
| 26 |
<span class="rl6-status-dot"></span> |
| 27 |
Connected |
| 28 |
</span> |
| 29 |
<a |
| 30 |
href="https://dash.rabbitloader.com/" |
| 31 |
class="rl6-button rl6-button-secondary rl6-button-small" |
| 32 |
target="_blank" |
| 33 |
rel="noopener noreferrer" |
| 34 |
> |
| 35 |
Open Console |
| 36 |
</a> |
| 37 |
</div> |
| 38 |
</header> |
| 39 |
|
| 40 |
<nav class="rl6-tabs" aria-label="RabbitLoader sections"> |
| 41 |
<?php foreach ($tabs as $tab_key => $tab_label) : ?> |
| 42 |
<a |
| 43 |
class="rl6-tab <?php echo $tab === $tab_key ? 'is-active' : ''; ?>" |
| 44 |
href="<?php echo esc_url(admin_url('admin.php?page=rabbitloader&tab=' . $tab_key)); ?>" |
| 45 |
> |
| 46 |
<?php echo esc_html($tab_label); ?> |
| 47 |
</a> |
| 48 |
<?php endforeach; ?> |
| 49 |
</nav> |
| 50 |
|
| 51 |
<main class="rl6-main"> |
| 52 |
|