installed plugin W3 Total Cache version 2.3.2

This commit is contained in:
2023-06-05 11:23:16 +00:00
committed by Gitium
parent d9b3c97e40
commit 51ea2ff21c
2730 changed files with 334913 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<input type="hidden" name="minify__ccjs__options__formatting" value="" />
<label>
<input class="js_enabled" type="checkbox" name="minify__ccjs__options__formatting"
value="pretty_print"
<?php checked( $this->_config->get_string( 'minify.ccjs.options.formatting' ), 'pretty_print' ); ?>
<?php Util_Ui::sealing_disabled( 'minify.' ) ?> /> <?php Util_Ui::e_config_label( 'minify.ccjs.options.formatting' ) ?>
</label>
<br />

View File

@ -0,0 +1,73 @@
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$compilation_levels = array(
'WHITESPACE_ONLY' => __( 'Whitespace only', 'w3-total-cache' ),
'SIMPLE_OPTIMIZATIONS' => __( 'Simple optimizations', 'w3-total-cache' ),
'ADVANCED_OPTIMIZATIONS' => __( 'Advanced optimizations', 'w3-total-cache' ),
);
$c = $this->_config;
$compilation_level = $c->get_string( 'minify.ccjs.options.compilation_level' );
?>
<tr>
<th>
<label for="minify__ccjs__path__java">
<?php Util_Ui::e_config_label( 'minify.ccjs.path.java' ); ?>
</label>
</th>
<td>
<input id="minify__ccjs__path__java" class="js_enabled" type="text"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>
name="minify__ccjs__path__java"
value="<?php esc_attr_e( $c->get_string( 'minify.ccjs.path.java' ), 'w3-total-cache' ); ?>"
size="60" />
</td>
</tr>
<tr>
<th>
<label for="minify__ccjs__path__jar">
<?php Util_Ui::e_config_label( 'minify.ccjs.path.jar' ); ?>
</label>
</th>
<td>
<input id="minify__ccjs__path__jar" class="js_enabled" type="text"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>
name="minify__ccjs__path__jar"
value="<?php esc_attr_e( $c->get_string( 'minify.ccjs.path.jar' ), 'w3-total-cache' ); ?>"
size="60" />
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td>
<input class="minifier_test js_enabled button {type: 'ccjs', nonce: '<?php echo esc_attr( wp_create_nonce( 'w3tc' ) ); ?>'}"
type="button"
value="<?php esc_attr_e( 'Test Closure Compiler', 'w3-total-cache' ); ?>" />
<span class="minifier_test_status w3tc-status w3tc-process"></span>
</td>
</tr>
<tr>
<th>
<label for="minify_ccjs_options_compilation_level">
<?php Util_Ui::e_config_label( 'minify.ccjs.options.compilation_level' ); ?>
</label>
</th>
<td>
<select id="minify_ccjs_options_compilation_level" class="js_enabled"
name="minify__ccjs__options__compilation_level"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>>
<?php foreach ( $compilation_levels as $compilation_level_key => $compilation_level_name ): ?>
<option value="<?php echo esc_attr( $compilation_level_key ); ?>"
<?php selected( $compilation_level, $compilation_level_key ) ?>>
<?php esc_html_e( $compilation_level_name, 'w3-total-cache' ); ?>
</option>
<?php endforeach ?>
</select>
</td>
</tr>

View File

@ -0,0 +1,36 @@
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
$is_pro = Util_Environment::is_w3tc_pro( $this->_config );
?>
<?php $this->checkbox( 'minify.css.strip.comments', false, 'css_' ) ?> <?php Util_Ui::e_config_label( 'minify.css.strip.comments' ) ?></label><br />
<?php $this->checkbox( 'minify.css.strip.crlf', false, 'css_' ) ?> <?php Util_Ui::e_config_label( 'minify.css.strip.crlf' ) ?></label><br />
<?php
Util_Ui::config_item_pro( array(
'key' => 'minify.css.embed',
'control' => 'checkbox',
'checkbox_label' => __( 'Eliminate render-blocking <acronym title="Cascading Style Sheet">CSS</acronym> by moving it to <acronym title="Hypertext Transfer Protocol">HTTP</acronym> body', 'w3-total-cache' ),
'disabled' => ( $is_pro ? null : true ),
'label_class' => 'w3tc_no_trtd',
'excerpt' => __( 'Website visitors cannot navigate your website until a given page is ready - reduce the wait time with this feature.', 'w3-total-cache' ),
'description' => array(
__( 'Faster paint time is a key last step in lowering bounce rates even for repeat page views. Enable this feature to significantly enhance your websites user experience by reducing wait times and ensuring that users can interact with your website as quickly as possible.', 'w3-total-cache' ),
wp_kses(
sprintf(
// translators: 1 The opening anchor tag linking to our support page, 2 its closing tag.
__( 'Need help? Take a look at our %1$spremium support, customization and audit services%2$s.', 'w3-total-cache' ),
'<a href="' . esc_url( admin_url( 'admin.php?page=w3tc_support' ) ) . '">',
'</a>'
),
array( 'a' => array( 'href' => array() ) )
),
),
) );
?>
<br />

View File

@ -0,0 +1,36 @@
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$css_levels = array(
'CSS3.0',
'CSS2.1',
'CSS2.0',
'CSS1.0',
);
$css_level = $this->_config->get_string( 'minify.csstidy.options.css_level' );
?>
<?php $this->checkbox( 'minify.csstidy.options.remove_bslash', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.remove_bslash' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.compress_colors', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.compress_colors' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.compress_font-weight', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.compress_font-weight' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.lowercase_s', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.lowercase_s' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.remove_last_;', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.remove_last_;' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.remove_space_before_important', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.remove_space_before_important' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.sort_properties', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.sort_properties' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.sort_selectors', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.sort_selectors' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.discard_invalid_selectors', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.discard_invalid_selectors' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.discard_invalid_properties', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.discard_invalid_properties' ); ?></label>
<select class="css_enabled" name="minify__csstidy__options__css_level"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>>
<?php foreach ( $css_levels as $_css_level ) : ?>
<option value="<?php echo esc_attr( $_css_level ); ?>" <?php selected( $css_level, $_css_level ); ?>>
<?php echo esc_html( $_css_level ); ?>
</option>
<?php endforeach; ?>
</select><br />
<?php $this->checkbox( 'minify.csstidy.options.preserve_css', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.preserve_css' ); ?></label><br />
<?php $this->checkbox( 'minify.csstidy.options.timestamp', false, 'css_' ); ?> <?php Util_Ui::e_config_label( 'minify.csstidy.options.timestamp' ); ?></label><br />

View File

@ -0,0 +1,89 @@
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$csstidy_templates = array(
'highest_compression' => __( 'Highest (no readability, smallest size)', 'w3-total-cache' ),
'high_compression' => __( 'High (moderate readability, smaller size)', 'w3-total-cache' ),
'default' => __( 'Standard (balance between readability and size)', 'w3-total-cache' ),
'low_compression' => __( 'Low (higher readability)', 'w3-total-cache' ),
);
$optimise_shorthands_values = array(
0 => __( 'Don\'t optimise', 'w3-total-cache' ),
1 => __( 'Safe optimisations', 'w3-total-cache' ),
2 => __( 'Level II optimisations', 'w3-total-cache' ),
3 => __( 'All optimisations', 'w3-total-cache' ),
);
$case_properties_values = array(
0 => __( 'None', 'w3-total-cache' ),
1 => __( 'Lowercase', 'w3-total-cache' ),
2 => __( 'Uppercase', 'w3-total-cache' ),
);
$merge_selectors_values = array(
0 => __( 'Do not change anything', 'w3-total-cache' ),
1 => __( 'Only seperate selectors (split at ,)', 'w3-total-cache' ),
2 => __( 'Merge selectors with the same properties (fast)', 'w3-total-cache' ),
);
$csstidy_template = $this->_config->get_string( 'minify.csstidy.options.template' );
$optimise_shorthands = $this->_config->get_integer( 'minify.csstidy.options.optimise_shorthands' );
$case_properties = $this->_config->get_integer( 'minify.csstidy.options.case_properties' );
$merge_selectors = $this->_config->get_integer( 'minify.csstidy.options.merge_selectors' );
?>
<tr>
<th><label for="minify_csstidy_options_template"><?php Util_Ui::e_config_label( 'minify.csstidy.options.template' ); ?></label></th>
<td>
<select id="minify_csstidy_options_template" class="css_enabled" name="minify__csstidy__options__template"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>>
<?php foreach ( $csstidy_templates as $csstidy_template_key => $csstidy_template_name ) : ?>
<option value="<?php echo esc_attr( $csstidy_template_key ); ?>" <?php selected( $csstidy_template, $csstidy_template_key ); ?>>
<?php echo esc_html( $csstidy_template_name ); ?>
</option>
<?php endforeach; ?>
</select>
</td>
</tr>
<tr>
<th><label for="minify_csstidy_options_optimise_shorthands"><?php Util_Ui::e_config_label( 'minify.csstidy.options.optimise_shorthands' ); ?></label></th>
<td>
<select id="minify_csstidy_options_optimise_shorthands" class="css_enabled"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?> name="minify__csstidy__options__optimise_shorthands">
<?php foreach ( $optimise_shorthands_values as $optimise_shorthands_key => $optimise_shorthands_name ) : ?>
<option value="<?php echo esc_attr( $optimise_shorthands_key ); ?>" <?php selected( $optimise_shorthands, $optimise_shorthands_key ); ?>>
<?php echo esc_html( $optimise_shorthands_name ); ?>
</option>
<?php endforeach; ?>
</select>
</td>
</tr>
<tr>
<th><label for="minify_csstidy_options_case_properties"><?php Util_Ui::e_config_label( 'minify.csstidy.options.case_properties' ); ?></label></th>
<td>
<select id="minify_csstidy_options_case_properties" class="css_enabled"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?> name="minify__csstidy__options__case_properties">
<?php foreach ( $case_properties_values as $case_properties_key => $case_properties_name ) : ?>
<option value="<?php echo esc_attr( $case_properties_key ); ?>" <?php selected( $case_properties, $case_properties_key ); ?>>
<?php echo esc_html( $case_properties_name ); ?></option>
<?php endforeach; ?>
</select>
</td>
</tr>
<tr>
<th><label for="minify_csstidy_options_merge_selectors"><?php Util_Ui::e_config_label( 'minify.csstidy.options.merge_selectors' ); ?></label></th>
<td>
<select id="minify_csstidy_options_merge_selectors" class="css_enabled"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?> name="minify__csstidy__options__merge_selectors">
<?php foreach ( $merge_selectors_values as $merge_selectors_key => $merge_selectors_name ) : ?>
<option value="<?php echo esc_attr( $merge_selectors_key ); ?>" <?php selected( $merge_selectors, $merge_selectors_key ); ?>>
<?php echo esc_html( $merge_selectors_name ); ?>
</option>
<?php endforeach; ?>
</select>
</td>
</tr>

View File

@ -0,0 +1,48 @@
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$compilation_levels = array(
'WHITESPACE_ONLY' => __( 'Whitespace only', 'w3-total-cache' ),
'SIMPLE_OPTIMIZATIONS' => __( 'Simple optimizations', 'w3-total-cache' ),
'ADVANCED_OPTIMIZATIONS' => __( 'Advanced optimizations', 'w3-total-cache' ),
);
$compilation_level = $this->_config->get_string( 'minify.ccjs.options.compilation_level' );
?>
<tr>
<th>&nbsp;</th>
<td>
<input class="minifier_test js_enabled button {type: 'googleccjs', nonce: '<?php echo esc_attr( wp_create_nonce( 'w3tc' ) ); ?>'}"
type="button" value="<?php esc_attr_e( 'Test Closure Compiler', 'w3-total-cache' ); ?>" />
<span class="minifier_test_status w3tc-status w3tc-process"></span>
</td>
</tr>
<tr>
<th><label for="minify_ccjs_options_compilation_level"><?php Util_Ui::e_config_label( 'minify.ccjs.options.compilation_level' ); ?></label></th>
<td>
<select id="minify_ccjs_options_compilation_level" class="js_enabled" name="minify__ccjs__options__compilation_level"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>>
<?php foreach ( $compilation_levels as $compilation_level_key => $compilation_level_name ) : ?>
<option value="<?php echo esc_attr( $compilation_level_key ); ?>" <?php selected( $compilation_level, $compilation_level_key ); ?>>
<?php echo esc_html( $compilation_level_name ); ?>
</option>
<?php endforeach; ?>
</select>
</td>
</tr>
<tr>
<th></th>
<td>
<input type="hidden" name="minify__ccjs__options__formatting" value="" />
<label>
<input class="js_enabled" type="checkbox" name="minify__ccjs__options__formatting"
value="pretty_print"
<?php checked( $this->_config->get_string( 'minify.ccjs.options.formatting' ), 'pretty_print' ); ?>
<?php Util_Ui::sealing_disabled( 'minify.' ); ?> /> <?php Util_Ui::e_config_label( 'minify.ccjs.options.formatting' ); ?>
</label>
</td>
</tr>

View File

@ -0,0 +1,8 @@
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<?php $this->checkbox( 'minify.html.strip.crlf', false, 'html_' ) ?> <?php Util_Ui::e_config_label( 'minify.html.strip.crlf' ) ?></label><br />

View File

@ -0,0 +1,9 @@
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<?php $this->checkbox( 'minify.htmltidy.options.clean', false, 'html_' ) ?> <?php Util_Ui::e_config_label( 'minify.htmltidy.options.clean' ) ?></label><br />
<?php $this->checkbox( 'minify.htmltidy.options.hide-comments', false, 'html_' ) ?> <?php Util_Ui::e_config_label( 'minify.htmltidy.options.hide-comments' ) ?></label><br />

View File

@ -0,0 +1,14 @@
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<tr>
<th><label for="minify_htmltidy_options_wrap"><?php Util_Ui::e_config_label( 'minify.htmltidy.options.wrap' ) ?></label></th>
<td>
<input id="minify_htmltidy_options_wrap" class="html_enabled" type="text"
<?php Util_Ui::sealing_disabled( 'minify.' ) ?> name="minify__htmltidy__options__wrap" value="<?php echo esc_attr( $this->_config->get_integer( 'minify.htmltidy.options.wrap' ) ); ?>" size="8" style="text-align: right;" /> _e('symbols (set to 0 to disable)', 'w3-total-cache'); ?>
</td>
</tr>

View File

@ -0,0 +1,9 @@
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<?php $this->checkbox( 'minify.js.strip.comments', false, 'js_' ) ?> <?php Util_Ui::e_config_label( 'minify.js.strip.comments' ) ?></label><br />
<?php $this->checkbox( 'minify.js.strip.crlf', false, 'js_' ) ?> <?php Util_Ui::e_config_label( 'minify.js.strip.crlf' ) ?></label><br />

View File

@ -0,0 +1,55 @@
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$c = $this->_config;
?>
<tr>
<th>
<label for="minify__yuicss__path__java">
<?php Util_Ui::e_config_label( 'minify.yuicss.path.java' ); ?>
</label>
</th>
<td>
<input class="css_enabled" id="minify__yuicss__path__java" type="text"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>
name="minify__yuicss__path__java" value="<?php echo esc_attr( $c->get_string( 'minify.yuicss.path.java' ) ); ?>"
size="100" />
</td>
</tr>
<tr>
<th><label for="minify__yuicss__path__jar"><?php Util_Ui::e_config_label( 'minify.yuicss.path.jar' ); ?></label></th>
<td>
<input class="css_enabled" id="minify__yuicss__path__jar" type="text"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>
name="minify__yuicss__path__jar"
value="<?php echo esc_attr( $c->get_string( 'minify.yuicss.path.jar' ) ); ?>"
size="100" />
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td>
<input class="minifier_test button css_enabled {type: 'yuicss', nonce: '<?php echo esc_attr( wp_create_nonce( 'w3tc' ) ); ?>'}"
type="button" value="<?php esc_attr_e( 'Test YUI Compressor', 'w3-total-cache' ); ?>" />
<span class="minifier_test_status w3tc-status w3tc-process"></span>
</td>
</tr>
<tr>
<th>
<label for="minify_yuicss_options_line-break">
<?php Util_Ui::e_config_label( 'minify.yuicss.options.line-break' ); ?>
</label>
</th>
<td>
<input class="css_enabled" id="minify_yuicss_options_line-break"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?>
type="text" name="minify__yuicss__options__line-break"
value="<?php echo esc_attr( $c->get_integer( 'minify.yuicss.options.line-break' ) ); ?>"
size="8" style="text-align: right" /> symbols (set to 0 to disable)
</td>
</tr>

View File

@ -0,0 +1,10 @@
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<?php $this->checkbox( 'minify.yuijs.options.nomunge', false, 'js_' ) ?> <?php Util_Ui::e_config_label( 'minify.yuijs.options.nomunge' ) ?></label><br />
<?php $this->checkbox( 'minify.yuijs.options.preserve-semi', false, 'js_' ) ?> <?php Util_Ui::e_config_label( 'minify.yuijs.options.preserve-semi' ) ?></label><br />
<?php $this->checkbox( 'minify.yuijs.options.disable-optimizations', false, 'js_' ) ?> <?php Util_Ui::e_config_label( 'minify.yuijs.options.disable-optimizations' ) ?></label><br />

View File

@ -0,0 +1,42 @@
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
?>
<tr>
<th><label for="minify__yuijs__path__java"><?php esc_html_e( 'Path to JAVA executable:', 'w3-total-cache' ); ?></label></th>
<td>
<input id="minify__yuijs__path__java" class="js_enabled" type="text"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?> name="minify__yuijs__path__java"
value="<?php echo esc_attr( $this->_config->get_string( 'minify.yuijs.path.java' ) ); ?>"
size="100" />
</td>
</tr>
<tr>
<th><label for="minify__yuijs__path__jar"><?php esc_html_e( 'Path to JAR file:', 'w3-total-cache' ); ?></label></th>
<td>
<input id="minify__yuijs__path__jar" class="js_enabled" type="text"
<?php Util_Ui::sealing_disabled( 'minify.' ); ?> name="minify__yuijs__path__jar"
value="<?php echo esc_attr( $this->_config->get_string( 'minify.yuijs.path.jar' ) ); ?>"
size="100" />
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td>
<input class="minifier_test button js_enabled {type: 'yuijs', nonce: '<?php echo esc_attr( wp_create_nonce( 'w3tc' ) ); ?>'}"
type="button" value="<?php esc_attr_e( 'Test YUI Compressor', 'w3-total-cache' ); ?>" />
<span class="minifier_test_status w3tc-status w3tc-process"></span>
</td>
</tr>
<tr>
<th><label for="minify__yuijs__options__line-break"><?php Util_Ui::e_config_label( 'minify.yuijs.options.line-break' ); ?></label></th>
<td>
<input id="minify__yuijs__options__line-break" class="js_enabled"
type="text" <?php Util_Ui::sealing_disabled( 'minify.' ); ?>
name="minify__yuijs__options__line-break" value="<?php echo esc_attr( $this->_config->get_integer( 'minify.yuijs.options.line-break' ) ); ?>"
size="8" style="text-align: right;" /> <?php esc_html_e( 'symbols (set to 0 to disable)', 'w3-total-cache' ); ?>
</td>
</tr>