<?php

if (!defined('W3TC')) {
    die();
}

$css_levels = array(
    '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 _e('Remove unnecessary backslashes', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.compress_colors', false, 'css_') ?> <?php _e('Compress colors', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.compress_font-weight', false, 'css_') ?> <?php _e('Compress font-weight', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.lowercase_s', false, 'css_') ?> <?php _e('Lowercase selectors', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.remove_last_;', false, 'css_') ?> <?php _e('Remove last ;', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.sort_properties', false, 'css_') ?> <?php _e('Sort Properties', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.sort_selectors', false, 'css_') ?> <?php _e('Sort Selectors (caution)', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.discard_invalid_properties', false, 'css_') ?> <?php _e('Discard invalid properties', 'w3-total-cache'); ?></label>
<select class="css_enabled" name="minify.csstidy.options.css_level" 
    <?php $this->sealing_disabled('minify') ?>>
    <?php foreach($css_levels as $_css_level): ?>
        <option value="<?php echo $_css_level; ?>"<?php selected($css_level, $_css_level); ?>><?php echo $_css_level; ?></option>
    <?php endforeach; ?>
</select><br />
<?php $this->checkbox('minify.csstidy.options.preserve_css', false, 'css_') ?> <?php _e('Preserve CSS', 'w3-total-cache'); ?></label><br />
<?php $this->checkbox('minify.csstidy.options.timestamp', false, 'css_') ?> <?php _e('Add timestamp', 'w3-total-cache'); ?></label><br />
