change form and html class to use html5 style elements.
This commit is contained in:
parent
4e4ca091d9
commit
a9029ddfe9
|
@ -317,7 +317,7 @@ private static function input($type, $name, $value = null, $attributes = array()
|
||||||
$attributes['value'] = $value;
|
$attributes['value'] = $value;
|
||||||
$attributes['id'] = static::id($name, $attributes);
|
$attributes['id'] = static::id($name, $attributes);
|
||||||
|
|
||||||
return '<input'.HTML::attributes($attributes).' />'.PHP_EOL;
|
return '<input'.HTML::attributes($attributes).'>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,7 +32,7 @@ public static function script($url)
|
||||||
*/
|
*/
|
||||||
public static function style($url, $media = 'all')
|
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;
|
return '<link href="'.static::entities(URL::to_asset($url)).'" rel="stylesheet" type="text/css" media="'.$media.'">'.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -146,7 +146,7 @@ public static function email($email)
|
||||||
public static function image($url, $alt = '', $attributes = array())
|
public static function image($url, $alt = '', $attributes = array())
|
||||||
{
|
{
|
||||||
$attributes['alt'] = static::entities($alt);
|
$attributes['alt'] = static::entities($alt);
|
||||||
return '<img src="'.static::entities(URL::to_asset($url)).'"'.static::attributes($attributes).' />';
|
return '<img src="'.static::entities(URL::to_asset($url)).'"'.static::attributes($attributes).'>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -157,7 +157,7 @@ public static function image($url, $alt = '', $attributes = array())
|
||||||
*/
|
*/
|
||||||
public static function breaks($count = 1)
|
public static function breaks($count = 1)
|
||||||
{
|
{
|
||||||
return str_repeat('<br />', $count);
|
return str_repeat('<br>', $count);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue