示例#1
0
    $type = $_REQUEST["type"];
} else {
    $type = '';
}
if (isset($_REQUEST["topic"])) {
    $topic = $_REQUEST["topic"];
} else {
    $topic = '';
}
if (isset($_REQUEST['topicName'])) {
    $topicName = $_REQUEST['topicName'];
} else {
    $topicName = '';
}
if (isset($_REQUEST["categId"])) {
    $categId = $_REQUEST["categId"];
} else {
    $categId = '';
}
$smarty->assign_by_ref('categId', $categId);
if (!isset($_REQUEST['lang'])) {
    $_REQUEST['lang'] = '';
}
$topics = $artlib->list_topics();
$smarty->assign_by_ref('topics', $topics);
$smarty->assign_by_ref('type', $type);
$smarty->assign('maxArticles', $prefs['maxArticles']);
include_once 'tiki-section_options.php';
// Display the template
$smarty->assign('mid', TikiLib::custom_template('lists/articles.tpl', $type));
$smarty->display("tiki.tpl");
function smarty_function_custom_template($params, $smarty)
{
    return TikiLib::custom_template($params['basetpl'], $params['modifiers']);
}