Commit 64704cf5 authored by Taylor Otwell's avatar Taylor Otwell

Added comments to HTML class.

parent 181237e9
......@@ -146,6 +146,7 @@ class HTML {
public static function image($url, $alt = '', $attributes = array())
{
$attributes['alt'] = static::entities($alt);
return '<img src="'.static::entities(URL::to_asset($url)).'"'.static::attributes($attributes).'>';
}
......@@ -205,6 +206,11 @@ class HTML {
foreach ($attributes as $key => $value)
{
// -------------------------------------------------------
// If the attribute key is numeric, assign the attribute
// value to the key. This allows for attributes such as
// "required", "checked", etc.
// -------------------------------------------------------
if (is_numeric($key))
{
$key = $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment