function renderHeader() { parent::renderHeader(); if (!$this->clearHeader) { $this->header .= Site::parseHtmlFragment('pagebody.html', ['<!-- boardlist -->', '<!-- name -->', '<!-- subtitle -->'], [Board::getBoardList(), Config::getCfg('site')['name'], Config::getCfg('site')['subtitle']]); if ($_SERVER['SCRIPT_NAME'] != "/index.php") { if ($this->board == null) { $this->header .= div('[' . a('HOME', '/index.php') . ']', 'centertext'); } else { $this->header .= "<div style='position:relative; top: -20px;' id='topLinks'>[<a href='/index.php'>Home</a>]"; if ($_SERVER['SCRIPT_NAME'] != "/board.php") { $this->header .= " [" . a('Return', "/{$this->board->getName()}/") . "]"; } if ($_SERVER['SCRIPT_NAME'] != "/catalog.php" && !$this->board->isSwfBoard()) { $this->header .= " [" . a('Catalog', "/{$this->board->getName()}/catalog") . "]"; } $this->header .= "</div><br>"; } } } return $this->header; }