<?php
-$body = getoutput(@$Place);
+$body = $Page->render();
include_once 'head.inc.php';
print "<header>\n";
ob_start();
-include 'menu.inc.html';
+$menu = new ArchiveArticle('menu.inc.html');
+print $menu->raw;
ob_start();
if ($User and property_exists($User, 'login') and $User->login) {
print '<div class="login"><p>';
}
print "</p></div>\n";
}
-$nav = getoutput(['login' => ob_get_clean()]);
+$menu->place['login'] = ob_get_clean();
+$nav = $menu->render();
$nav = preg_replace_callback('{<a href="([^"]+)">(.*?)</a>}', function ($m) {
$request = $_SERVER['REQUEST_URI'];