page = $params['page']; $posts = new Blogs($params); $list = $posts->makeList(); if (!empty($params['extraParams'])) { if (isset($params['extraParams']['year']) && (int)$params['extraParams']['year']) { $posts->findPostByYear($params['extraParams']['year']); } } $getPostList = $posts->getFilesForPage($params['page']); $pagination = $posts->makePagination($params['page']); require __DIR__ . '/../../template/'.$params['config']['theme'].'/posts.php'; $content = ob_get_contents(); ob_end_clean(); return $content; } function title() { return $this->title; } }