aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/quattro/style.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-04-13 00:10:41 +0200
committerMichael Vogel <icarus@dabo.de>2012-04-13 00:10:41 +0200
commit572678fef95816deaa1ecafe5cbcfb8cc65963c9 (patch)
treee59df4f38865c14111d5460e85192759380786a8 /view/theme/quattro/style.php
parent138caa4380c442200964c8cf071438a0be89da70 (diff)
parente3af552bbfff2632bbcf2ce94c3e08ad4a5142d2 (diff)
downloadvolse-hubzilla-572678fef95816deaa1ecafe5cbcfb8cc65963c9.tar.gz
volse-hubzilla-572678fef95816deaa1ecafe5cbcfb8cc65963c9.tar.bz2
volse-hubzilla-572678fef95816deaa1ecafe5cbcfb8cc65963c9.zip
Merge commit 'upstream/master'
Conflicts: include/dba.php
Diffstat (limited to 'view/theme/quattro/style.php')
-rw-r--r--view/theme/quattro/style.php16
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;
+ }
+ ";
+ }