Added HTML::span method.
This commit is contained in:
parent
79482dece5
commit
7ca5a2359a
|
@ -35,6 +35,18 @@ public static function style($url, $media = 'all')
|
|||
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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue