Added HTML::link_to_secure_asset method.
This commit is contained in:
parent
9b46956fc9
commit
64351b2268
|
@ -71,9 +71,22 @@ public static function link_to_secure($url, $title, $attributes = array())
|
|||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
public static function link_to_asset($url, $title, $attributes = array())
|
||||
public static function link_to_asset($url, $title, $attributes = array(), $https = false)
|
||||
{
|
||||
return static::link($url, $title, $attributes, false, true);
|
||||
return static::link($url, $title, $attributes, $https, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate an HTTPS HTML link to an asset.
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $title
|
||||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
public static function link_to_secure_asset($url, $title, $attributes = array())
|
||||
{
|
||||
return static::link_to_asset($url, $title, $attributes, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue