Change favicon method to add alternater fav

This commit is contained in:
jerrywham 2021-12-20 14:59:16 +00:00 committed by GitHub
parent 116bacf322
commit 1c3670c180
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{
if (is_array($keywords)) {