getURL(); } else { $bg_desktop = URLHelper::getURL('pictures/loginbackgrounds/1.jpg'); } $bg_mobile = LoginBackground::getRandomPicture('mobile'); if ($bg_mobile) { $bg_mobile = $bg_mobile->getURL(); } else { $bg_mobile = URLHelper::getURL('pictures/loginbackgrounds/2.jpg'); } } else { $bg_desktop = URLHelper::getURL('pictures/loginbackgrounds/1.jpg'); $bg_mobile = URLHelper::getURL('pictures/loginbackgrounds/2.jpg'); } $show_login = !(current(StudipAuthAbstract::getInstance()) instanceOf StudipAuthSSO) && StudipAuthAbstract::isLoginEnabled(); $show_hidden_login = !$show_login && StudipAuthAbstract::isLoginEnabled(); ?> if ($loginerror): ?> = MessageBox::error(_('Bei der Anmeldung trat ein Fehler auf!'), [ $error_msg, sprintf( _('Bitte wenden Sie sich bei Problemen an: %1$s'), $GLOBALS['UNI_CONTACT'] ) ]) ?> endif ?> = implode('', PageLayout::getMessages()); ?> = htmlReady(Config::get()->UNI_NAME_CLEAN) ?> if ($show_login) : ?> = $this->render_partial('_standard_loginform', [ 'hidden' => false, 'login_footer_id' => 'login-footer-top' ]) ?> endif ?> foreach (Navigation::getItem('/login') as $key => $nav) : ?> if ($nav->isVisible()) : ?> if ($key === 'standard_login' && $show_login) continue; ?> $name_and_title = explode(' - ', $nav->getTitle()) ?> if (is_internal_url($url = $nav->getURL())) : ?> SkipLinks::addLink($name_and_title[0], URLHelper::getLink($url, ['cancel_login' => 1])) ?> getLinkAttributes()) ?>> else : ?> endif ?> = htmlReady($name_and_title[0]) ?> = htmlReady(!empty($name_and_title[1]) ? $name_and_title[1] : $nav->getDescription()) ?> endif ?> endforeach ?> if ($show_hidden_login) : ?> = $this->render_partial('_standard_loginform', [ 'hidden' => empty($loginerror), 'login_footer_id' => 'login-footer-bottom' ]) ?> endif ?> if (Config::get()->LOGIN_FAQ_VISIBILITY && count($faq_entries) > 0) : ?> = htmlReady(Config::get()->LOGIN_FAQ_TITLE) ?> foreach ($faq_entries as $entry) : ?> = htmlReady($entry->title) ?> = formatReady($entry->description) ?> endforeach ?> endif ?>
= htmlReady(!empty($name_and_title[1]) ? $name_and_title[1] : $nav->getDescription()) ?>