Esempio n. 1
0
$filename = "index.php";
// frontend
require_once 'include/frontend.php';
$frontend = new Frontend($topic, $subtopic, $lang, $filename, $QUERY_STRING);
// settings
$smarty->compile_check = true;
$smarty->debugging = false;
// set Template-Variables
$smarty->assign('title', $frontend->getTitle());
$smarty->assign('author', $frontend->getAuthor());
$smarty->assign('description', $frontend->getDescription());
$smarty->assign('keywords', $frontend->getKeywords());
$smarty->assign('name', $frontend->getPageName());
$smarty->assign('update', $frontend->getUpdate());
$smarty->assign('info', $frontend->getPageInfo());
$smarty->assign('copyright', $frontend->getCopyright());
$smarty->assign('languages', $frontend->getLanguages());
$smarty->assign('backend', "false");
// topic/subtopic/content vars
$smarty->assign('main', $frontend->getMainContent());
$smarty->assign('topic', $frontend->getNaviTopic());
$smarty->assign('subtopic', $frontend->getNaviSubTopic());
// used topic/subtopic with highlighting in navigation
if (!$frontend->isUsed()) {
    $smarty->assign('usedtopic', $frontend->getTopicID());
}
$smarty->assign('target', "_self");
$smarty->assign('usedsubtopic', $frontend->getSubTopicID());
// display template
$smarty->display('index.tpl');
// disconnect db