'.$file['filename'].''; } // load template $tpl = new Template(); $tplData = template_getTemplate($page['template']); $tpl->set_base_text($tplData['body']); $tpl->set_var('PAGE_TITLE',$page['title']); $tpl->set_var('PAGE_BODY',$page['body']); $menu = page_getMenu($page['id']); $tpl->set_var('CMS_MENU',$menu['body']); // output html+template print($tpl->parse()); ?>