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();
    }