<?php namespace W3TC; if (!defined('W3TC')) { die; } $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 /> <?php
Util_Ui::e_config_label('browsercache.other.replace'); ?> </label> <br /><span class="description"><?php _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'); ?> </span> </th> </tr> <tr> <th colspan="2"> <?php $this->checkbox('browsercache.other.nocookies'); ?> <?php Util_Ui::e_config_label('browsercache.other.nocookies'); ?> </label> <br /><span class="description"><?php _e('Removes Set-Cookie header for responses.', 'w3-total-cache'); ?> </span> </th> </tr> </table> <?php Util_Ui::button_config_save('browsercache_media'); ?> <?php Util_Ui::postbox_footer();
</td> </tr> <?php if (Util_Environment::is_nginx() && $this->_config->get_string('pgcache.engine') == 'file_generic') { ?> <tr> <th><label><?php Util_Ui::e_config_label('pgcache.cache.nginx_handle_xml'); ?> </label></th> <td> <?php $this->checkbox('pgcache.cache.nginx_handle_xml', true); ?> <?php Util_Ui::e_config_label('pgcache.cache.nginx_handle_xml'); ?> </label><br /> <span class="description"><?php _e('Return correct Content-Type header for XML files. Slows down cache engine.', 'w3-total-cache'); ?> </span> </td> </tr> <?php } ?> </table> <?php Util_Ui::button_config_save('pagecache_advanced');
<?php Util_Ui::sealing_disabled('cdn.'); ?> rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('cdn.reject.ua'))); ?> </textarea><br /> <span class="description"><?php _e('Specify user agents that should not access files hosted with the <acronym title="Content Delivery Network">CDN</acronym>.', 'w3-total-cache'); ?> </span> </td> </tr> <tr> <th><label for="cdn_reject_files"><?php Util_Ui::e_config_label('cdn.reject.files'); ?> </label></th> <td> <textarea id="cdn_reject_files" name="cdn__reject__files" <?php Util_Ui::sealing_disabled('cdn.'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('cdn.reject.files'))); ?> </textarea><br /> <span class="description"><?php _e('Specify the path of files that should not use the <acronym title="Content Delivery Network">CDN</acronym>.', 'w3-total-cache'); ?> </span>
cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('minify.reject.ua'))); ?> </textarea><br /> <span class="description"><?php _e('Specify user agents that will never receive minified content.', 'w3-total-cache'); ?> </span> </td> </tr> <?php if ($auto) { ?> <tr> <th><label for="minify_cache_files"><?php Util_Ui::e_config_label('minify.cache.files'); ?> </label></th> <td> <textarea id="minify_cache_files" name="minify__cache__files" <?php Util_Ui::sealing_disabled('minify.'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('minify.cache.files'))); ?> </textarea><br /> <span class="description"><?php _e('Specify external files/libraries that should be combined.', 'w3-total-cache'); ?> </span>
<?php namespace W3TC; if (!defined('W3TC')) { die; } $this->checkbox('minify.html.strip.crlf', false, 'html_'); ?> <?php Util_Ui::e_config_label('minify.html.strip.crlf'); ?> </label><br /> <?php
<?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 /> <?php
<br /><span class="description"><?php _e('Groups that should not be cached.', 'w3-total-cache'); ?> </span> </td> </tr> <?php if ($this->_config->get_boolean('cluster.messagebus.enabled')) { ?> <tr> <th colspan="2"> <?php $this->checkbox('objectcache.purge.all'); ?> <?php Util_Ui::e_config_label('objectcache.purge.all'); ?> </label> <br /><span class="description"><?php _e('Enabling this option will increase load on server on certain actions but will guarantee that the Object Cache is always clean and contains latest changes. <em>Enable if you are experiencing issues with options displaying wrong value/state (checkboxes etc).</em>', 'w3-total-cache'); ?> </span> </th> </tr> <?php } ?> </table>
<?php namespace W3TC; if (!defined('W3TC')) { die; } $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 /> <?php
<?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> <?php
<?php Util_Ui::sealing_disabled('dbcache.'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('dbcache.reject.sql'))); ?> </textarea><br /> <span class="description"><?php _e('Do not cache queries that contain these terms. Any entered prefix (set in wp-config.php) will be replaced with current database prefix (default: wp_). Query stems can be identified using debug mode.', 'w3-total-cache'); ?> </span> </td> </tr> <tr> <th><label for="dbcache_reject_words"><?php Util_Ui::e_config_label('dbcache.reject.words'); ?> </label></th> <td> <textarea id="dbcache_reject_words" name="dbcache__reject__words" <?php Util_Ui::sealing_disabled('dbcache.'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('dbcache.reject.words'))); ?> </textarea><br /> <span class="description"><?php _e('Do not cache queries that contain these words or regular expressions.', 'w3-total-cache'); ?> </span>
<tr> <th> </th> <td> <input class="minifier_test js_enabled button {type: 'ccjs', nonce: '<?php echo wp_create_nonce('w3tc'); ?> '}" type="button" value="<?php _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
" <?php selected($case_properties, $case_properties_key); ?> ><?php echo $case_properties_name; ?> </option> <?php } ?> </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
<label><input id="cdn_import_library_redirect_cdn" type="checkbox" /> <?php _e('Create a list of redirects to <acronym title="Content Delivery Network">CDN</acronym> (hostname specified in hostname field #1.)', 'w3-total-cache'); ?> </label> </td> </tr> <tr> <td colspan="2"> <?php $config_state = Dispatcher::config_state(); ?> <label><input id="cdn_import_external" type="checkbox" name="cdn.import.external" <?php checked($config_state->get_boolean('cdn.import.external'), true); ?> /> <?php Util_Ui::e_config_label('cdn.import.external'); ?> </label> </td> </tr> </table> <p> <input id="cdn_import_library_start" class="button-primary" type="button" value="<?php _e('Start', 'w3-total-cache'); ?> "<?php if (!$total) { ?> disabled="disabled"<?php }
namespace W3TC; if (!defined('W3TC')) { die; } $is_pro = Util_Environment::is_w3tc_pro($this->_config); $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 $this->checkbox('minify.css.embed', !$is_pro, 'csse_', true, $is_pro ? null : false); ?> Eliminate render-blocking CSS by moving it to HTML body</label> <?php if (!$is_pro) { echo ' (Available after <a href="#" class="button-buy-plugin">upgrade</a>)'; } ?> <br /> <?php
</label><br /> <?php $this->checkbox_debug('varnish.debug'); ?> <?php Util_Ui::e_config_label('varnish.debug'); ?> </label><br /> <?php if (Util_Environment::is_w3tc_enterprise()) { ?> <?php $this->checkbox_debug('cluster.messagebus.debug'); ?> <?php Util_Ui::e_config_label('cluster.messagebus.debug'); ?> </label><br /> <?php } ?> <span class="description"><?php _e('If selected, detailed caching information will be appear at the end of each page in a <acronym title="Hypertext Markup Language">HTML</acronym> comment. View a page\'s source code to review.', 'w3-total-cache'); ?> </span> </td> </tr> </table> <?php Util_Ui::button_config_save('general_debug');
<tr> <th> </th> <td> <input class="minifier_test button js_enabled {type: 'yuijs', nonce: '<?php echo wp_create_nonce('w3tc'); ?> '}" type="button" value="<?php _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 _e('symbols (set to 0 to disable)', 'w3-total-cache'); ?> </td> </tr>
foreach ($css_levels as $_css_level) { ?> <option value="<?php echo esc_attr($_css_level); ?> " <?php selected($css_level, $_css_level); ?> ><?php echo $_css_level; ?> </option> <?php } ?> </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 /> <?php