public static function label($args = array()) { $text = isset($args['text']) ? $args['text'] : ''; if (empty($text)) { return; } $html = new SB_HTML('label'); $atts = array('for' => isset($args['for']) ? $args['for'] : '', 'text' => isset($args['text']) ? $args['text'] : ''); $html->set_attribute_array($atts); $attributes = isset($args['attributes']) ? $args['attributes'] : array(); $html = self::set_attributes($html, $attributes); echo $html->build(); }