You are here

function csstidy::_load_template in Advanced CSS/JS Aggregation 6

Load a template

@access private @version 1.4

Parameters

string $template used by set_cfg to load a template via a configuration setting:

1 call to csstidy::_load_template()
csstidy::set_cfg in advagg_css_compress/csstidy/class.csstidy.inc
Set the value of a setting.

File

advagg_css_compress/csstidy/class.csstidy.inc, line 313

Class

csstidy
CSS Parser class

Code

function _load_template($template) {
  switch ($template) {
    case 'default':
      $this
        ->load_template('default');
      break;
    case 'highest':
      $this
        ->load_template('highest_compression');
      break;
    case 'high':
      $this
        ->load_template('high_compression');
      break;
    case 'low':
      $this
        ->load_template('low_compression');
      break;
    default:
      $this
        ->load_template($template);
      break;
  }
}