public $textcolor; // int(4)
public $linkcolor; // int(4)
public $backgroundimage; // varchar(255)
+ public $tile; // tinyint(1)
/* Static get */
function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Design',$k,$v); }
common_log(LOG_ERR, "Unable to create color for design $id.",
__FILE__);
}
-
+
$css = 'html, body { background-color: #' . $bgcolor->hexValue() . '} ' . "\n";
$css .= '#content, #site_nav_local_views .current a { background-color: #';
$css .= $ccolor->hexValue() . '} '."\n";
$css .= '#aside_primary { background-color: #'. $sbcolor->hexValue() . '} ' . "\n";
$css .= 'html body { color: #'. $tcolor->hexValue() . '} '. "\n";
$css .= 'a { color: #' . $lcolor->hexValue() . '} ' . "\n";
-
+
if (!empty($this->backgroundimage)) {
-
- $css .= 'body { background-image:url(' .
- Design::url($this->backgroundimage) .
+
+ $css .= 'body { background-image:url(' .
+ Design::url($this->backgroundimage) .
'); background-repeat:no-repeat; }' . "\n";
}
-
+
$out->element('style', array('type' => 'text/css'), $css);
-
+
}
static function filename($id, $extension, $extra=null)
return $dir . $filename;
}
-
+
static function url($filename)
{
$path = common_config('background', 'path');
return 'http://'.$server.$path.$filename;
}
-
+
}
sidebarcolor integer comment 'sidebar background color',
textcolor integer comment 'text color',
linkcolor integer comment 'link color',
- backgroundimage varchar(255) comment 'background image, if any'
+ backgroundimage varchar(255) comment 'background image, if any',
+ tile tinyint default 0 comment 'tile background image'
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
create table group_block (