public function getTimeline(Request $request)
 {
     $options = $this->pageParams($request->all());
     $category = $request->input('category');
     $articles = ArticleService::getInstance()->timeline($request->input('category'), $options);
     $this->viewData('maxPage', $articles['maxPage']);
     $this->viewData('page', $request->input('page', 1));
     unset($articles['maxPage']);
     $this->viewData('articles', $articles);
     $this->viewData('navMenuActive', 'article-timeline');
     $this->viewData('categories', CategoryService::getInstance()->categorySummary($category));
     $this->viewData('category', $category);
     return view("frontend.article.article_timeline", $this->viewData);
 }
Exemple #2
0
 private function parseCategory($category)
 {
     return CategoryService::getInstance()->getId($category);
 }