function generateBody() { $this->content .= '<div id="content"> '; if (LoginManager::isLogged()) { $this->content .= ' <div id="login_panel"> ' . sprintf(_('Logged as %s'), LoginManager::getFullname()) . ' </div> '; } $this->content .= '<div id="lang_menu"> <ul> <li><a href="' . RessourceManager::getInnerUrl('special/language/choose') . '">' . _('Change language') . '</a></li> '; if (LoginManager::isLogged()) { $this->content .= ' <li><a href="' . RessourceManager::getInnerUrl('special/login/logout') . '">' . _('Logout') . '</a></li>'; } else { $this->content .= ' <li><a href="' . RessourceManager::getInnerUrl('special/login/login_form') . '">' . _('Login') . '</a></li>'; } $this->content .= ' </ul> </div> <div id="head"> <h1>' . _('Perroquet') . '</h1> ' . _('Listening comprehension tutor') . ' </div> '; $this->content .= $this->generateMenu(); $this->content .= ' <div id="corps"> '; $this->content .= $this->generateContent(); $this->content .= '</div> <div id="bottom"> Perroquet web site — Copyright ® Perroquet Team — <a href="mailto:perroquet-team@lists.launchpad.net" >perroquet-team@lists.launchpad.net</a> — Licence : AGPL v3 or highter — <a href="https://code.launchpad.net/~perroquet-team/perroquet/website" >source</a> </div> </div>'; }