public static function attributes($attributes)
{
$html = array();
foreach ((array) $attributes as $key => $value) {
$element = self::attributeElement($key, $value);
if (!is_null($element)) {
$html[] = $element;
}
}
return count($html) > 0 ? ' ' . implode(' ', $html) : '';
}