This commit is contained in:
Arnold Daniels 2013-10-23 02:12:11 -07:00
commit 5ac41ede71
2 changed files with 10 additions and 2 deletions

View file

@ -58,8 +58,11 @@ class Pico {
$meta = $this->read_file_meta($content);
$this->run_hooks('file_meta', array(&$meta));
$this->run_hooks('before_parse_content', array(&$content));
$content = $this->parse_content($content);
$this->run_hooks('content_parsed', array(&$content));
$this->run_hooks('after_parse_content', array(&$content));
$this->run_hooks('content_parsed', array(&$content)); // Backwards compatibility
// Get all the pages
$pages = $this->get_pages($settings['base_url'], $settings['pages_order_by'], $settings['pages_order'], $settings['excerpt_length']);

View file

@ -54,7 +54,12 @@ class Pico_Plugin {
}
public function content_parsed(&$content)
public function before_parse_content(&$content)
{
}
public function after_parse_content(&$content)
{
}