
* [New] Added before_read_file_meta and get_page_data plugin hooks to customize page meta data * [Changed] Make get_files() ignore dotfiles * [Changed] Make get_pages() ignore Emacs and temp files * [Changed] Use composer version of Markdown * [Changed] Other small tweaks * [Fixed] Date warnings and other small bugs
89 lines
No EOL
1 KiB
PHP
89 lines
No EOL
1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Example hooks for a Pico plugin
|
|
*
|
|
* @author Gilbert Pellegrom
|
|
* @link http://pico.dev7studios.com
|
|
* @license http://opensource.org/licenses/MIT
|
|
*/
|
|
class Pico_Plugin {
|
|
|
|
public function plugins_loaded()
|
|
{
|
|
|
|
}
|
|
|
|
public function request_url(&$url)
|
|
{
|
|
|
|
}
|
|
|
|
public function before_load_content(&$file)
|
|
{
|
|
|
|
}
|
|
|
|
public function after_load_content(&$file, &$content)
|
|
{
|
|
|
|
}
|
|
|
|
public function before_404_load_content(&$file)
|
|
{
|
|
|
|
}
|
|
|
|
public function after_404_load_content(&$file, &$content)
|
|
{
|
|
|
|
}
|
|
|
|
public function config_loaded(&$settings)
|
|
{
|
|
|
|
}
|
|
|
|
public function before_read_file_meta(&$headers)
|
|
{
|
|
|
|
}
|
|
|
|
public function file_meta(&$meta)
|
|
{
|
|
|
|
}
|
|
|
|
public function content_parsed(&$content)
|
|
{
|
|
|
|
}
|
|
|
|
public function get_page_data(&$data, $page_meta)
|
|
{
|
|
|
|
}
|
|
|
|
public function get_pages(&$pages, &$current_page, &$prev_page, &$next_page)
|
|
{
|
|
|
|
}
|
|
|
|
public function before_twig_register()
|
|
{
|
|
|
|
}
|
|
|
|
public function before_render(&$twig_vars, &$twig)
|
|
{
|
|
|
|
}
|
|
|
|
public function after_render(&$output)
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|