<?php $startId = NULL; $endId = NULL; $gNumRecords = sizeof($postDBRows); $htmlItems = ""; if ($gNumRecords > 0) { $startId = $postDBRows[0]['id']; $endId = $postDBRows[$gNumRecords - 1]['id']; foreach ($postDBRows as $postDBRow) { $htmlItems .= \com\indigloo\sc\html\Post::getTile($postDBRow); } } else { $message = "No items found!"; $options = array("form" => "tile"); $htmlItems = \com\indigloo\sc\html\Site::getNoResult($message, $options); } ?> <!DOCTYPE html> <html> <head> <title> <?php echo $pageTitle; ?> </title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="keywords" content="<?php
<?php include 'sc-app.inc'; include APP_CLASS_LOADER; //pull one random image $postDao = new \com\indigloo\sc\dao\Post(); $rows = $postDao->getRandom(5); $tileHtml = ''; if (sizeof($rows) > 0) { $tileHtml = \com\indigloo\sc\html\Post::getTile($rows[0]); } ?> <!DOCTYPE html> <html> <head> <title> Thanks for visiting 3mik </title> <?php echo \com\indigloo\sc\util\Asset::version("/css/bundle.css"); ?> </head> <body> <?php include APP_WEB_DIR . '/inc/toolbar.inc'; ?> <div class="container mh800"> <div class="row">