Exemplo n.º 1
0
Arquivo: cards.php Projeto: rjha/sc
echo $title;
?>
 </h2>
                </div>
            </div>
            <div class="row">
                <div class="span12 mt20">
                        <?php 
//make slices
$numCards = ceil(sizeof($groups) / 10.0);
for ($i = 0; $i < $numCards; $i++) {
    $offset = $i * 10;
    $slice = array_slice($groups, $offset, 10);
    //print these 10 groups
    $style = $i % 3 == 0 ? 2 : 1;
    $html = \com\indigloo\sc\html\Group::getCard($slice, $style);
    echo $html;
}
?>

                </div>

            </div>
        </div> <!-- container -->
        

        <?php 
echo \com\indigloo\sc\util\Asset::version("/js/bundle.js");
?>

        <script type="text/javascript">