Merge branch 'feature/favicon' into 'develop'

Add favicon path to config

See merge request !164
This commit is contained in:
Olivier Perez 2017-02-23 00:04:28 +01:00
commit d69de89f2f
3 changed files with 11 additions and 1 deletions

View File

@ -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;

View File

@ -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']) {

View File

@ -9,6 +9,10 @@
<title>{$APPLICATION_NAME|html}</title>
{/if}
{if isset($favicon)}
<link rel="icon" href="{$favicon|resource}">
{/if}
<link rel="stylesheet" href="{'css/bootstrap.min.css'|resource}">
<link rel="stylesheet" href="{'css/datepicker3.css'|resource}">
<link rel="stylesheet" href="{'css/style.css'|resource}">