$url->setQueryVar('noTest'); echo '<a href="' . $url . '">Deactivate testing mode</a>'; echo '</div>'; } else { // do not display testing stuff } ?> <header> <h1>Charte Éditeurs-Fansubs</h1> <h2>Tentative d'accord à l'amiable entre des acteurs voulant promouvoir la Japanimation en France</h2> </header> <nav> <?php $url = Url::getCurrentUrl(); $displayedPage = Page::getDisplayedPage(); foreach (Page::getAvailablePages() as $page) { $url = new Url(); $url->setQueryVar('page', $page->getId()); echo '<a ' . ($displayedPage == $page ? 'class="selected"' : '') . ' href="' . $url . '">' . $page->getMenuTitle() . '</a>'; } echo Format::toHtmlEmail('*****@*****.**', "Contact"); ?> </nav> <article> <?php $page = Page::getDisplayedPage(); echo '<div id="lastUpdateTime">Last update: ' . date("d/m/Y H:i:s", $page->getLastUpdateTime()) . '</div>'; echo $page->getContent(); ?> </article> <footer><?php