public function build()
    {
        $classes = array();

        foreach ($this->sizes as $device => $size) {
            if ($size['width']) {
                $classes[] = sprintf('col-%s-%s', $device, $size['width']);
            } else {
                $classes[] = 'hidden-' . $device;
            }

            if ($size['offset'] !== null) {
                $classes[] = sprintf('col-%s-offset-%s', $device, $size['offset']);
            }

            if ($size['push'] !== null) {
                if (is_numeric($size['push'])) {
                    $push      = ($size['push'] < 0) ? 'pull' : 'push';
                    $classes[] = sprintf('col-%s-%s-%s', $device, $push, $size['push']);
                } else {
                    $classes[] = sprintf('col-%s-%s', $device, $size['push']);
                }
            }
        }

        if ($this->class) {
            $classes[] = $this->class;
        }

        return $classes;
    }
public function build()
    {
        $classes = array();

        foreach ($this->sizes as $device => $size) {
            if ($size['width']) {
                $classes[] = sprintf('col-%s-%s', $device, $size['width']);
            } else {
                $classes[] = 'hidden-' . $device;
            }

            if ($size['offset'] !== null) {
                $classes[] = sprintf('col-%s-offset-%s', $device, $size['offset']);
            }

            if ($size['push'] !== null) {
                if (is_numeric($size['push'])) {
                    $push      = ($size['push'] < 0) ? 'pull' : 'push';
                    $classes[] = sprintf('col-%s-%s-%s', $device, $push, $size['push']);
                } else {
                    $classes[] = sprintf('col-%s-%s', $device, $size['push']);
                }
            }
        }

        if ($this->class) {
            $classes[] = $this->class;
        }

        return $classes;
    }
public function build ( ) { $ classes = array ( ) ; foreach ( $ this -> sizes as $ device => $ size ) { if ( $ size [ 'width' ] ) { $ classes [ ] = sprintf ( 'col-%s-%s' , $ device , $ size [ 'width' ] ) ; } else { $ classes [ ] = 'hidden-' . $ device ; } if ( $ size [ 'offset' ] !== null ) { $ classes [ ] = sprintf ( 'col-%s-offset-%s' , $ device , $ size [ 'offset' ] ) ; } if ( $ size [ 'push' ] !== null ) { if ( is_numeric ( $ size [ 'push' ] ) ) { $ push = ( $ size [ 'push' ] < 0 ) ? 'pull' : 'push' ; $ classes [ ] = sprintf ( 'col-%s-%s-%s' , $ device , $ push , $ size [ 'push' ] ) ; } else { $ classes [ ] = sprintf ( 'col-%s-%s' , $ device , $ size [ 'push' ] ) ; } } } if ( $ this -> class ) { $ classes [ ] = $ this -> class ; } return $ classes ; }
Build css classes.

@return array classes
Build css classes .