web: Domain-spezifische Favicons und App-Icons für alle drei Marken (R5.4)
Eigene Icon-Sets unter public/icons/{pressekonto,presseecho,businessportal24}
(SVG-Favicon + Touch-/App-Icons); ThemeHelper mappt das aktive Theme auf den
Icon-Ordner (Portal/Admin nutzt den pressekonto-Satz), alle Layout-Heads
binden Favicon + apple-touch-icon domain-abhängig ein.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
fcf83040db
commit
3d1bf38908
36 changed files with 84 additions and 14 deletions
|
|
@ -34,13 +34,39 @@ class ThemeHelper
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the favicon path based on the current theme
|
||||
* Map the current theme to its icon folder under public/icons.
|
||||
*
|
||||
* Das Portal-/Admin-Theme läuft auf pressekonto.test und nutzt daher
|
||||
* den pressekonto-Iconsatz.
|
||||
*/
|
||||
public static function getFaviconPath(): string
|
||||
public static function getIconFolder(): string
|
||||
{
|
||||
$theme = config('app.theme', 'portal');
|
||||
|
||||
return "img/favicons/{$theme}-favicon.ico";
|
||||
$folderMap = [
|
||||
'portal' => 'pressekonto',
|
||||
'pressekonto' => 'pressekonto',
|
||||
'presseecho' => 'presseecho',
|
||||
'businessportal24' => 'businessportal24',
|
||||
];
|
||||
|
||||
return $folderMap[$theme] ?? 'pressekonto';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the favicon (SVG) path based on the current theme.
|
||||
*/
|
||||
public static function getFaviconPath(): string
|
||||
{
|
||||
return 'icons/'.self::getIconFolder().'/favicon.svg';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the larger app/touch icon (SVG) path based on the current theme.
|
||||
*/
|
||||
public static function getAppIconPath(): string
|
||||
{
|
||||
return 'icons/'.self::getIconFolder().'/icon.svg';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue