<?php
class Main_Block_SmfRecentTopic
{
var $template = 'blocksSmfRecentTopic.html';
var $templatePath = 'main';
var $webRoot = SGL_BASE_URL;
function init(&$output, &$blockID, &$aParams)
{
return $this->getBlockContent();
}
function getBlockContent()
{
require_once (SGL_WEB_ROOT . '/smfweb/SSI.php');
//function ssi_recentTopics($numRecent = 8, $excludeBoards = null, $outputMethod = 'echo')
$blockOutput->recentTopics = ssi_recentTopics($numRecent = 8, $excludeBoards = null, $outputMethod = 'noecho');
return $this->process($blockOutput, &$aParams);
}
function process(&$output, &$aParams)
{
$output->moduleName = $this->templatePath;
$output->masterTemplate = $this->template;
$view = new SGL_HtmlSimpleView($output);
return $view->render();
}
}
?>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez