function html_attr_add_class($attributes, $class) { $attr = new HTML_Attributes($attributes); return (string) $attr->addClass($class); }