Commit 398f3a40 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2431 We should add an easy way of adding css files

parent 944f5210
......@@ -46,6 +46,7 @@ function displayLogin()
$smarty->assign ('personal_img', get_template_path('images/login-head.png'));
$smarty->assign ('password_img', get_template_path('images/password.png'));
$smarty->assign ('directory_img', get_template_path('images/ldapserver.png'));
$smarty->append ('css_files', get_template_path('login.css'));
/* Some error to display? */
if (!isset($message)){
......
......@@ -7,5 +7,7 @@
<link rel="stylesheet" type="text/css" href="{filePath file="plugin.css"}" media="screen"/>
<link rel="stylesheet" type="text/css" href="{filePath file="setup.css"}" media="screen"/>
<link rel="stylesheet" type="text/css" href="{filePath file="sieve.css"}" media="screen"/>
<link rel="stylesheet" type="text/css" href="{filePath file="login.css"}" media="screen"/>
<link rel="stylesheet" type="text/css" href="{filePath file="theme.css"}" media="screen"/>
{foreach from=$css_files item=file}
<link rel="stylesheet" type="text/css" href="{$file}"/>
{/foreach}
......@@ -286,6 +286,7 @@ $smarty = new Smarty;
$smarty->template_dir = $BASE_DIR.'/ihtml/';
$smarty->caching = FALSE;
$smarty->assign('css_files', array());
// To be able to switch between smarty version 2/3
if (defined('SMARTY_PHP_REMOVE')) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment