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>
13 lines
589 B
PHP
13 lines
589 B
PHP
<?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')) ?>">
|