function render($target = null) { require_once XOOPS_ROOT_PATH . '/class/template.php'; $tpl = new XoopsTpl(); $tpl->assign($this->getAssign()); $tpl->assign('xoops_module_header', pico_main_render_moduleheader($this->mydirname, $GLOBALS['xoopsModuleConfig'], $this->getHtmlHeader())); $tpl->display($this->getTemplateName()); }
if ($picoRequest['controller'] == 'latestcontents') { // latestcontents under the category (mainly for rss) require_once dirname(dirname(__FILE__)) . '/controllers/PicoControllerGetLatestcontents.class.php'; $controller =& new PicoControllerGetLatestcontents($currentCategoryObj); } else { if ($picoRequest['controller'] == 'querycontents') { // querycontents (tag etc) require_once dirname(dirname(__FILE__)) . '/controllers/PicoControllerQueryContents.class.php'; $controller =& new PicoControllerQueryContents($currentCategoryObj); } else { // menu require_once dirname(dirname(__FILE__)) . '/controllers/PicoControllerGetMenu.class.php'; $controller =& new PicoControllerGetMenu($currentCategoryObj); } } } } } // execute $controller->execute($picoRequest); // render if ($controller->isNeedHeaderFooter()) { $xoopsOption['template_main'] = $controller->getTemplateName(); include XOOPS_ROOT_PATH . '/header.php'; $xoopsTpl->assign($controller->getAssign()); $xoopsTpl->assign('xoops_module_header', pico_main_render_moduleheader($mydirname, $xoopsModuleConfig, $controller->getHtmlHeader()) . $xoopsTpl->get_template_vars('xoops_module_header')); include XOOPS_ROOT_PATH . '/footer.php'; } else { $controller->render(); } exit;
function render() { // remove all ob filters while (ob_get_level()) { ob_end_clean(); } switch ($this->view) { default: header('Content-Type: text/html;'); echo '<html><meta http-equiv="Content-Type" content="text/html; charset=' . _CHARSET . '" /><head>' . pico_main_render_moduleheader($this->mydirname, $this->mod_config) . '</head><body><pre class="pico_history_diff" id="' . $this->mydirname . '_history_diff">' . $this->assign['diff_str'] . '</pre></body></html>'; break; } }