* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 * @category Stud.IP * @since 2.0 */ /** * The sitemap is only visible for logged in users, because the sitemap depends * on the permissions of the user. */ class SitemapController extends AuthenticatedController { /** * The only method, loads the navigation object and displays it. */ public function index_action() { PageLayout::setTitle(_('Sitemap')); foreach (Navigation::getItem('/start') as $nav) { $nav->setEnabled(false); } $this->navigation = Navigation::getItem('/'); $this->quicklinks = Navigation::getItem('/links'); $this->footer = Navigation::getItem('/footer'); // Add sidebar $sidebar = Sidebar::get(); $info = new SidebarWidget(); $info->setTitle(_('Hinweise')); $info->addElement(new WidgetElement(_('Auf dieser Seite finden Sie eine Übersicht über alle verfügbaren Seiten.'))); $sidebar->addWidget($info); } }