protected function getAttributes($attributes) { $result = ''; if (count($attributes)) { foreach ($attributes as $name => $value) { $result .= \arc\html::attribute($name, $value); } } return $result; }