</div> </li> '; } ?> </ul> </div> <!-- End single sidebar --> <!-- start single sidebar --> <div class="single_sidebar"> <h2>Category <span class="fa fa-angle-double-right"></span></h2> <ul> <?php $post = new SKS\CONTROLLER\Post(); $this->categories = $post->getPostCategories($categoryType); foreach ($this->categories as $category) { echo '<li><a href="' . URL . 'post/post_by_category/' . $category->getType() . '/' . $category->getId() . '">' . $category->getName() . '</a></li>'; } ?> </ul> </div> <!-- End single sidebar --> <!-- start single sidebar --> <div class="single_sidebar"> <h2>Tags <span class="fa fa-angle-double-right"></span></h2> <ul class="tags_nav"> <li><a href="#"><i class="fa fa-tags"></i>Creative</a></li> <li><a href="#"><i class="fa fa-tags"></i>News</a></li> <li><a href="#"><i class="fa fa-tags"></i>Technology</a></li>
<?php $post = new SKS\CONTROLLER\Post(); $this->postList = $post->recent_posts($categoryType); foreach ($this->postList as $post) { echo ' <li> <div class="media"> <div class="media-left"> <a href="#" class="news_img"> <img alt="img" src="' . URL . $post->getBannerImage()->getThumbSmall() . '" class="media-object"> </a> </div> <div class="media-body"> <a href="' . LINK_VIEW_POST . $post->getId() . '" class="pb">' . $post->getTitle() . '</a> <span class="feed_date">' . $post->getPostedAt()->format('Y-m-d') . '</span> </div> </div> </li> '; } ?>