/* ---------- (X)HTML Output Functions ---------- */
/**
* Returns the XHTML output including the footer etc. for use with the blog plugin
* FIXME remove after blogtng plugin officially replaces the blog plugin?
*
* @author Michael Klier <chi@chimeric.de>
*/
function render_XHTML(&$include, &$renderer, $page, $lvl, $set_flags) {
if(!$include->includes[$page]) {
$renderer->doc = '';
$include->includes[$page];
$flags = $include->get_flags($set_flags);
$ins = $include->_get_instructions($page, '', 'page', $lvl, $flags);
foreach($ins as $i) {
//call_user_func_array(array(&$renderer, $i[0]),$i[1]);
// Changed for minor issue for PHP 5.3.0
if ($i[1] != null) {
call_user_func_array(array(&$renderer, $i[0]), $i[1]);
}
// Changed for minor issue for PHP 5.3.0
}
// Post process and return the output
$data = array($mode, $renderer->doc);
trigger_event('RENDERER_CONTENT_POSTPROCESS',$data);
return $renderer->doc;
}
}