20 $this->positions=array();
21 $this->offsets=array();
25 $this->positions[$size]=$width;
30 foreach ($this->positions as $size=>$width){
31 $result[]=
"col-".$size.
"-".$width;
33 foreach ($this->offsets as $size=>$offset){
34 $result[]=
"col-".$size.
"-offset-".$offset;
36 return implode(
" ", $result);
41 return parent::compile($js,$view);
45 $this->offsets[$size]=$offset;
50 foreach ($this->offsets as &$value){
58 foreach ($this->positions as &$pos){
66 $this->positions[$size]=$width;
75 return @$this->positions[$size];
79 return @$this->offsets[$size];
83 $this->
wrap(
"",
"<div class='clearfix'></div>");
92 $result->setPositions($this->positions);
93 $result->setOffsets($this->offsets);
setOffset($size, $offset)
addPosition($size=CssSize::SIZE_MD, $width=1)
setProperty($name, $value)
setOffsetForAll($newOffset)
Inner element for Twitter Bootstrap Grid col.
setWidthForAll($newWidth)
compile(JsUtils $js=NULL, &$view=NULL)
setPosition($size=CssSize::SIZE_MD, $width=1)
__construct($identifier, $size=CssSize::SIZE_MD, $width=1)
setWidth($size=CssSize::SIZE_MD, $width=1)