Cleanup
This commit is contained in:
parent
5fd4cd6ac5
commit
80341af3f7
24
comments.php
24
comments.php
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue