summaryrefslogtreecommitdiff
path: root/classes/Design.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-05-22 23:13:09 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-05-22 23:13:09 -0400
commit748c744a02ab12f36a275d9020c1b2b5ead9f002 (patch)
treef70e636f723726f36f6ccb2fab0f6274eac78cfd /classes/Design.php
parent95104f38f25eb51676ed843c283fbfa97c427c50 (diff)
add a method to Design to show custom CSS
Diffstat (limited to 'classes/Design.php')
-rw-r--r--classes/Design.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/Design.php b/classes/Design.php
index cca41ce0c..c1b6f73e0 100644
--- a/classes/Design.php
+++ b/classes/Design.php
@@ -44,4 +44,14 @@ class Design extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function showCSS($out)
+ {
+ $out->element('stylesheet', array('type' => 'text/css'),
+ 'body { background-color: #' . dechex($this->backgroundcolor) . '} '."\n".
+ '#content { background-color #' . dechex($this->contentcolor) . '} '."\n".
+ '#aside_primary { background-color #'. dechex($this->sidebarcolor) .'} '."\n".
+ 'html body { color: #'. dechex($this->textcolor) .'} '."\n".
+ 'a { color: #' . dechex($this->linkcolor) . '} '."\n");
+ }
}