| 1 |
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?> |
| 2 |
<div class="wpo_section wpo_group"> |
| 3 |
<form> |
| 4 |
<?php if ($is_cache_enabled) : ?> |
| 5 |
<div id="minify-preload" class="notice notice-warning wpo-warning below-h2 wp-optimize-minify-status-information-notice wpo-show"> |
| 6 |
<p> |
| 7 |
<span class="dashicons dashicons-info"></span> |
| 8 |
<?php |
| 9 |
$message = esc_html__('You are using WP-Optimize for page caching.', 'wp-optimize'); |
| 10 |
$message .= ' '; |
| 11 |
$message .= esc_html__('Because of that, the pre-load settings used for page-caching are used.', 'wp-optimize'); |
| 12 |
$message .= ' '; |
| 13 |
$message .= sprintf(esc_html__('i.e. To configure pre-loading, go to the %sCache Preload settings in the caching section%s instead.', 'wp-optimize'), '<a href="' . admin_url('admin.php?page=wpo_cache&tab=wp_optimize_preload') . '">', '</a>'); |
| 14 |
echo $message; |
| 15 |
?> |
| 16 |
<br> |
| 17 |
</p> |
| 18 |
</div> |
| 19 |
<?php endif; ?> |
| 20 |
<h3 class="wpo-first-child"><?php esc_html_e('Preload now', 'wp-optimize'); ?></h3> |
| 21 |
<div class="wpo-fieldgroup"> |
| 22 |
<p> |
| 23 |
<input id="wp_optimize_run_minify_preload" |
| 24 |
class="button button-primary" type="submit" |
| 25 |
name="wp_optimize_run_minify_preload" |
| 26 |
value="<?php echo $is_running ? esc_attr__('Cancel', 'wp-optimize') : esc_attr__('Run now', 'wp-optimize'); ?>" |
| 27 |
<?php echo $is_running ? 'data-running="1"' : ''; ?> |
| 28 |
<?php echo $is_cache_enabled ? "disabled" : ""; ?> |
| 29 |
> |
| 30 |
<span id="wp_optimize_preload_minify_status"><?php |
| 31 |
echo esc_html($status_message); |
| 32 |
?></span> |
| 33 |
</p> |
| 34 |
<span> |
| 35 |
<?php esc_html_e('This action will trigger WP-Optimize to generate minify assets by visiting pages to preload them (so that they are ready the first time a human visitor wants them).', 'wp-optimize'); ?> |
| 36 |
<?php esc_html_e('If a sitemap is available, then it will be used to determine which assets get minified.', 'wp-optimize'); ?> |
| 37 |
</span> |
| 38 |
</div> |
| 39 |
</form> |
| 40 |
</div> |
| 41 |
|