?> <?php } ?> </p> <?php } else { ?> <?php $content = $revision->getXHTMLContent(); ?> <?php if ($display_toc) { ?> <?php $toc = nahoWikiContentPeer::getTOC($content); ?> <div class="wiki-toc-container"> <a class="wiki-toc-header" href="#" onclick="var n=document.getElementById('wiki-toc');n.style.display=n.style.display=='none'?'block':'none';return false"><?php echo __('Table of contents'); ?> </a> <div id="wiki-toc"><?php include_partial('toc', array('toc' => $toc)); ?> </div> </div> <?php } ?> <?php