Use the logo as favicon
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:
1 parent
664088e139
commit
82b352c053
10 files changed
+232
-3
No files matched your search
@@ -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')) ?>">
|
||||
@@ -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') ?>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user