From: Alf Høgemark Date: Wed, 26 Feb 2014 17:37:57 +0000 (+0100) Subject: ipfire theme: Use div align for center X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=480f354d894e212e9dd6f66936c2ca592e1c549b ipfire theme: Use div align for center Revert change to make openbox produce validating html, when center alignment for box is wanted. I have not been able to find css solution for properly aligning the div horisontally. --- diff --git a/html/html/themes/ipfire/include/functions.pl b/html/html/themes/ipfire/include/functions.pl index 86b1b75ba..f71181e63 100644 --- a/html/html/themes/ipfire/include/functions.pl +++ b/html/html/themes/ipfire/include/functions.pl @@ -238,7 +238,12 @@ sub openbox { $align = $_[1]; $caption = $_[2]; - print "
\n"; + if($align eq 'center') { + print "
\n" + } + else { + print "
\n"; + } if ($caption) { print "

$caption

\n";