echo $category['featured']; ?> ')"> </header> <div class="container"> <h1 class="page-header"><?php echo $category['title']; ?> </h1> <p><?php if (!empty($category['description'])) { echo $category['description']; } ?> </p> <?php $searched_id = $category_lookup->category_id_search($category['id'], $id); $pagination = new Paginator(); $pagination_limit = 3; $posts = $pagination->pagination($pagination_limit, 'post', ' WHERE category_id = ' . $searched_id . ' AND status = 1'); foreach ($posts as $post) { if (!empty($post['featured'])) { echo '<a href="' . BASE_URL . '/blog/' . $post['id'] . '/' . $post['slug'] . '"><img class="img-responsive" src="' . BASE_URL . '/gw-content/uploads/' . $post['featured'] . '" alt="' . $post['title'] . '" /></a>'; } echo '<h2><a href="' . BASE_URL . '/blog/' . $post['id'] . '/' . $post['slug'] . '">' . $post['title'] . '</a></h2>'; $categories = db_select("SELECT * FROM category WHERE id in (" . $post['category_id'] . ")"); echo '<div class="small">'; $created_date = $post['created_date']; $posted_date = date("F jS, Y", strtotime($created_date)); echo '<span class="glyphicon glyphicon-calendar"></span> ' . $posted_date; echo ' '; echo '<span class="glyphicon glyphicon-folder-open"></span> ';