aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/layout.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-05 02:40:16 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-05 02:40:16 +0100
commitad3aed389f2e0d69802641f5a5b7c6add73f1ce5 (patch)
tree1e4abd614799be623a2ae696fa960d3fba93a5a6 /app/view/templates/layout.php
parentfc56b60be55b4340d647d2017fdeb24b81eb84b6 (diff)
downloadwcms-ad3aed389f2e0d69802641f5a5b7c6add73f1ce5.tar.gz
wcms-ad3aed389f2e0d69802641f5a5b7c6add73f1ce5.zip
templateoption
Diffstat (limited to 'app/view/templates/layout.php')
-rw-r--r--app/view/templates/layout.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php
index 4131350..e0b2e1c 100644
--- a/app/view/templates/layout.php
+++ b/app/view/templates/layout.php
@@ -4,7 +4,12 @@
<meta charset="utf8" />
<meta name="viewport" content="width=device-width" />
- <link rel="shortcut icon" href="./media/logo.png" type="image/x-icon">
+ <?php if(!empty($favicon)) {
+ ?>
+ <link rel="shortcut icon" href="<?= Model::faviconpath() . $favicon ?>" type="image/x-icon">
+ <?php } elseif(!empty(Config::defaultfavicon())) { ?>
+ <link rel="shortcut icon" href="<?= Model::faviconpath() . Config::defaultfavicon() ?>" type="image/x-icon">
+ <?php } ?>
<title><?= $title ?></title>
<link rel="stylesheet" href="<?= $css ?>">