updated plugin W3 Total Cache version 2.7.0

This commit is contained in:
2024-03-28 09:40:06 +00:00
committed by Gitium
parent 60de585044
commit 218272bbcb
140 changed files with 3054 additions and 3013 deletions

View File

@ -1,4 +1,4 @@
<div style="min-height:400px;height:100%;margin-top:15px;">
<iframe id="buy_frame" name="buy_frame" src="<?php echo esc_url( $iframe_url ); ?>" style="height:90%;width:100%" scrolling="auto">
<div style="min-height:400px;height:100%;padding:10px;box-sizing:border-box;">
<iframe id="buy_frame" name="buy_frame" src="<?php echo esc_url( $iframe_url ); ?>" style="height:100%;width:100%" scrolling="auto">
</iframe>
</div>

View File

@ -6,7 +6,6 @@ if ( ! defined( 'W3TC' ) ) {
}
?>
<div id="w3tc-upgrade">
<div id="w3tc_upgrade_header">
<div>
@ -15,26 +14,22 @@ if ( ! defined( 'W3TC' ) ) {
<span style="font-size:16px;"><?php esc_html_e( 'Unlock more performance options', 'w3-total-cache' ); ?></span>
</div>
</div>
<div>
<?php if ( \W3TC\Util_Environment::is_https() ) : ?>
<input id="w3tc-purchase" type="button"
class="btn w3tc-size w3tc-palette-tp w3tc-gauge-tp"
value="<?php esc_attr_e( 'Go Faster With Pro', 'w3-total-cache' ); ?> " />
<?php else : ?>
<a id="w3tc-purchase-link"
href="<?php echo esc_url( \W3TC\Licensing_Core::purchase_url( $data_src, $renew_key, $client_id ) ); ?>"
target="_blank"
class="btn w3tc-size w3tc-palette-tp w3tc-gauge-tp">
<?php esc_html_e( 'Go Faster With Pro', 'w3-total-cache' ); ?>
</a>
<?php endif ?>
</div>
</div>
<div class="w3tc_overlay_upgrade_header">
<iframe src="https://www.w3-edge.com/checkout-ad/?data_src=<?php echo esc_attr( $data_src ); ?>&client_id=<?php echo esc_attr( $client_id ); ?>" width="100%" height="410px"></iframe>
</div>
<div class="w3tc_upgrade_footer">
<?php if ( \W3TC\Util_Environment::is_https() ) : ?>
<input id="w3tc-purchase" type="button"
class="btn w3tc-size"
value="<?php esc_attr_e( 'Subscribe to Go Faster Now', 'w3-total-cache' ); ?> " />
<?php else : ?>
<a id="w3tc-purchase-link"
href="<?php echo esc_url( \W3TC\Licensing_Core::purchase_url( $data_src, $renew_key, $client_id ) ); ?>"
target="_blank"
class="btn w3tc-size">
<?php esc_html_e( 'Subscribe to Go Faster Now', 'w3-total-cache' ); ?>
</a>
<?php endif ?>
</div>
</div>

View File

@ -88,6 +88,7 @@ $security_session_values = array(
value="1"<?php checked( $browsercache_last_modified, true ); ?> />
<?php esc_html_e( 'Set Last-Modified header', 'w3-total-cache' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-last-modified-header' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the Last-Modified header to enable 304 Not Modified response.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -96,14 +97,18 @@ $security_session_values = array(
<label>
<input id="browsercache_expires" type="checkbox" name="expires"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
value="1"<?php checked( $browsercache_expires, true ); ?> /> <?php esc_html_e( 'Set expires header', 'w3-total-cache' ); ?></label>
value="1"<?php checked( $browsercache_expires, true ); ?> /> <?php esc_html_e( 'Set expires header', 'w3-total-cache' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-expires-header' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the expires header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<label><input id="browsercache_cache_control" type="checkbox"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?> name="cache_control" value="1"<?php checked( $browsercache_cache_control, true ); ?> /> <?php esc_html_e( 'Set cache control header', 'w3-total-cache' ); ?></label>
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?> name="cache_control" value="1"<?php checked( $browsercache_cache_control, true ); ?> /> <?php esc_html_e( 'Set cache control header', 'w3-total-cache' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-cache-control-header' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set pragma and cache-control headers to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -111,14 +116,18 @@ $security_session_values = array(
<th colspan="2">
<label><input id="browsercache_etag" type="checkbox"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
name="etag" value="1"<?php checked( $browsercache_etag, true ); ?> /> <?php esc_html_e( 'Set entity tag (ETag)', 'w3-total-cache' ); ?></label>
name="etag" value="1"<?php checked( $browsercache_etag, true ); ?> /> <?php esc_html_e( 'Set entity tag (ETag)', 'w3-total-cache' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-entity-tag-etag' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the ETag header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<label><input id="browsercache_w3tc" type="checkbox" name="w3tc"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?> value="1" <?php checked( $browsercache_w3tc, true ); ?> /> <?php esc_html_e( 'Set W3 Total Cache header', 'w3-total-cache' ); ?></label>
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?> value="1" <?php checked( $browsercache_w3tc, true ); ?> /> <?php esc_html_e( 'Set W3 Total Cache header', 'w3-total-cache' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-w3-total-cache-header' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set this header to assist in identifying optimized files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -146,6 +155,7 @@ $security_session_values = array(
);
?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enablehttpgzip-compression' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -174,6 +184,7 @@ $security_session_values = array(
);
?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enablehttpbrotli-compression' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -181,7 +192,9 @@ $security_session_values = array(
<th colspan="2">
<label><input id="browsercache_replace" type="checkbox"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
name="replace" value="1"<?php checked( $browsercache_replace, true ); ?> /> <?php esc_html_e( 'Prevent caching of objects after settings change', 'w3-total-cache' ); ?></label>
name="replace" value="1"<?php checked( $browsercache_replace, true ); ?> /> <?php esc_html_e( 'Prevent caching of objects after settings change', 'w3-total-cache' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#prevent-caching-of-objects-after-settings-change' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Whenever settings are changed, a new query string will be generated and appended to objects allowing the new policy to be applied.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -189,7 +202,9 @@ $security_session_values = array(
<th colspan="2">
<label><input id="browsercache_querystring" type="checkbox"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
name="querystring" value="1"<?php checked( $browsercache_querystring, true ); ?> /> <?php esc_html_e( 'Remove query strings from static resources', 'w3-total-cache' ); ?></label>
name="querystring" value="1"<?php checked( $browsercache_querystring, true ); ?> /> <?php esc_html_e( 'Remove query strings from static resources', 'w3-total-cache' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#remove-query-strings-from-static-resources' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description">
<?php
echo wp_kses(
@ -213,7 +228,12 @@ $security_session_values = array(
</th>
</tr>
<tr>
<th><label for="browsercache_replace_exceptions"><?php Util_Ui::e_config_label( 'browsercache.replace.exceptions' ); ?></label></th>
<th>
<label for="browsercache_replace_exceptions">
<?php Util_Ui::e_config_label( 'browsercache.replace.exceptions' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#prevent-caching-exception-list' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<textarea id="browsercache_replace_exceptions"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
@ -242,15 +262,19 @@ $security_session_values = array(
</tr>
<tr>
<th colspan="2">
<label><input id="browsercache_nocookies" type="checkbox"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
name="nocookies" value="1"<?php checked( $browsercache_nocookies, true ); ?> /> <?php esc_html_e( "Don't set cookies for static files", 'w3-total-cache' ); ?></label>
<label>
<input id="browsercache_nocookies" type="checkbox"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
name="nocookies" value="1"<?php checked( $browsercache_nocookies, true ); ?> /> <?php esc_html_e( "Don't set cookies for static files", 'w3-total-cache' ); ?>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#dont-set-cookies-for-static-files' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</label>
<p class="description"><?php esc_html_e( 'Removes Set-Cookie header for responses.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.no404wp', ! Util_Rule::can_check_rules() ); ?> <?php Util_Ui::e_config_label( 'browsercache.no404wp' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#do-not-process-404-errors-for-static-objects-with-wordpress' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce server load by allowing the web server to handle 404 (not found) errors for static files (images etc).', 'w3-total-cache' ); ?></p>
<p class="description">
<?php
@ -275,7 +299,12 @@ $security_session_values = array(
</th>
</tr>
<tr>
<th><label for="browsercache_no404wp_exceptions"><?php Util_Ui::e_config_label( 'browsercache.no404wp.exceptions' ); ?></label></th>
<th>
<label for="browsercache_no404wp_exceptions">
<?php Util_Ui::e_config_label( 'browsercache.no404wp.exceptions' ); ?>
</label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#404-error-exception-list' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<textarea id="browsercache_no404wp_exceptions"
<?php Util_Ui::sealing_disabled( 'browsercache.' ); ?>
@ -308,6 +337,7 @@ $security_session_values = array(
'key' => 'browsercache.rewrite',
'disabled' => Util_Ui::sealing_disabled( 'browsercache.' ),
'control' => 'checkbox',
'control_after' => '<a class="w3tc-control-after" target="_blank" href="' . esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#rewriteurlstructure-of-objects' ) . '">' . esc_html( 'Learn more', 'w3-total-cache' ) . '<span class="dashicons dashicons-external"></span></a>',
'checkbox_label' => wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag.
@ -379,18 +409,21 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.last_modified' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.last_modified' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-last-modified-header-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the Last-Modified header to enable 304 Not Modified response.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.expires' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.expires' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-expires-header-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the expires header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th>
<label for="browsercache_cssjs_lifetime"><?php Util_Ui::e_config_label( 'browsercache.cssjs.lifetime' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#expires-header-lifetime-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<input id="browsercache_cssjs_lifetime" type="text"
@ -401,12 +434,14 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.cache.control' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.cache.control' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-cache-control-header-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set pragma and cache-control headers to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th>
<label for="browsercache_cssjs_cache_policy"><?php Util_Ui::e_config_label( 'browsercache.cssjs.cache.policy' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#cache-control-policy-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<select id="browsercache_cssjs_cache_policy"
@ -431,36 +466,42 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.etag' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.etag' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-entity-tag-etag-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the ETag header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.w3tc' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.w3tc' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-w3-total-cache-header-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set this header to assist in identifying optimized files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.compression' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.compression' ); ?> </label>
<?php $this->checkbox( 'browsercache.cssjs.compression' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.compression' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enable-http-gzip-compression-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.brotli', ! function_exists( 'brotli_compress' ) ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.brotli' ); ?> </label>
<?php $this->checkbox( 'browsercache.cssjs.brotli', ! function_exists( 'brotli_compress' ) ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.brotli' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enable-http-brotli-compression-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.replace' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.replace' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#prevent-caching-of-objects-after-settings-change-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Whenever settings are changed, a new query string will be generated and appended to objects allowing the new policy to be applied.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.querystring' ); ?> <?php esc_html_e( 'Remove query strings from static resources', 'w3-total-cache' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#remove-query-strings-from-static-resources-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description">
<?php
echo wp_kses(
@ -486,6 +527,7 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.cssjs.nocookies' ); ?> <?php Util_Ui::e_config_label( 'browsercache.cssjs.nocookies' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#disable-cookies-for-static-files-cssjs' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Removes Set-Cookie header for responses.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -524,18 +566,21 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.html.last_modified' ); ?> <?php Util_Ui::e_config_label( 'browsercache.html.last_modified' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-last-modified-header-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the Last-Modified header to enable 304 Not Modified response.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.html.expires' ); ?> <?php Util_Ui::e_config_label( 'browsercache.html.expires' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-expires-header-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the expires header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th style="width: 250px;">
<label for="browsercache_html_lifetime"><?php Util_Ui::e_config_label( 'browsercache.html.lifetime' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#expires-header-lifetime-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<input id="browsercache_html_lifetime" type="text" name="browsercache__html__lifetime"
@ -547,12 +592,14 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.html.cache.control' ); ?> <?php Util_Ui::e_config_label( 'browsercache.html.cache.control' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-cache-control-header-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set pragma and cache-control headers to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th>
<label for="browsercache_html_cache_policy"><?php Util_Ui::e_config_label( 'browsercache.html.cache.policy' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#cache-control-policy-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<select id="browsercache_html_cache_policy" name="browsercache__html__cache__policy"
@ -576,24 +623,28 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.html.etag' ); ?> <?php Util_Ui::e_config_label( 'browsercache.html.etag' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-entity-tag-etag-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the ETag header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.html.w3tc' ); ?> <?php Util_Ui::e_config_label( 'browsercache.html.w3tc' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-w3-total-cache-header-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set this header to assist in identifying optimized files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.html.compression' ); ?> <?php Util_Ui::e_config_label( 'browsercache.html.compression' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enablehttpgzip-compression-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.html.brotli', ! function_exists( 'brotli_compress' ) ); ?> <?php Util_Ui::e_config_label( 'browsercache.html.brotli' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enablehttpbrotli-compression-htmlxml' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
@ -606,18 +657,21 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.last_modified' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.last_modified' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-last-modified-header-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the Last-Modified header to enable 304 Not Modified response.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.expires' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.expires' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-expires-header-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the expires header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th style="width: 250px;">
<label for="browsercache_other_lifetime"><?php Util_Ui::e_config_label( 'browsercache.other.lifetime' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#expires-header-lifetime-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<input id="browsercache_other_lifetime" type="text"
@ -628,12 +682,14 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.cache.control' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.cache.control' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-cache-control-header-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set pragma and cache-control headers to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th>
<label for="browsercache_other_cache_policy"><?php Util_Ui::e_config_label( 'browsercache.other.cache.policy' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#cache-control-policy-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
</th>
<td>
<select id="browsercache_other_cache_policy"
@ -658,36 +714,42 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.etag' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.etag' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-entity-tag-etag-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set the ETag header to encourage browser caching of files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.w3tc' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.w3tc' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#set-w3-total-cache-header-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Set this header to assist in identifying optimized files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.compression' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.compression' ); ?>
<?php $this->checkbox( 'browsercache.other.compression' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.compression' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enablehttpgzip-compression-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.brotli', ! function_exists( 'brotli_compress' ) ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.brotli' ); ?>
<?php $this->checkbox( 'browsercache.other.brotli', ! function_exists( 'brotli_compress' ) ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.brotli' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#enablehttpbrotli-compression-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Reduce the download time for text-based files.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.replace' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.replace' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#prevent-caching-of-objects-after-settings-change-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Whenever settings are changed, a new query string will be generated and appended to objects allowing the new policy to be applied.', 'w3-total-cache' ); ?></p>
</th>
</tr>
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.querystring' ); ?> <?php esc_html_e( 'Remove query strings from static resources', 'w3-total-cache' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#remove-query-strings-from-static-resources-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description">
<?php
echo wp_kses(
@ -713,6 +775,7 @@ $security_session_values = array(
<tr>
<th colspan="2">
<?php $this->checkbox( 'browsercache.other.nocookies' ); ?> <?php Util_Ui::e_config_label( 'browsercache.other.nocookies' ); ?></label>
<a class="w3tc-control-after" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache#disable-cookies-for-static-files-media' ); ?>"><?php esc_html_e( 'Learn more', 'w3-total-cache' ); ?><span class="dashicons dashicons-external"></span></a>
<p class="description"><?php esc_html_e( 'Removes Set-Cookie header for responses.', 'w3-total-cache' ); ?></p>
</th>
</tr>

View File

@ -87,6 +87,12 @@ require W3TC_INC_DIR . '/options/common/header.php';
'acronym' => array(
'title' => array(),
),
'input' => array(
'class' => array(),
'id' => array(),
'type' => array(),
'value' => array(),
),
)
);
?>
@ -97,8 +103,8 @@ require W3TC_INC_DIR . '/options/common/header.php';
<p>
<?php
$cdn_purge_button = $can_purge ?
'<input id="cdn_purge" class="button {nonce: ' . esc_attr( wp_create_nonce( 'w3tc' ) ) .
'}" type="button" value="Purge" /> objects from the <acronym title="Content Delivery Network">CDN</acronym>' :
'<input id="cdn_purge" class="button {nonce: \'' . esc_attr( wp_create_nonce( 'w3tc' ) ) .
'\'}" type="button" value="Purge" /> objects from the <acronym title="Content Delivery Network">CDN</acronym>' :
'';
$cdn_mirror_purge_button = $cdn_mirror_purge_all ?
( $can_purge ? ' or ' : '' ) . '<input class="button" type="submit" name="w3tc_flush_cdn" value="purge CDN completely" />' :

View File

@ -73,8 +73,14 @@ do_action( 'w3tc-dashboard-footer' );
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/delay-scripts-tool/' ); ?>" alt="<?php esc_attr_e( 'Delay Scripts', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Delay Scripts', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/preload-requests/' ); ?>" alt="<?php esc_attr_e( 'Preload Requests', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Preload Requests', 'w3-total-cache' ); ?>
</a>
</div>
<div class="w3tc-footer-inner-column-50">
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/remove-cssjs/' ); ?>" alt="<?php esc_attr_e( 'Remove CSS/JS', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Remove CSS/JS', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-lazy-loading-for-your-wordpress-website-with-w3-total-cache/' ); ?>" alt="<?php esc_attr_e( 'Lazy Load Google Maps', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Lazy Load Google Maps', 'w3-total-cache' ); ?>
</a>

View File

@ -5,42 +5,7 @@ if ( ! defined( 'W3TC' ) ) {
die();
}
/*
* Display the header for our dashboard.
*
* If we're on the pro version, we'll show the standard W3TC logo and a message stating the user is
* on pro. As of 0.14.3, the free version will instead show a really, really nice banner. Really terrific.
* Just fantasic. Other banners, not so good. Everyone agrees, believe me.
*/
if ( Util_Environment::is_w3tc_pro( Dispatcher::config() ) ) {
require W3TC_INC_DIR . '/options/common/header.php';
echo wp_kses(
sprintf(
// translators: 1 opening HTML p tag, 2 HTML span tag indicating plugin enabled/disabled,
// translators: 3 HTML strong tag indicating W3TC version, 4 closing HTML p tag.
__(
'%1$sThe plugin is currently %2$s in %3$s mode.%4$s',
'w3-total-cache'
),
'<p>',
'<span class="w3tc-' . ( $enabled ? 'enabled' : 'disabled' ) . '">' . ( $enabled ? esc_html__( 'enabled', 'w3-total-cache' ) : esc_html__( 'disabled', 'w3-total-cache' ) ) . '</span>',
'<strong>' . Util_Environment::w3tc_edition( $this->_config ) . '</strong>',
'</p>'
),
array(
'p' => array(),
'span' => array(
'class' => array(),
),
'strong' => array(),
)
);
} else {
// When header.php is not included (above), we need to do our head action and open the wrap.
do_action( 'w3tc-dashboard-head' );
echo '<div class="wrap" id="w3tc">';
}
require W3TC_INC_DIR . '/options/common/header.php';
?>
<form id="w3tc_dashboard" action="admin.php?page=<?php echo esc_attr( $this->_page ); ?>" method="post">
@ -51,6 +16,7 @@ if ( Util_Environment::is_w3tc_pro( Dispatcher::config() ) ) {
</div>
</div>
</form>
<form id="w3tc_dashboard" action="admin.php?page=<?php echo esc_attr( $this->_page ); ?>" method="post">
<?php
echo wp_kses(
@ -66,42 +32,13 @@ if ( Util_Environment::is_w3tc_pro( Dispatcher::config() ) ) {
?>
<div id="w3tc-dashboard-widgets" class="clearfix widefat metabox-holder">
<?php $screen = get_current_screen(); ?>
<div id="postbox-container-left">
<div id="postbox-container">
<div class="content">
<div id="dashboard-text" style="display:inline-block;">
<h1><?php esc_html_e( 'Dashboard', 'w3-total-cache' ); ?></h1>
<p>
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag.
__(
'Thanks for choosing W3TC as your Web Performance Optimization (%1$sWPO%2$s) framework!',
'w3-total-cache'
),
'<acronym title="' . esc_attr__( 'Web Performance Optimization', 'w3-total-cache' ) . '">',
'</acronym>'
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
</p>
</div>
<div id="widgets-container">
<?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
</div>
<div class="widgets-container">
<?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
</div>
</div>
</div>
<div id="postbox-container-right">
<div id='postbox-container-3' class='postbox-container' style="width: 100%;">
<?php do_meta_boxes( $screen->id, 'side', '' ); ?>
</div>
</div>
<div style="clear:both"></div>
<?php
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );

View File

@ -25,7 +25,7 @@ if ( ! defined( 'W3TC' ) ) {
<div class="tablenav top">
<?php if ( ! $config->is_sealed( 'extensions.active' ) ) : ?>
<?php if ( ! $this->_config->is_sealed( 'extensions.active' ) ) : ?>
<div class="alignleft actions">
<select name="action">
<option value="-1" selected="selected"><?php esc_html_e( 'Bulk Actions', 'w3-total-cache' ); ?></option>
@ -84,7 +84,7 @@ if ( ! defined( 'W3TC' ) ) {
do_action( "w3tc_extension_before_row-{$extension}" );
?>
<tr id="<?php echo esc_attr( $extension ); ?>" class="<?php echo $config->is_extension_active( $extension ) ? 'active' : 'inactive'; ?>">
<tr id="<?php echo esc_attr( $extension ); ?>" class="<?php echo $this->_config->is_extension_active( $extension ) ? 'active' : 'inactive'; ?>">
<th scope="row" class="check-column">
<label class="screen-reader-text" for="checkbox_<?php echo esc_attr( $cb_id ); ?>"><?php echo esc_html( sprintf( /* translators: 1 label for Extension select/deselect checkobox */ __( 'Select %1$s', 'w3-total-cache' ), $meta['name'] ) ); ?></label>
<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $extension ); ?>" id="checkbox_<?php echo esc_attr( $cb_id ); ?>" class="w3tc_extensions_input_active" <?php disabled( ! $meta['enabled'] ); ?>>
@ -93,7 +93,7 @@ if ( ! defined( 'W3TC' ) ) {
<strong><?php echo esc_html( $meta['name'] ); ?></strong>
<div class="row-actions-visible">
<?php
if ( $config->is_extension_active( $extension ) ) :
if ( $this->_config->is_extension_active( $extension ) ) :
$extra_links = array();
if ( isset( $meta['settings_exists'] ) && $meta['settings_exists'] ) {
@ -125,7 +125,7 @@ if ( ! defined( 'W3TC' ) ) {
<span class="0"></span>
<?php if ( ! $config->is_sealed( 'extensions.active' ) ) : ?>
<?php if ( ! $this->_config->is_sealed( 'extensions.active' ) ) : ?>
<?php echo $links ? ' | ' : ''; ?>
<span class="deactivate">
<a href="<?php echo esc_url( wp_nonce_url( Util_Ui::admin_url( sprintf( 'admin.php?page=w3tc_extensions&action=deactivate&extension=%s&amp;extension_status=%s&amp;paged=%d', $extension, $extension_status, $page ) ), 'w3tc' ) ); ?>" title="<?php esc_attr_e( 'Deactivate this extension', 'w3-total-cache' ); ?> ">
@ -136,7 +136,7 @@ if ( ! defined( 'W3TC' ) ) {
<?php else : ?>
<span class="activate">
<?php if ( $meta['enabled'] ) : ?>
<?php if ( ! $config->is_sealed( 'extensions.active' ) ) : ?>
<?php if ( ! $this->_config->is_sealed( 'extensions.active' ) ) : ?>
<a href="<?php echo esc_url( wp_nonce_url( Util_Ui::admin_url( sprintf( 'admin.php?page=w3tc_extensions&action=activate&extension=%s&amp;extension_status=%s&amp;paged=%d', $extension, $extension_status, $page ) ), 'w3tc' ) ); ?>" title="<?php esc_attr_e( 'Activate this extension', 'w3-total-cache' ); ?> ">
<?php esc_html_e( 'Activate' ); ?>
</a>
@ -183,7 +183,7 @@ if ( ! defined( 'W3TC' ) ) {
</p>
</div>
<div class="<?php echo $config->is_extension_active( $extension ) ? 'active' : 'inactive'; ?> second plugin-version-author-uri">
<div class="<?php echo $this->_config->is_extension_active( $extension ) ? 'active' : 'inactive'; ?> second plugin-version-author-uri">
<?php
echo esc_html(
sprintf(
@ -230,7 +230,7 @@ if ( ! defined( 'W3TC' ) ) {
</table>
<div class="tablenav bottom">
<?php if ( ! $config->is_sealed( 'extensions.active' ) ) : ?>
<?php if ( ! $this->_config->is_sealed( 'extensions.active' ) ) : ?>
<div class="alignleft actions">
<select name="action2">
<option value="-1" selected="selected"><?php esc_html_e( 'Bulk Actions', 'w3-total-cache' ); ?></option>

View File

@ -1172,16 +1172,6 @@ require W3TC_INC_DIR . '/options/common/header.php';
</tr>
<?php
}
Util_Ui::config_item(
array(
'key' => 'widget.pagespeed.enabled',
'control' => 'checkbox',
'checkbox_label' => __( 'Enable Google PageSpeed dashboard widget', 'w3-total-cache' ),
'description' => __( 'Display Google PageSpeed results on the WordPress dashboard.', 'w3-total-cache' ),
'label_class' => 'w3tc_single_column',
)
);
?>
</table>

View File

@ -305,7 +305,7 @@ if ( ! defined( 'W3TC' ) ) {
</tr>
<tr>
<th colspan="2">
<?php Util_Ui::e_config_label( 'pgcache.purge.feed.types' ); ?><br />
<label for="pgcache_purge_feed_types"><?php Util_Ui::e_config_label( 'pgcache.purge.feed.types' ); ?></label><br />
<input type="hidden" name="pgcache__purge__feed__types" value="" />
<?php foreach ( $feeds as $feed ) : ?>
<label>
@ -498,12 +498,14 @@ if ( ! defined( 'W3TC' ) ) {
</tr>
<?php endif; ?>
<tr>
<th><label for="pgcache_reject_request_head"><?php esc_html_e( 'Reject HEAD requests:', 'w3-total-cache' ); ?></label></th>
<th><?php esc_html_e( 'Reject HEAD requests:', 'w3-total-cache' ); ?></th>
<td>
<?php if ( 'file_generic' === $this->_config->get_string( 'pgcache.engine' ) ) : ?>
<input id="pgcache_reject_request_head" type="checkbox" name="pgcache__reject__request_head" value="1" disabled="disabled" /> <?php Util_Ui::e_config_label( 'pgcache.reject.request_head' ); ?>
<input id="pgcache_reject_request_head" type="checkbox" name="pgcache__reject__request_head" value="1" disabled="disabled" />
<label for="pgcache_reject_request_head"><?php Util_Ui::e_config_label( 'pgcache.reject.request_head' ); ?></label>
<?php else : ?>
<?php $this->checkbox( 'pgcache.reject.request_head', false, '', false ); ?><?php Util_Ui::e_config_label( 'pgcache.reject.request_head' ); ?>
<?php $this->checkbox( 'pgcache.reject.request_head', false, '', false ); ?>
<?php Util_Ui::e_config_label( 'pgcache.reject.request_head' ); ?></label>
<?php endif; ?>
<p class="description">
<?php
@ -753,7 +755,7 @@ if ( ! defined( 'W3TC' ) ) {
</tr>
<?php if ( 'file_generic' === $this->_config->get_string( 'pgcache.engine' ) ) : ?>
<tr>
<th><label><?php Util_Ui::e_config_label( 'pgcache.cache.nginx_handle_xml' ); ?></label></th>
<th><?php Util_Ui::e_config_label( 'pgcache.cache.nginx_handle_xml' ); ?></th>
<td>
<?php $this->checkbox( 'pgcache.cache.nginx_handle_xml' ); ?> <?php Util_Ui::e_config_label( 'pgcache.cache.nginx_handle_xml' ); ?></label>
<p class="description">