]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
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 86b1b75ba26773a205bf6b91f946e79972ba65dc..f71181e6323f27b25fd2bdc98552fd79dea7d17f 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";