diff options
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 ?>"> |