| 1 |
<?php |
| 2 |
/** |
| 3 |
* Dashboard main layout template for WP-Optimize. |
| 4 |
* |
| 5 |
* All variables are passed via include_template() from WP_Optimize_Admin::output_dashboard(). |
| 6 |
* See WP_Optimize_Dashboard::get_dashboard_data() for the full variable list. |
| 7 |
*/ |
| 8 |
|
| 9 |
if (!defined('ABSPATH')) die('No direct access allowed'); |
| 10 |
|
| 11 |
$partials = __DIR__ . '/partials/'; |
| 12 |
?> |
| 13 |
<div class="wpo-dash"> |
| 14 |
<div class="wpo-dash-toolbar"> |
| 15 |
<button type="button" class="wpo-refresh-btn" id="wpo-dashboard-refresh"> |
| 16 |
<span class="wpo-dash-icon dashicons dashicons-update"></span> |
| 17 |
<?php esc_html_e('Refresh', 'wp-optimize'); ?> |
| 18 |
</button> |
| 19 |
</div> |
| 20 |
<div class="wpo-top-row"> |
| 21 |
<?php require $partials . 'top-row.php'; ?> |
| 22 |
</div> |
| 23 |
<div class="wpo-modules-label"> |
| 24 |
<?php esc_html_e('Your modules', 'wp-optimize'); ?> |
| 25 |
</div> |
| 26 |
<div class="wpo-mod-grid"> |
| 27 |
<?php require $partials . 'mod-grid.php'; ?> |
| 28 |
</div> |
| 29 |
<?php require $partials . 'promo-bar.php'; ?> |
| 30 |
</div> |
| 31 |
|