pico/plugins/pico_plugin.php
Gilbert Pellegrom 022334ff13 Added before_parse_content & after_parse_content hooks. content_parsed
hook is depreciated. Updated get_protocol() method.
2013-10-23 10:19:24 +01:00

94 lines
1.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 config_loaded(&$settings)
{
}
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 before_read_file_meta(&$headers)
{
}
public function file_meta(&$meta)
{
}
public function before_parse_content(&$content)
{
}
public function after_parse_content(&$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)
{
}
}
?>