From 80341af3f7ebd76db1ae29d2405dfca8d4885a1f Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Wed, 7 Oct 2015 15:43:22 +0200 Subject: [PATCH] Cleanup --- comments.php | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/comments.php b/comments.php index faae130..828b117 100644 --- a/comments.php +++ b/comments.php @@ -127,21 +127,11 @@ class CommentsPlugin extends Plugin return $files; } - - + /** + * Return the comments associated to the current route + */ private function fetchComments() { - - return $this->getFileContentFromRoute($this->grav['uri']->path() . '.yaml')['comments']; - - - - - - // return [ - // 'route' => 'comment-test-1', - // 'content' => 'A comment text' - // ]; } /** @@ -160,14 +150,6 @@ class CommentsPlugin extends Plugin return Yaml::parse($fileInstance->content()); } - // /** - // */ - // public function onPageProcessed(Event $e) - // { - // $page = $e['page']; - // $page->setRawContent('ss'); - // } - /** * Add templates directory to twig lookup paths. */