From e7c9f9948b81823f734899b95236dccdecd8e9f9 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Thu, 4 Nov 2021 18:35:33 +0100 Subject: [PATCH] removed attempts to rename the main content skiplink --- app/controllers/avatar.php | 2 -- app/controllers/course/details.php | 1 - app/controllers/course/members.php | 4 ---- app/controllers/course/overview.php | 2 -- app/controllers/my_courses.php | 2 -- app/controllers/notifications.php | 1 - app/controllers/online.php | 1 - app/controllers/profile.php | 1 - app/controllers/settings/account.php | 1 - app/controllers/settings/calendar.php | 1 - app/controllers/settings/categories.php | 1 - app/controllers/settings/deputies.php | 1 - app/controllers/settings/details.php | 1 - app/controllers/settings/general.php | 7 ++++++- app/controllers/settings/messaging.php | 1 - app/controllers/settings/notification.php | 1 - app/controllers/settings/password.php | 1 - app/controllers/settings/privacy.php | 2 -- app/controllers/settings/statusgruppen.php | 1 - app/controllers/settings/studies.php | 2 -- app/controllers/settings/userdomains.php | 2 -- app/controllers/studygroup.php | 7 ------- app/views/calendar/group/day.php | 2 -- app/views/calendar/group/week.php | 2 -- app/views/calendar/single/day.php | 4 ---- app/views/calendar/single/edit.php | 2 -- app/views/calendar/single/export_calendar.php | 2 -- app/views/calendar/single/import.php | 1 - app/views/calendar/single/share.php | 2 -- app/views/calendar/single/week.php | 2 -- app/views/institute/members/index.php | 4 ---- app/views/my_courses/_deputy_bosses.php | 1 - app/views/my_courses/waiting_list.php | 1 - app/views/my_institutes/index.php | 1 - lib/classes/SemBrowse.class.php | 3 --- public/wiki.php | 9 --------- templates/sembrowse/extended-search.php | 10 ---------- templates/sembrowse/quick-search.php | 4 ---- 38 files changed, 6 insertions(+), 87 deletions(-) diff --git a/app/controllers/avatar.php b/app/controllers/avatar.php index ef289ee6d33..992c06e1fa2 100644 --- a/app/controllers/avatar.php +++ b/app/controllers/avatar.php @@ -27,7 +27,6 @@ class AvatarController extends AuthenticatedController if ($type == 'user') { PageLayout::setHelpKeyword('Basis.HomepageBild'); PageLayout::setTitle(_('Profilbild ändern')); - SkipLinks::addIndex(_('Profilbild ändern'), 'edit_avatar'); $has_perm = $GLOBALS['perm']->have_profile_perm('user', $id); $class = 'Avatar'; @@ -70,7 +69,6 @@ class AvatarController extends AuthenticatedController $this->avatar = $avatar->getURL($class::NORMAL); if ($avatar->is_customized()) { $this->customized = true; - SkipLinks::addIndex(_('Bild löschen'), 'delete_picture'); } $this->type = $type; diff --git a/app/controllers/course/details.php b/app/controllers/course/details.php index aec496fcc55..bcd4f54172d 100644 --- a/app/controllers/course/details.php +++ b/app/controllers/course/details.php @@ -205,7 +205,6 @@ class Course_DetailsController extends AuthenticatedController if ($GLOBALS['SessionSeminar'] === $this->course->id) { Navigation::activateItem('/course/main/details'); - SkipLinks::addIndex(Navigation::getItem('/course/main/details')->getTitle(), 'main_content', 100); } else { $sidebarlink = true; $enrolment_info = $this->sem->getEnrolmentInfo($GLOBALS['user']->id); diff --git a/app/controllers/course/members.php b/app/controllers/course/members.php index 1edf2c9c047..08562c0970f 100644 --- a/app/controllers/course/members.php +++ b/app/controllers/course/members.php @@ -58,9 +58,6 @@ class Course_MembersController extends AuthenticatedController // Layoutsettings PageLayout::setTitle(sprintf('%s - %s', Course::findCurrent()->getFullname(), _("Teilnehmende"))); - SkipLinks::addIndex(Navigation::getItem('/course/members')->getTitle(), 'main_content', 100); - - $this->studip_module = checkObjectModule('participants'); object_set_visit_module( $this->studip_module->getPluginId()); $this->last_visitdate = object_get_visit($this->course_id, $this->studip_module->getPluginId()); @@ -125,7 +122,6 @@ class Course_MembersController extends AuthenticatedController // Check autor-perms if (!$this->is_tutor) { - SkipLinks::addIndex(_("Sichtbarkeit ändern"), 'change_visibility'); // filter invisible user $this->invisibles = count($filtered_members['autor']->findBy('visible', 'no')) + count($filtered_members['user']->findBy('visible', 'no')); $current_user_id = $this->user_id; diff --git a/app/controllers/course/overview.php b/app/controllers/course/overview.php index 3a2332ffac6..1977ed42adf 100644 --- a/app/controllers/course/overview.php +++ b/app/controllers/course/overview.php @@ -31,8 +31,6 @@ class Course_OverviewController extends AuthenticatedController PageLayout::setHelpKeyword('Basis.InVeranstaltungKurzinfo'); PageLayout::setTitle(Context::getHeaderLine() . ' - ' . _('Kurzinfo')); Navigation::activateItem('/course/main/info'); - // add skip link - SkipLinks::addIndex(Navigation::getItem('/course/main/info')->getTitle(), 'main_content', 100); $this->sem = Seminar::getInstance($this->course_id); $sem_class = $this->sem->getSemClass(); diff --git a/app/controllers/my_courses.php b/app/controllers/my_courses.php index 5bbd34ac61e..8a4f4727c2f 100644 --- a/app/controllers/my_courses.php +++ b/app/controllers/my_courses.php @@ -77,7 +77,6 @@ class MyCoursesController extends AuthenticatedController Navigation::activateItem('/browse/my_courses/list'); PageLayout::setHelpKeyword('Basis.MeineVeranstaltungen'); PageLayout::setTitle(_('Meine Veranstaltungen')); - SkipLinks::addIndex(_('Meine Veranstaltungen'), 'mycourses'); $this->sem_data = Semester::getAllAsArray(); @@ -636,7 +635,6 @@ class MyCoursesController extends AuthenticatedController PageLayout::setTitle(_('Meine archivierten Veranstaltungen')); PageLayout::setHelpKeyword('Basis.MeinArchiv'); Navigation::activateItem('/browse/my_courses/archive'); - SkipLinks::addIndex(_('Hauptinhalt'), 'layout_content', 100); if (Config::get()->ENABLE_ARCHIVE_SEARCH) { $actions = Sidebar::get()->addWidget(new ActionsWidget()); diff --git a/app/controllers/notifications.php b/app/controllers/notifications.php index 78fa884ae8d..b206df1b291 100644 --- a/app/controllers/notifications.php +++ b/app/controllers/notifications.php @@ -31,7 +31,6 @@ class NotificationsController extends AuthenticatedController //PageLayout::setHelpKeyword('Basis.InteraktionWhosOnline'); PageLayout::setTitle(_('Persönliche Benachrichtigungen')); Navigation::activateItem('/messaging'); - SkipLinks::addIndex(_('Wer ist online?'), 'layout_content', 100); } /** diff --git a/app/controllers/online.php b/app/controllers/online.php index 8807ce18ac2..0407cb71072 100644 --- a/app/controllers/online.php +++ b/app/controllers/online.php @@ -28,7 +28,6 @@ class OnlineController extends AuthenticatedController PageLayout::setHelpKeyword('Basis.InteraktionWhosOnline'); PageLayout::setTitle(_('Wer ist online?')); Navigation::activateItem('/community/online'); - SkipLinks::addIndex(_('Wer ist online?'), 'layout_content', 100); $this->settings = $GLOBALS['user']->cfg->MESSAGING_SETTINGS; diff --git a/app/controllers/profile.php b/app/controllers/profile.php index 8592d01aa92..cf9e1f51f61 100644 --- a/app/controllers/profile.php +++ b/app/controllers/profile.php @@ -27,7 +27,6 @@ class ProfileController extends AuthenticatedController Navigation::activateItem('/profile/index'); URLHelper::addLinkParam('username', Request::username('username')); PageLayout::setHelpKeyword('Basis.Homepage'); - SkipLinks::addIndex(_('Benutzerprofil'), 'layout_content', 100); $this->user = User::findCurrent(); // current logged in user $this->perm = $GLOBALS['perm']; // perms of current logged in user diff --git a/app/controllers/settings/account.php b/app/controllers/settings/account.php index 818c83e4469..1de1e0ffa4c 100644 --- a/app/controllers/settings/account.php +++ b/app/controllers/settings/account.php @@ -31,7 +31,6 @@ class Settings_AccountController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.HomepagePersönlicheDaten'); PageLayout::setTitle(_('Persönliche Angaben bearbeiten')); Navigation::activateItem('/profile/edit/profile'); - SkipLinks::addIndex(_('Persönliche Angaben bearbeiten'), 'layout_content'); } /** diff --git a/app/controllers/settings/calendar.php b/app/controllers/settings/calendar.php index 640a8c93e6d..5704246cca1 100644 --- a/app/controllers/settings/calendar.php +++ b/app/controllers/settings/calendar.php @@ -36,7 +36,6 @@ class Settings_CalendarController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.MyStudIPTerminkalender'); PageLayout::setTitle(_('Einstellungen des Terminkalenders anpassen')); Navigation::activateItem('/profile/settings/calendar_new'); - SkipLinks::addIndex(_('Einstellungen des Terminkalenders anpassen'), 'layout_content', 100); } /** diff --git a/app/controllers/settings/categories.php b/app/controllers/settings/categories.php index 5715c46883c..f62366498d2 100644 --- a/app/controllers/settings/categories.php +++ b/app/controllers/settings/categories.php @@ -31,7 +31,6 @@ class Settings_CategoriesController extends Settings_SettingsController Navigation::activateItem('/profile/categories'); PageLayout::setHelpKeyword('Basis.HomepageSonstiges'); PageLayout::setTitle(_('Eigene Kategorien bearbeiten')); - SkipLinks::addIndex(_('Eigene Kategorien bearbeiten'), 'layout_content', 100); } /** diff --git a/app/controllers/settings/deputies.php b/app/controllers/settings/deputies.php index 0291d08933e..910d93da467 100644 --- a/app/controllers/settings/deputies.php +++ b/app/controllers/settings/deputies.php @@ -31,7 +31,6 @@ class Settings_DeputiesController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.MyStudIPDeputies'); PageLayout::setTitle(_('Standardvertretung')); Navigation::activateItem('/profile/settings/deputies'); - SkipLinks::addIndex(_('Standardvertretung'), 'main_content', 100); $this->edit_about_enabled = Config::get()->DEPUTIES_EDIT_ABOUT_ENABLE; } diff --git a/app/controllers/settings/details.php b/app/controllers/settings/details.php index 9a021a97a48..5f6f738dda5 100644 --- a/app/controllers/settings/details.php +++ b/app/controllers/settings/details.php @@ -35,7 +35,6 @@ class Settings_DetailsController extends Settings_SettingsController ? _('Lebenslauf, Arbeitsschwerpunkte und Publikationen bearbeiten') : _('Lebenslauf bearbeiten')); Navigation::activateItem('/profile/edit/details'); - SkipLinks::addIndex(_('Private Daten bearbeiten'), 'layout_content'); } /** diff --git a/app/controllers/settings/general.php b/app/controllers/settings/general.php index e1c783f4b7a..bf9879178ec 100644 --- a/app/controllers/settings/general.php +++ b/app/controllers/settings/general.php @@ -30,7 +30,12 @@ class Settings_GeneralController extends Settings_SettingsController PageLayout::setTitle(_('Allgemeine Einstellungen anpassen')); Navigation::activateItem('/profile/settings/general'); - SkipLinks::addIndex(_('Allgemeine Einstellungen anpassen'), 'layout_content', 100); + $this->show_room_management_autor_config = Config::get()->RESOURCES_ENABLE + && ( + ResourceManager::userHasGlobalPermission($this->user, 'autor') + || + RoomManager::userHasRooms($this->user, 'autor') + ); } /** diff --git a/app/controllers/settings/messaging.php b/app/controllers/settings/messaging.php index a9af8ac0454..4c249af6a5e 100644 --- a/app/controllers/settings/messaging.php +++ b/app/controllers/settings/messaging.php @@ -24,7 +24,6 @@ class Settings_MessagingController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.MyStudIPMessaging'); PageLayout::setTitle(_('Einstellungen des Nachrichtensystems anpassen')); Navigation::activateItem('/profile/settings/messaging'); - SkipLinks::addIndex(_('Einstellungen des Nachrichtensystems anpassen'), 'layout_content', 100); $this->settings = $this->config->MESSAGING_SETTINGS; } diff --git a/app/controllers/settings/notification.php b/app/controllers/settings/notification.php index 12245f3d9fa..cf87f016be9 100644 --- a/app/controllers/settings/notification.php +++ b/app/controllers/settings/notification.php @@ -44,7 +44,6 @@ class Settings_NotificationController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.MyStudIPBenachrichtigung'); PageLayout::setTitle(_('Benachrichtigung über neue Inhalte anpassen')); Navigation::activateItem('/profile/settings/notification'); - SkipLinks::addIndex(_('Benachrichtigung über neue Inhalte anpassen'), 'layout_content', 100); } /** diff --git a/app/controllers/settings/password.php b/app/controllers/settings/password.php index 6057b91c568..20f7556e7e7 100644 --- a/app/controllers/settings/password.php +++ b/app/controllers/settings/password.php @@ -37,7 +37,6 @@ class Settings_PasswordController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.HomepagePersönlicheDaten'); PageLayout::setTitle(_('Passwort ändern')); Navigation::activateItem('profile/edit/password'); - SkipLinks::addIndex(_('Passwort ändern'), 'layout_content'); } /** diff --git a/app/controllers/settings/privacy.php b/app/controllers/settings/privacy.php index 7afc87104ce..1b85abc241e 100644 --- a/app/controllers/settings/privacy.php +++ b/app/controllers/settings/privacy.php @@ -32,8 +32,6 @@ class Settings_PrivacyController extends Settings_SettingsController PageLayout::setTitle(_('Privatsphäre')); Navigation::activateItem('/profile/settings/privacy'); - - SkipLinks::addIndex(_('Privatsphäre'), 'layout_content', 100); } /** diff --git a/app/controllers/settings/statusgruppen.php b/app/controllers/settings/statusgruppen.php index c2438cd83c5..d7de2546cfc 100644 --- a/app/controllers/settings/statusgruppen.php +++ b/app/controllers/settings/statusgruppen.php @@ -33,7 +33,6 @@ class Settings_StatusgruppenController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.HomepageUniversitäreDaten'); PageLayout::setTitle(_('Einrichtungsdaten bearbeiten')); Navigation::activateItem('/profile/edit/statusgruppen'); - SkipLinks::addIndex(_('Einrichtungsdaten bearbeiten'), 'layout_content', 100); } /** diff --git a/app/controllers/settings/studies.php b/app/controllers/settings/studies.php index dfba3db12a8..7763aa61211 100644 --- a/app/controllers/settings/studies.php +++ b/app/controllers/settings/studies.php @@ -36,8 +36,6 @@ class Settings_StudiesController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.HomepageUniversitäreDaten'); PageLayout::setTitle(_('Studiengang bearbeiten')); Navigation::activateItem('/profile/edit/studies'); - SkipLinks::addIndex(_('Fächer und Abschlüsse auswählen'), 'select_fach_abschluss'); - SkipLinks::addIndex(_('Zu Einrichtungen zuordnen'), 'select_institute'); $this->allow_change = [ 'sg' => !StudipAuthAbstract::CheckField('studiengang_id', $this->user->auth_plugin) diff --git a/app/controllers/settings/userdomains.php b/app/controllers/settings/userdomains.php index 343003b3f9a..eda8bcc659c 100644 --- a/app/controllers/settings/userdomains.php +++ b/app/controllers/settings/userdomains.php @@ -31,8 +31,6 @@ class Settings_UserdomainsController extends Settings_SettingsController PageLayout::setHelpKeyword('Basis.HomepageNutzerdomänen'); PageLayout::setTitle(_('Nutzerdomänen bearbeiten')); Navigation::activateItem('/profile/edit/userdomains'); - SkipLinks::addIndex(_('Zugeordnete Nutzerdomänen'), 'assigned_userdomains'); - SkipLinks::addIndex(_('Nutzerdomäne auswählen'), 'select_userdomains'); } /** diff --git a/app/controllers/studygroup.php b/app/controllers/studygroup.php index a113d261726..66b20a354b2 100644 --- a/app/controllers/studygroup.php +++ b/app/controllers/studygroup.php @@ -25,13 +25,6 @@ class StudygroupController extends AuthenticatedController Navigation::activateItem('/community/studygroups/browse'); PageLayout::setHelpKeyword('Basis.SuchenStudiengruppen'); - // add skip link - SkipLinks::addIndex( - Navigation::getItem('/community/studygroups/browse')->getTitle(), - 'layout_content', - 100 - ); - $this->setupSidebar(); } diff --git a/app/views/calendar/group/day.php b/app/views/calendar/group/day.php index 46758b14cc8..a452320489a 100644 --- a/app/views/calendar/group/day.php +++ b/app/views/calendar/group/day.php @@ -7,8 +7,6 @@ $width1 = floor(90 / $cells); $width2 = 10 + (90 - $width1 * $cells); $start = $settings['start'] * 3600; $end = ($settings['end'] + 1) * 3600; -// add skip link -SkipLinks::addIndex(_('Tagesansicht'), 'main_content', 100); ?> <table id="main_content" style="width:100%; table-layout:fixed;"> <thead> diff --git a/app/views/calendar/group/week.php b/app/views/calendar/group/week.php index 8f9644a1688..cdac0b5dadc 100644 --- a/app/views/calendar/group/week.php +++ b/app/views/calendar/group/week.php @@ -5,8 +5,6 @@ $cols = ceil(($settings['end'] - $settings['start'] + 1) * 3600 / $settings['ste $start = $settings['start'] * 3600; $end = ($settings['end'] + 1) * 3600; $wlength = count($calendars[0]) - 1; -// add skip link -SkipLinks::addIndex(_('Wochenansicht'), 'main_content', 100); ?> <table style="width: 100%"> <tr> diff --git a/app/views/calendar/single/day.php b/app/views/calendar/single/day.php index e8f625da254..721c636a59d 100644 --- a/app/views/calendar/single/day.php +++ b/app/views/calendar/single/day.php @@ -1,7 +1,3 @@ -<? -// add skip link -SkipLinks::addIndex(_('Tagesansicht'), 'layout_content', 100); -?> <div style="width: 100%; display: flex; flex-wrap: wrap;"> <div style="flex-grow:2; flex-basis: 60%;"> <?= $this->render_partial('calendar/single/_day'); ?> diff --git a/app/views/calendar/single/edit.php b/app/views/calendar/single/edit.php index e8c3eb057a9..f8a2371699a 100644 --- a/app/views/calendar/single/edit.php +++ b/app/views/calendar/single/edit.php @@ -3,8 +3,6 @@ <? foreach (PageLayout::getMessages() as $messagebox) : ?> <?= $messagebox ?> <? endforeach ?> -<? else : ?> - <? SkipLinks::addIndex(_('Termine anlegen/bearbeiten'), 'main_content', 100); ?> <? endif; ?> <form data-dialog="" method="post" action="<?= $controller->url_for($base . 'edit/' . $range_id . '/' . $event->event_id) ?>" class="default collapsable"> <?= CSRFProtection::tokenTag() ?> diff --git a/app/views/calendar/single/export_calendar.php b/app/views/calendar/single/export_calendar.php index 270e20eb106..66f86c5dbb6 100644 --- a/app/views/calendar/single/export_calendar.php +++ b/app/views/calendar/single/export_calendar.php @@ -3,8 +3,6 @@ <? foreach (PageLayout::getMessages() as $messagebox) : ?> <?= $messagebox ?> <? endforeach ?> -<? else : ?> - <? SkipLinks::addIndex(_('Termine exportieren'), 'main_content', 100); ?> <? endif; ?> <form action="<?= $controller->url_for('calendar/single/export_calendar/' . $calendar->getRangeId(), ['atime' => $atime, 'last_view' => $last_view]) ?>" method="post" name="sync_form" id="calendar_sync" class="default"> <fieldset> diff --git a/app/views/calendar/single/import.php b/app/views/calendar/single/import.php index a63104cdf19..db1feb3fecc 100644 --- a/app/views/calendar/single/import.php +++ b/app/views/calendar/single/import.php @@ -1,6 +1,5 @@ <? use Studip\Button, Studip\LinkButton; -SkipLinks::addIndex(_('Termine importieren'), 'main_content', 100); ?> <form action="<?= $controller->link_for('calendar/single/import/' . $calendar->getRangeId(), ['atime' => $atime, 'last_view' => $last_view]) ?>" method="post" enctype="multipart/form-data" class="default"> <input type="hidden" name="studip_ticket" value="<?= get_ticket() ?>"> diff --git a/app/views/calendar/single/share.php b/app/views/calendar/single/share.php index 5a6c33bf866..eef5ca3086e 100644 --- a/app/views/calendar/single/share.php +++ b/app/views/calendar/single/share.php @@ -3,8 +3,6 @@ <? foreach (PageLayout::getMessages() as $messagebox) : ?> <?= $messagebox ?> <? endforeach ?> -<? else : ?> - <? SkipLinks::addIndex(_('Kalender teilen'), 'main_content', 100); ?> <? endif; ?> <form data-dialog="size=auto" action="<?= $controller->url_for('calendar/single/share/' . $calendar->getRangeId()) ?>" method="post" class="default"> <input type="hidden" name="studip_ticket" value="<?= get_ticket() ?>"> diff --git a/app/views/calendar/single/week.php b/app/views/calendar/single/week.php index c3c98e1fc79..d3f6f3ab5e2 100644 --- a/app/views/calendar/single/week.php +++ b/app/views/calendar/single/week.php @@ -1,6 +1,4 @@ <? -// add skip link -SkipLinks::addIndex(_('Wochenansicht'), 'layout_content', 100); $at = date('G', $atime); if ($at >= $settings['start'] && $at <= $settings['end'] || !$atime) { diff --git a/app/views/institute/members/index.php b/app/views/institute/members/index.php index a0b2854efe8..17dc60236d5 100644 --- a/app/views/institute/members/index.php +++ b/app/views/institute/members/index.php @@ -1,7 +1,3 @@ -<?php -SkipLinks::addIndex(_('Mitarbeiterliste'), 'list_institute_members'); -?> - <? if ($institute): ?> <table class="default" id="list_institute_members"> <caption><?= _('Mitarbeiterinnen und Mitarbeiter') ?></caption> diff --git a/app/views/my_courses/_deputy_bosses.php b/app/views/my_courses/_deputy_bosses.php index f85ae1c3b55..eca6c470e8a 100644 --- a/app/views/my_courses/_deputy_bosses.php +++ b/app/views/my_courses/_deputy_bosses.php @@ -1,4 +1,3 @@ -<? SkipLinks::addIndex(_('Personen, deren Standardvertretung ich bin'), 'my_deputy_bosses') ?> <table class="default" id="my_deputy_bosses"> <caption> <?= _('Personen, deren Standardvertretung ich bin') ?> diff --git a/app/views/my_courses/waiting_list.php b/app/views/my_courses/waiting_list.php index 7ed91249c8a..ae93da9ea27 100644 --- a/app/views/my_courses/waiting_list.php +++ b/app/views/my_courses/waiting_list.php @@ -1,4 +1,3 @@ -<? SkipLinks::addIndex(_("Wartelisten"), 'my_waitlists') ?> <table class="default collapsable" id="my_waitlists"> <caption> <?= _("Anmelde- und Wartelisteneinträge") ?> diff --git a/app/views/my_institutes/index.php b/app/views/my_institutes/index.php index 53c8b1de118..c92309aa0ee 100644 --- a/app/views/my_institutes/index.php +++ b/app/views/my_institutes/index.php @@ -21,7 +21,6 @@ auf Ihrer persönlichen Einstellungsseite.'), '<a href="' . URLHelper::getLink('dispatch.php/settings/studies#einrichtungen') . '">', '</a>'))?> <? endif ?> <? else : ?> - <? SkipLinks::addIndex(_('Meine Einrichtungen'), 'my_institutes') ?> <table class="default" id="my_institutes"> <caption><?= _('Meine Einrichtungen') ?></caption> <colgroup> diff --git a/lib/classes/SemBrowse.class.php b/lib/classes/SemBrowse.class.php index fe05bba35d3..a60201a9c7a 100644 --- a/lib/classes/SemBrowse.class.php +++ b/lib/classes/SemBrowse.class.php @@ -372,7 +372,6 @@ class SemBrowse { { ob_start(); - SkipLinks::addIndex(_('Gefundene Bereiche'), 'sem_search_level', 110); echo "\n" . '<table id="sem_search_level" class="course-search" width="100%">' . "\n"; if ($this->sem_browse_data['level'] == 'vv') { echo "\n" . '<caption class="legend">'._('Studienbereiche').'<caption>'; @@ -412,8 +411,6 @@ class SemBrowse { } $the_tree = $this->sem_tree->tree; - SkipLinks::addIndex(_('Suchergebnis'), 'sem_search_result', 90); - list($group_by_data, $sem_data) = $this->get_result(); $visibles = $sem_data; diff --git a/public/wiki.php b/public/wiki.php index 269743cf7d2..548a45df115 100644 --- a/public/wiki.php +++ b/public/wiki.php @@ -93,42 +93,36 @@ if ($view === 'listall') { // // list all pages, default sorting = alphabetically // - SkipLinks::addIndex(_('Alle Seiten'), 'main_content', 100); listPages('all', Request::option('sortby')); } else if ($view === 'listnew') { // // list new pages, default sorting = newest first // - SkipLinks::addIndex(_('Neue Seiten'), 'main_content', 100); listPages('new', Request::option('sortby')); } else if ($view === 'diff') { // // show one large diff-file containing all changes // - SkipLinks::addIndex(_('Seite mit Änderungen'), 'main_content', 100); showDiffs($keyword, Request::option('versionssince')); } else if ($view === 'combodiff') { // // show one large diff-file containing all changes // - SkipLinks::addIndex(_('Seite mit Änderungen'), 'main_content', 100); showComboDiff($keyword); } else if ($view === 'pageversions') { // // show versions of a wiki page // - SkipLinks::addIndex(_('Versionen dieser Seite'), 'main_content', 100); listPageVersions($keyword, Request::option('sortby')); } else if ($view === 'export') { // // show export dialog // - SkipLinks::addIndex(_('Seiten exportieren'), 'wiki_export', 100); exportWiki(); } else if ($view === 'search') { @@ -150,8 +144,6 @@ if ($view === 'listall') { throw new AccessDeniedException(_('Sie haben keine Berechtigung, Seiten zu editieren!')); } - SkipLinks::addIndex(_('Seite bearbeiten'), 'main_content', 100); - // set lock setWikiLock(null, $user->id, Context::getId(), $keyword); @@ -245,7 +237,6 @@ if ($view === 'listall') { // // Show Page // - SkipLinks::addIndex(_('Aktuelle Seite'), 'main_content', 100); $page = WikiPage::findLatestPage(Context::getId(), $keyword); if (!$page || $page->isVisibleTo($GLOBALS['user']->id)) { diff --git a/templates/sembrowse/extended-search.php b/templates/sembrowse/extended-search.php index 87c3cad0631..e5089f52682 100644 --- a/templates/sembrowse/extended-search.php +++ b/templates/sembrowse/extended-search.php @@ -1,13 +1,3 @@ -<?php -SkipLinks::addIndex(_('Suchformular'), 'search_sem_xts', 100); -// add skip link for simple search here -SkipLinks::addLink( - _('Schnellsuche'), - URLHelper::getURL('dispatch.php/search/courses', ['cmd' => 'qs', 'level' => 'f']), - 120 -); -?> - <?= $search_obj->getFormStart(URLHelper::getLink('?send=yes'), ['class' => 'default']) ?> <fieldset> diff --git a/templates/sembrowse/quick-search.php b/templates/sembrowse/quick-search.php index 5afe3e71805..dbf6e2f987f 100644 --- a/templates/sembrowse/quick-search.php +++ b/templates/sembrowse/quick-search.php @@ -1,7 +1,3 @@ -<?php -SkipLinks::addIndex(_('Suchformular'), 'search_sem_qs', 100); -?> - <?= $search_obj->getFormStart(URLHelper::getLink(), ['class' => 'default']) ?> <fieldset> -- GitLab