This commit is contained in:
Flavio Copes 2015-10-07 15:43:22 +02:00
parent 5fd4cd6ac5
commit 80341af3f7
1 changed files with 3 additions and 21 deletions

View File

@ -127,21 +127,11 @@ class CommentsPlugin extends Plugin
return $files; return $files;
} }
/**
* Return the comments associated to the current route
*/
private function fetchComments() { private function fetchComments() {
return $this->getFileContentFromRoute($this->grav['uri']->path() . '.yaml')['comments']; 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()); return Yaml::parse($fileInstance->content());
} }
// /**
// */
// public function onPageProcessed(Event $e)
// {
// $page = $e['page'];
// $page->setRawContent('ss');
// }
/** /**
* Add templates directory to twig lookup paths. * Add templates directory to twig lookup paths.
*/ */