* +----------------+--------+------------------------------------------+ * | Array key | Type | Description | * +----------------+--------+------------------------------------------+ * | id | string | relative path to the content file | * | url | string | URL to the page | * | title | string | title of the page (YAML header) | * | description | string | description of the page (YAML header) | * | author | string | author of the page (YAML header) | * | time | string | timestamp derived from the Date header | * | date | string | date of the page (YAML header) | * | date_formatted | string | formatted date of the page | * | raw_content | string | raw, not yet parsed contents of the page | * | meta | string | parsed meta data of the page | * +----------------+--------+------------------------------------------+ * * * @see DummyPlugin::onPagesLoaded() * @param array &$pageData data of the loaded page * @return void */ public function onSinglePageLoaded(array &$pageData) { // your code } /** * Triggered after Pico has read all known pages * * See {@link DummyPlugin::onSinglePageLoaded()} for details about the * structure of the page data. * * @see Pico::getPages() * @see Pico::getCurrentPage() * @see Pico::getPreviousPage() * @see Pico::getNextPage() * @param array[] &$pages data of all known pages * @param array|null &$currentPage data of the page being served * @param array|null &$previousPage data of the previous page * @param array|null &$nextPage data of the next page * @return void */ public function onPagesLoaded( array &$pages, array &$currentPage = null, array &$previousPage = null, array &$nextPage = null ) { // your code } /** * Triggered before Pico registers the twig template engine * * @return void */ public function onTwigRegistration() { // your code } /** * Triggered before Pico renders the page * * @see Pico::getTwig() * @see DummyPlugin::onPageRendered() * @param Twig_Environment &$twig twig template engine * @param mixed[] &$twigVariables template variables * @param string &$templateName file name of the template * @return void */ public function onPageRendering(Twig_Environment &$twig, array &$twigVariables, &$templateName) { // your code } /** * Triggered after Pico has rendered the page * * @param string &$output contents which will be sent to the user * @return void */ public function onPageRendered(&$output) { // your code } }