Skip to content

Commit

Permalink
Add channel favicon (#565)
Browse files Browse the repository at this point in the history
* add favicon section to layout and append channel label as channel's favicon

* fix favicon link for channel call
  • Loading branch information
davidbeig authored Nov 15, 2023
1 parent 4efc881 commit d80acf1
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;
$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 d80acf1

Please sign in to comment.