add a method to Design to show custom CSS

This commit is contained in:
Evan Prodromou 2009-05-22 23:13:09 -04:00
parent 95104f38f2
commit 748c744a02
1 changed files with 10 additions and 0 deletions

View File

@ -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");
}
}