|
@@ -35,6 +35,18 @@ class HTML {
|
|
|
return '<link href="'.static::entities(URL::to_asset($url)).'" rel="stylesheet" type="text/css" media="'.$media.'">'.PHP_EOL;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Generate a HTML span.
|
|
|
+ *
|
|
|
+ * @param string $value
|
|
|
+ * @param array $attributes
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public static function span($value, $attributes = array())
|
|
|
+ {
|
|
|
+ return '<span'.static::attributes($attributes).'>'.static::entities($value).'</span>';
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Generate a HTML link.
|
|
|
*
|