]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - html/html/themes/ipfire/include/functions.pl
ipfire theme: Use div align for center
[people/teissler/ipfire-2.x.git] / 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";