function showCSS($out)
{
- $out->element('stylesheet', array('type' => 'text/css'),
+ $out->element('style', 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".
class CurrentUserDesignAction extends Action
{
+
+ /**
+ * Show the user's design stylesheet
+ *
+ * @return nothing
+ */
+ function showStylesheets()
+ {
+ parent::showStylesheets();
+
+ $design = $this->getDesign();
+ $design->showCSS($this);
+ }
+
/**
* A design for this action
*
return $cur->getDesign();
}
+
+
}
var $user = null;
+ /**
+ * Show the owner's design stylesheet
+ *
+ * @return nothing
+ */
+ function showStylesheets()
+ {
+ parent::showStylesheets();
+
+ $design = $this->getDesign();
+ $design->showCSS($this);
+ }
+
/**
* A design for this action
*