Change favicon method to add alternater fav
This commit is contained in:
parent
116bacf322
commit
1c3670c180
1 changed files with 3 additions and 2 deletions
|
@ -234,11 +234,12 @@ class Theme {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function favicon($file='favicon.png', $typeIcon='image/png')
|
public static function favicon($file='favicon.png', $typeIcon='image/png', $alternate=false)
|
||||||
{
|
{
|
||||||
return '<link rel="icon" href="'.DOMAIN_THEME.$file.'" type="'.$typeIcon.'">'.PHP_EOL;
|
return '<link rel="'.($alternate ? 'alternate ':'').'icon" href="'.DOMAIN_THEME.$file.'" type="'.$typeIcon.'">'.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function keywords($keywords)
|
public static function keywords($keywords)
|
||||||
{
|
{
|
||||||
if (is_array($keywords)) {
|
if (is_array($keywords)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue