public function add_template_class($target, $classes)
{
if (!isset($this->settings['template_attributes'])) {
$this->settings['template_attributes'] = array();
}
if (!isset($this->settings['template_attributes'][$target])) {
$this->settings['template_attributes'][$target] = array();
}
if (!isset($this->settings['template_attributes'][$target]['class'])) {
$this->settings['template_attributes'][$target]['class'] = array();
}
$this->settings['template_attributes'][$target]['class'] = array_merge(Utils::single_array($this->settings['template_attributes'][$target]['class']), explode(' ', $classes));
return $this;
}