public static function groupIntoRows(array $items, $itemsPerRow, array $options = array()) {
        ob_start();
        ?>
        <div class="row-fluid <?= @$options['rows']['class'] ?>"
             <?= self::parseAttributes(@$options['rows'], array('class')) ?>>
                 <?php
                 foreach ($items as $key => $item) {
                     if ($key && $key % $itemsPerRow === 0) {
                         ?>
                </div>
                <div class="row-fluid <?= @$options['rows']['class'] ?>">
                    <?php
                }

                if (@$options['wrap'] !== false):
                    ?>
                    <div class="span<?= round(12 / $itemsPerRow) ?> <?= @$options['spans']['class'] ?>"
                         <?= self::parseAttributes(@$options['spans'], array('class')) ?>>
                             <?php
                         endif;
                         echo $item;
                         if (@$options['wrap'] !== false):
                             ?>
                    </div>
                    <?php
                endif;
            }
            ?>
        </div>
        <?php
        return ob_get_clean();
    }
public static function groupIntoRows(array $items, $itemsPerRow, array $options = array()) {
        ob_start();
        ?>
        <div class="row-fluid <?= @$options['rows']['class'] ?>"
             <?= self::parseAttributes(@$options['rows'], array('class')) ?>>
                 <?php
                 foreach ($items as $key => $item) {
                     if ($key && $key % $itemsPerRow === 0) {
                         ?>
                </div>
                <div class="row-fluid <?= @$options['rows']['class'] ?>">
                    <?php
                }

                if (@$options['wrap'] !== false):
                    ?>
                    <div class="span<?= round(12 / $itemsPerRow) ?> <?= @$options['spans']['class'] ?>"
                         <?= self::parseAttributes(@$options['spans'], array('class')) ?>>
                             <?php
                         endif;
                         echo $item;
                         if (@$options['wrap'] !== false):
                             ?>
                    </div>
                    <?php
                endif;
            }
            ?>
        </div>
        <?php
        return ob_get_clean();
    }
public static function groupIntoRows ( array $ items , $ itemsPerRow , array $ options = array ( ) ) { ob_start ( ) ; ?>
        <div class="row-fluid <?= @ $ options [ 'rows' ] [ 'class' ] ?>"
             <?= self :: parseAttributes ( @ $ options [ 'rows' ] , array ( 'class' ) ) ?>>
                 <?php foreach ( $ items as $ key => $ item ) { if ( $ key && $ key % $ itemsPerRow === 0 ) { ?>
                </div>
                <div class="row-fluid <?= @ $ options [ 'rows' ] [ 'class' ] ?>">
                    <?php } if ( @ $ options [ 'wrap' ] !== false ) : ?>
                    <div class="span<?= round ( 12 / $ itemsPerRow ) ?> <?= @ $ options [ 'spans' ] [ 'class' ] ?>"
                         <?= self :: parseAttributes ( @ $ options [ 'spans' ] , array ( 'class' ) ) ?>>
                             <?php endif ; echo $ item ; if ( @ $ options [ 'wrap' ] !== false ) : ?>
                    </div>
                    <?php endif ; } ?>
        </div>
        <?php return ob_get_clean ( ) ; }
Groups given items into rows with class "row-fluid"
@param array $items Array of items to group
@param integer $itemsPerRow Number of items per row. This should be any of 1,2,3,4,6,12
@param array $options Array of additional options with the following possible keys:<br />
<b>wrap (boolean)</b>: True to wrap each item with div containers having
class depicting the right span size<br />
<b>rows (array)</b>: Array of attributes for each row<br />
<b>spans (array)</b>: Array of attributes for each span. This is only
only applicable if option wrap is True.
@return string
Groups given items into rows with class row - fluid