PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / templates / dashboard / partials / setup-banner.php

setup-banner.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.7.0, at templates/dashboard/partials/setup-banner.php

37 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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