?> <code><?php _e('Not installed', 'w3-total-cache'); ?> </code> <?php } ?> </li> <li> <?php _e('HTML Tidy extension:', 'w3-total-cache'); ?> <?php if (Util_Installed::tidy()) { ?> <code><?php _e('Installed', 'w3-total-cache'); ?> </code> <?php } else { ?> <code><?php _e('Not installed', 'w3-total-cache'); ?> </code> <?php } ?>
<?php Util_Ui::postbox_header(__('Minify', 'w3-total-cache'), '', 'minify'); Util_Ui::config_overloading_button(array('key' => 'minify.configuration_overloaded')); ?> <p><?php _e('Reduce load time by decreasing the size and number of <acronym title="Cascading Style Sheet">CSS</acronym> and <acronym title="JavaScript">JS</acronym> files. Automatically remove unncessary data from <acronym title="Cascading Style Sheet">CSS</acronym>, <acronym title="JavaScript">JS</acronym>, feed, page and post <acronym title="Hypertext Markup Language">HTML</acronym>.', 'w3-total-cache'); ?> </p> <table class="form-table"> <?php Util_Ui::config_item(array('key' => 'minify.enabled', 'control' => 'checkbox', 'checkbox_label' => __('Enable', 'w3-total-cache'), 'description' => __('Minification can decrease file size of <acronym title="Hypertext Markup Language">HTML</acronym>, <acronym title="Cascading Style Sheet">CSS</acronym>, <acronym title="JavaScript">JS</acronym> and feeds respectively by ~10% on average.', 'w3-total-cache'))); Util_Ui::config_item(array('key' => 'minify.auto', 'value' => $this->_config->get_boolean('minify.auto') ? 1 : 0, 'control' => 'radiogroup', 'radiogroup_values' => array('1' => __('Auto', 'w3-total-cache'), '0' => __('Manual', 'w3-total-cache')), 'description' => __('Select manual mode to use fields on the minify settings tab to specify files to be minified, otherwise files will be minified automatically.', 'w3-total-cache'))); Util_Ui::config_item_engine(array('key' => 'minify.engine')); Util_Ui::config_item(array('key' => 'minify.html.engine', 'control' => 'selectbox', 'selectbox_values' => array('html' => __('Minify (default)', 'w3-total-cache'), 'htmltidy' => array('disabled' => !Util_Installed::tidy(), 'label' => __('HTML Tidy', 'w3-total-cache'))))); Util_Ui::config_item(array('key' => 'minify.js.engine', 'control' => 'selectbox', 'selectbox_values' => array('js' => __('JSMin (default)', 'w3-total-cache'), 'googleccjs' => __('Google Closure Compiler (Web Service)', 'w3-total-cache'), 'ccjs' => __('Google Closure Compiler (Local Java)', 'w3-total-cache'), 'jsminplus' => __('Narcissus', 'w3-total-cache'), 'yuijs' => __('YUI Compressor', 'w3-total-cache')))); Util_Ui::config_item(array('key' => 'minify.css.engine', 'control' => 'selectbox', 'selectbox_values' => array('css' => __('Minify (default)', 'w3-total-cache'), 'csstidy' => __('CSS Tidy', 'w3-total-cache'), 'cssmin' => __('YUI Compressor (PHP)', 'w3-total-cache'), 'yuicss' => __('YUI Compressor', 'w3-total-cache')))); ?> </table> <?php Util_Ui::button_config_save('general_minify', '<input type="submit" name="w3tc_flush_minify" value="' . __('Empty cache', 'w3-total-cache') . '" ' . ($minify_enabled ? '' : ' disabled="disabled" ') . ' class="button" />'); ?> <?php Util_Ui::postbox_footer(); ?> <?php do_action('w3tc_settings_general_boxarea_system_opcache');