Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
398f3a40
Commit
398f3a40
authored
May 23, 2013
by
Côme Bernigaud
Committed by
Benoit Mortier
May 24, 2013
Browse files
Fixes: #2431 We should add an easy way of adding css files
parent
944f5210
Changes
3
Hide whitespace changes
Inline
Side-by-side
html/index.php
View file @
398f3a40
...
...
@@ -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
)){
...
...
ihtml/themes/default/css.tpl
View file @
398f3a40
...
...
@@ -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
}
include/php_setup.inc
View file @
398f3a40
...
...
@@ -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'
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment