diff --git a/application/controllers/api/frontend/v1/LvMenu.php b/application/controllers/api/frontend/v1/LvMenu.php index 311edb1d9..7af616dd7 100644 --- a/application/controllers/api/frontend/v1/LvMenu.php +++ b/application/controllers/api/frontend/v1/LvMenu.php @@ -239,6 +239,8 @@ class LvMenu extends FHCAPI_Controller $this->fhc_menu_anrechnungLector($menu, $angezeigtes_stsem); + $this->fhc_menu_anwesenheitslisten($menu, $is_lector, $studiengang_kz, $semester, $lvid, $studiensemester_kurzbz); + // Addons Menu Logic // ########################################################################################## @@ -550,4 +552,24 @@ class LvMenu extends FHCAPI_Controller ); } } + + private function fhc_menu_anwesenheitslisten(&$menu, $is_lector, $stg_kz, $sem, $lvid, $stsem) + { + if ( + !$is_lector || + (defined('CIS_LEHRVERANSTALTUNG_LEISTUNGSUEBERSICHT_ANZEIGEN') && !CIS_LEHRVERANSTALTUNG_LEISTUNGSUEBERSICHT_ANZEIGEN) + ) { + return; + } + + $menu[]=array + ( + 'id' => 'core_menu_anwesenheitslisten', + 'position' => '40', + 'phrase' => 'lehre/anwesenheitsUndNotenlisten', + 'c4_icon' => base_url('skin/images/button_kreuzerltool.png'), + 'c4_icon2' => 'fa-solid fa-graduation-cap', + 'c4_link' => base_url('cis.php/Cis/Compat/legacy/cis/private/lehre/anwesenheitsliste.php?stg_kz=' . urlencode($stg_kz) . '&sem=' . urlencode($sem) . '&lvid=' . urlencode($lvid) . '&stsem=' . urlencode($stsem)), + ); + } } diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 51400ac1d..1392e5d2a 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -44966,6 +44966,27 @@ In the list: ) ) ), + + array( + 'app' => 'core', + 'category' => 'lehre', + 'phrase' => 'anwesenheitsUndNotenlisten', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Anwesenheits- und Notenlisten', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Attendance and grade list', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'core', 'category' => 'lehre',