2 require_once 'container.lib.php';
4 class CSS extends Container {
5 protected function paint_head() {
7 return sprintf("%s {", $this->get_id());
9 protected function paint_attributes() {
11 foreach($this->get_attributes() as $k=>$v) {
12 //$k = strtolower($k);
15 return implode('',$r);
17 protected function paint_foot() {
21 function __toString() {
22 return $this->paint_head().$this->paint_attributes().$this->paint_foot();