diff --git a/inc/template.php b/inc/template.php index 4383c7a6b34278eaa44da484fae827f7010e36a6..5e98526ff5dabc9735c6fa04e53db05b0bb310af 100644 --- a/inc/template.php +++ b/inc/template.php @@ -36,7 +36,22 @@ function template($tpl){ * * @author Andreas Gohr <andi@splitbrain.org> */ -function tpl_content(){ +function tpl_content() { + global $ACT; + + ob_start(); + + $evt = new event('TPL_ACTION_HTML',$ACT,tpl_content_core); + $evt->trigger(); + + $html_output = ob_get_clean(); + + $evt = new event('TPL_DISPLAY_HTML',$html_output,ptln); + $evt->trigger(); + +} + +function tpl_content_core(){ global $ACT; global $TEXT; global $PRE;