ipfire theme: Use div align for center
authorAlf Høgemark <alf@i100.no>
Wed, 26 Feb 2014 17:37:57 +0000 (18:37 +0100)
committerAlf Høgemark <alf@i100.no>
Wed, 26 Feb 2014 17:37:57 +0000 (18:37 +0100)
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.

html/html/themes/ipfire/include/functions.pl

index 86b1b75..f71181e 100644 (file)
@@ -238,7 +238,12 @@ sub openbox {
        $align = $_[1];
        $caption = $_[2];
 
-       print "<div class='post' style='text-align:$align;'>\n";
+       if($align eq 'center') {
+               print "<div class='post' align='center'>\n"
+       }
+       else {
+               print "<div class='post'>\n";
+       }
 
        if ($caption) {
                print "<h2>$caption</h2>\n";