Skip to content

Commit

Permalink
add favicon section to layout and append channel label as channel's f…
Browse files Browse the repository at this point in the history
…avicon
  • Loading branch information
davidbeig committed Oct 20, 2023
1 parent 46175a2 commit f659672
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Resources/templates/responsive/channel/call/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
<?php
$this->replace();

$this->section('favicon');

if ($this->channel->label): ?>
<link rel="icon" type="image/x-icon" href=<?= $this->channel->label->getLink(16,16,true) ?>
<?php endif; ?>
<?php $this->append();

$this->section('content');
?>

Expand Down
5 changes: 4 additions & 1 deletion Resources/templates/responsive/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
<?= $this->supply('lang-metas', $this->insert('partials/header/lang_metas')) ?>

<title><?= $this->title ?></title>
<link rel="icon" type="image/x-icon" href="/favicon.ico" >

<?php $this->section('favicon'); ?>
<link rel="icon" type="image/x-icon" href="/favicon.ico" >
<?php $this->stop() ?>

<?= $this->insert('partials/header/styles') ?>
<?= $this->insert('partials/header/javascript') ?>
Expand Down

0 comments on commit f659672

Please sign in to comment.