diff options
Diffstat (limited to 'view/theme/quattro/style.php')
-rw-r--r-- | view/theme/quattro/style.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/view/theme/quattro/style.php b/view/theme/quattro/style.php index 889ec1530..b6104a170 100644 --- a/view/theme/quattro/style.php +++ b/view/theme/quattro/style.php @@ -1,5 +1,9 @@ <?php - $color = get_pconfig(local_user(), "quattro","color"); + $color = false; + if (local_user()) { + $color = get_pconfig(local_user(), "quattro","color"); + $quattro_align = get_pconfig(local_user(), 'quattro', 'align' ); + } if ($color===false) $color="dark"; @@ -7,3 +11,13 @@ echo file_get_contents("$THEMEPATH/$color/style.css"); } + + if($quattro_align=="center"){ + echo " + html { width: 100%; margin:0px; padding:0px; } + body { + margin: 50px auto; + width: 900px; + } + "; + } |