initial version of pagination library.

This commit is contained in:
Taylor Otwell
2011-07-20 23:31:02 -05:00
parent 2b132512e8
commit abd269aa78
3 changed files with 252 additions and 1 deletions

View File

@@ -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 an HTML span tag.
*
* @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.
*