aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-06-03 12:48:27 +0000
committerplegall <plg@piwigo.org>2010-06-03 12:48:27 +0000
commitcf5075e774b87b8b5e2419e1cf567cb838580afd (patch)
tree89cc3dd46d93e586dadfca2d35c5a43ad9e8bfa5
parent663c13f39af9e50f59ee907ade4aaf4add0d8d01 (diff)
feature 1712: ability to add a CSS class on body
git-svn-id: http://piwigo.org/svn/branches/2.1@6454 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php1
-rw-r--r--themes/default/template/header.tpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 80679b19f..0cf563bd3 100644
--- a/picture.php
+++ b/picture.php
@@ -599,6 +599,7 @@ else
if ($page['slideshow'] and $conf['light_slideshow'])
{
$template->set_filenames( array('slideshow' => 'slideshow.tpl'));
+ $template->assign('BODY_CLASS', 'slideshow');
}
else
{
diff --git a/themes/default/template/header.tpl b/themes/default/template/header.tpl
index 807196312..3a700aa59 100644
--- a/themes/default/template/header.tpl
+++ b/themes/default/template/header.tpl
@@ -53,7 +53,7 @@
</head>
-<body id="{$BODY_ID}">
+<body id="{$BODY_ID}" {if isset($BODY_CLASS)}class="{$BODY_CLASS}"{/if}>
<div id="the_page">
{if not empty($header_msgs)}