| 1 |
<?php |
| 2 |
/** |
| 3 |
* Partial: Setup / status banner (top-left card). |
| 4 |
* |
| 5 |
* Variables (all pre-computed by WP_Optimize_Dashboard::get_banner_view_data()): |
| 6 |
* array $banner Keys: is_start, is_complete, eyebrow, title, subtitle, |
| 7 |
* running_label, cta_href, cta_label. |
| 8 |
*/ |
| 9 |
|
| 10 |
if (!defined('ABSPATH')) die('No direct access allowed'); |
| 11 |
?> |
| 12 |
|
| 13 |
<div class="wpo-card"> |
| 14 |
|
| 15 |
<div class="wpo-setup-eyebrow <?php echo !empty($banner['is_start']) ? 'grey-out' : ''; ?>"> |
| 16 |
<span class="wpo-dot">●</span> |
| 17 |
<?php echo esc_html($banner['eyebrow']); ?> |
| 18 |
</div> |
| 19 |
|
| 20 |
<h2 class="wpo-setup-title"><?php echo esc_html($banner['title']); ?></h2> |
| 21 |
<p class="wpo-setup-sub"><?php echo esc_html($banner['subtitle']); ?></p> |
| 22 |
|
| 23 |
<div class="wpo-setup-meta"> |
| 24 |
<span class="wpo-running-label"> |
| 25 |
<span class="wpo-dash-icon dashicons dashicons-clock icon-meta"></span> |
| 26 |
<?php echo esc_html($banner['running_label']); ?> |
| 27 |
</span> |
| 28 |
|
| 29 |
<?php if (!empty($banner['cta_href'])) : ?> |
| 30 |
<a class="<?php echo !empty($banner['is_start']) ? 'button button-setup' : 'wpo-dash-link'; ?>" href="<?php echo esc_url($banner['cta_href']); ?>"> |
| 31 |
<?php echo esc_html($banner['cta_label']); ?><span class="dashicons dashicons-arrow-right-alt"></span> |
| 32 |
</a> |
| 33 |
<?php endif; ?> |
| 34 |
</div> |
| 35 |
|
| 36 |
</div> |
| 37 |
|