From 3642bf87d4e51048ff8a97bbe051dd22222e1485 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 22 Dec 2016 16:10:45 +0100 Subject: [PATCH] Add favicon path to config --- app/inc/config.template.php | 3 +++ app/inc/smarty.php | 5 ++++- tpl/page.tpl | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/inc/config.template.php b/app/inc/config.template.php index 2135a1f..889b08d 100644 --- a/app/inc/config.template.php +++ b/app/inc/config.template.php @@ -64,6 +64,9 @@ $ALLOWED_LANGUAGES = [ // Nom et emplacement du fichier image contenant le titre const IMAGE_TITRE = 'images/logo-framadate.png'; +// Relative path to favicon +const FAVICON = 'favicon.ico'; + // Clean URLs, boolean const URL_PROPRE = false; diff --git a/app/inc/smarty.php b/app/inc/smarty.php index 41024a7..e7e725d 100644 --- a/app/inc/smarty.php +++ b/app/inc/smarty.php @@ -36,6 +36,9 @@ $smarty->assign('date_format', $date_format); if (isset($config['tracking_code'])) { $smarty->assign('tracking_code', $config['tracking_code']); } +if (defined('FAVICON')) { + $smarty->assign('favicon', FAVICON); +} // Dev Mode if (isset($_SERVER['FRAMADATE_DEVMODE']) && $_SERVER['FRAMADATE_DEVMODE']) { @@ -73,4 +76,4 @@ function smarty_modifier_addslashes_single_quote($string) { function smarty_modifier_html($html) { return Utils::htmlEscape($html); -} \ No newline at end of file +} diff --git a/tpl/page.tpl b/tpl/page.tpl index 4271730..2879d2e 100644 --- a/tpl/page.tpl +++ b/tpl/page.tpl @@ -9,6 +9,10 @@ {$APPLICATION_NAME|html} {/if} + {if isset($favicon)} + + {/if} +