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')) ?>">
+1 -1
View File
@@ -17,7 +17,7 @@ $title = $this->fetch('title');
<?php endif; ?>
<title><?= $title ? h($title) . ' · ' : '' ?>PlenarIO</title>
<?= $this->element('theme_init') ?>
<?= $this->Html->meta('icon') ?>
<?= $this->element('favicon') ?>
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
<?= $this->fetch('meta') ?>
<?= $this->fetch('css') ?>
+1 -1
View File
@@ -13,7 +13,7 @@
<meta name="robots" content="noindex">
<title><?= h($this->fetch('title')) ?> · PlenarIO</title>
<?= $this->element('theme_init') ?>
<?= $this->Html->meta('icon') ?>
<?= $this->element('favicon') ?>
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
</head>
<body>
+1 -1
View File
@@ -14,7 +14,7 @@
<meta name="csrf-token" content="<?= h((string)$this->request->getAttribute('csrfToken')) ?>">
<title><?= h($this->fetch('title')) ?> · PlenarIO</title>
<?= $this->element('theme_init', ['key' => 'plenario-theme-present', 'fallback' => 'dark']) ?>
<?= $this->Html->meta('icon') ?>
<?= $this->element('favicon') ?>
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
</head>
<body class="present">