<?php ini_set('display_errors', 'Off'); $articles = $this->articles; $showCongratulation = $this->congratulation; include_once "core/HotNews/HotNews.php"; $allNews = new HotNews(); $news = $allNews->getNews(); ?> <?php if (empty($_GET['page']) or $_GET['page'] == 1) { ?> <div class="col-sm-6 col-md-4" > <div class="thumbnail"> <div class="caption"> <div class="viewport"> <div class="list-group"> <?php for ($i = 0; $i < count($news); $i++) { if (strtotime(date("Y-m-d")) - strtotime($news[$i]['date']) < 166400) { ?> <a href="#" class="list-group-item "> <?php } else { ?> <a href="#" class="list-group-item active"> <?php