diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-05 02:40:16 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-05 02:40:16 +0100 |
commit | ad3aed389f2e0d69802641f5a5b7c6add73f1ce5 (patch) | |
tree | 1e4abd614799be623a2ae696fa960d3fba93a5a6 /app/view/templates/layout.php | |
parent | fc56b60be55b4340d647d2017fdeb24b81eb84b6 (diff) | |
download | wcms-ad3aed389f2e0d69802641f5a5b7c6add73f1ce5.tar.gz wcms-ad3aed389f2e0d69802641f5a5b7c6add73f1ce5.zip |
templateoption
Diffstat (limited to 'app/view/templates/layout.php')
-rw-r--r-- | app/view/templates/layout.php | 7 |
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 ?>"> |