Commit 8b1ea197 authored by Clément OUDOT's avatar Clément OUDOT

Possibility to define a background image for portal skin (#770)

parent 4fde727a
......@@ -63,6 +63,11 @@ Comment: downloaded from
.
Author is unknown and license may be W3C or public-domain
Files: lemonldap-ng-portal/example/skins/common/backgrounds/*
Copyright: Various artists
Licence: CC-BY, GNU FDL
Comment: dowloaded from http://commons.wikimedia.org
Files: *tree.js lemonldap-ng-manager/example/skins/default/images/tree/*
Copyright: 2008, Peter Panov <panov@elcat.kg>
License: BSD-3-Clause
......
......@@ -33,6 +33,7 @@ $template->param(
PORTAL_URL => $portal_url,
SKIN_PATH => $portalPath . "skins",
SKIN => $skin,
SKIN_BG => $portal->{portalSkinBackground},
AUTH_ERROR => $portal->error,
AUTH_ERROR_TYPE => $portal->error_type,
CHOICE_PARAM => $portal->{authChoiceParam},
......
......@@ -38,6 +38,7 @@ $template->param(
PORTAL_URL => $portal_url,
SKIN_PATH => $portalPath . "skins",
SKIN => $skin,
SKIN_BG => $portal->{portalSkinBackground},
AUTH_ERROR => $portal->error,
AUTH_ERROR_TYPE => $portal->error_type,
CHOICE_PARAM => $portal->{authChoiceParam},
......
......@@ -12,6 +12,7 @@
<link href="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/css/bootstrap.css" rel="stylesheet">
<link href="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/css/bootstrap-theme.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/css/styles.css" />
<TMPL_INCLUDE NAME="../common/background.tpl">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
......
......@@ -11,6 +11,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
</TMPL_IF>
<link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/css/styles.css" />
<TMPL_INCLUDE NAME="../common/background.tpl">
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="shortcut icon" />
<TMPL_IF NAME="PROVIDERURI">
......
......@@ -11,6 +11,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
</TMPL_IF>
<link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="SKIN_PATH">/<TMPL_VAR NAME="SKIN">/css/styles.css" />
<TMPL_INCLUDE NAME="../common/background.tpl">
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="icon" type="image/x-icon" />
<link href="<TMPL_VAR NAME="SKIN_PATH">/common/favicon.ico" rel="shortcut icon" />
<TMPL_IF NAME="PROVIDERURI">
......
......@@ -326,6 +326,7 @@ sub display {
SKIN_PATH => $portalPath . "skins",
SKIN => $skin,
ANTIFRAME => $self->{portalAntiFrame},
SKIN_BG => $self->{portalSkinBackground},
);
## Custom template params
......
Markdown is supported
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