/** * 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(); $sidebar->setImage('sidebar/admin-sidebar.png'); $info = new InfoboxWidget(); $info->setTitle(_('Hinweise')); $info->addElement(new WidgetElement(_('Auf dieser Seite finden Sie eine Übersicht über alle verfügbaren Seiten.'))); $sidebar->addWidget($info); }
} } } // TODO: Remove this after sidebar migration has been completed if ($infobox && is_array($infobox)) { $sidebar = Sidebar::get(); if (!$sidebar->getImage()) { $sidebar->setImage(is_object($infobox['picture']) ? $infobox['picture']->getURL(Avatar::NORMAL) : $infobox['picture']); } foreach ($infobox['content'] as $entry) { $widget = new InfoboxWidget(); $widget->setTitle($entry['kategorie']); if (isset($entry['eintrag']) && is_array($entry['eintrag'])) { foreach (@$entry['eintrag'] as $row) { $icon = is_string($row['icon']) ? Icon::create2(str_replace('/black/', '/blue/', $row['icon'])) : $row['icon']; $widget->addElement(new InfoboxElement($row['text'], $icon)); } } $sidebar->addWidget($widget); } unset($infobox); } ?> <!DOCTYPE html> <html class="no-js"> <head> <meta charset="WINDOWS-1252"> <title> <?php echo htmlReady(PageLayout::getTitle() . ' - ' . $GLOBALS['UNI_NAME_CLEAN']); ?>