Use the logo as favicon
CI / Deploy / PHP 8.5 (push) Successful in 1m5s
CI / Deploy / PHP 8.4 (push) Successful in 1m11s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

favicon.svg, favicon.ico (16/32/48) and apple-touch-icon.png, generated
from the same geometry as .brand__mark (resources/favicon/generate.php).
Linked from all layouts via one element.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 14:02:21 +01:00
1 parent 664088e139
commit 82b352c053
10 files changed
+232 -3

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
<?php
/**
* Favicon links shared by all layouts. The SVG is the logo (same shape as .brand__mark in plenario.css) and wins
* wherever it is supported; favicon.ico is the fallback, apple-touch-icon.png is the iOS home screen icon.
*
* @var \App\View\AppView $this
*/
$asset = fn(string $file): string => $this->Url->assetUrl($file, ['pathPrefix' => '']);
?>
<link rel="icon" href="<?= h($asset('favicon.ico')) ?>" sizes="32x32">
<link rel="icon" href="<?= h($asset('favicon.svg')) ?>" type="image/svg+xml">
<link rel="apple-touch-icon" href="<?= h($asset('apple-touch-icon.png')) ?>">