<?php include 'sc-app.inc'; include APP_WEB_DIR . '/inc/header.inc'; use com\indigloo\sc\util\Nest; //public data //do not put user role check here set_exception_handler('webgloo_ajax_exception_handler'); $groupDao = new \com\indigloo\sc\dao\Group(); $collectionDao = new \com\indigloo\sc\dao\Collection(); $row = $collectionDao->glget(Nest::fgroups()); $feature_slug = empty($row) ? "" : $row["t_value"]; $fgroups = $groupDao->slugToGroupsMap($feature_slug); $html = \com\indigloo\sc\html\Group::getCloud($fgroups); echo $html;
<body> <?php include APP_WEB_DIR . '/inc/toolbar.inc'; ?> <div class="container mh800"> <div class="row"> <div class="span12"> <div class="page-header"> <h2> Groups </h2> </div> <!-- start cloud --> <?php if (isset($cloudGroups) && !empty($cloudGroups)) { echo \com\indigloo\sc\html\Group::getCloud($cloudGroups); } ?> <!-- end cloud --> </div> </div> </div> <!-- container --> <?php echo \com\indigloo\sc\util\Asset::version("/js/bundle.js"); ?> <script type="text/javascript">
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">
echo $pageHeader; ?> </h2> </div> </div> </div> <div class="row"> <div class="span12 mh600"> <?php echo \com\indigloo\sc\html\Site::formMessage(); ?> <div id="tiles"> <?php if ($gpage == 1 && !empty($groupDBRows)) { echo \com\indigloo\sc\html\Group::getTile($groupDBRows); } $startId = NULL; $endId = NULL; $gNumRecords = sizeof($postDBRows); if ($gNumRecords > 0) { $startId = $postDBRows[0]['id']; $endId = $postDBRows[$gNumRecords - 1]['id']; foreach ($postDBRows as $postDBRow) { $html = \com\indigloo\sc\html\Post::getTile($postDBRow); echo $html; } } else { $message = "No results found "; $options = array("hkey" => "pub.search"); echo \com\indigloo\sc\html\Site::getNoResult($message, $options);