diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blubber/course_context.php | 4 | ||||
| -rw-r--r-- | templates/dates/seminar_html.php | 2 | ||||
| -rw-r--r-- | templates/email-validation.php | 1 | ||||
| -rw-r--r-- | templates/login/_login_faq.php | 18 | ||||
| -rw-r--r-- | templates/login/_login_news.php | 59 | ||||
| -rw-r--r-- | templates/login/_standard_loginform.php | 69 | ||||
| -rw-r--r-- | templates/login_emailactivation.php | 36 | ||||
| -rw-r--r-- | templates/loginform.php | 185 | ||||
| -rw-r--r-- | templates/mail/notification_html.php | 2 | ||||
| -rw-r--r-- | templates/mail/notification_text.php | 2 | ||||
| -rw-r--r-- | templates/privacy.php | 216 | ||||
| -rw-r--r-- | templates/shared/opengraphinfo_wide.php | 2 |
12 files changed, 6 insertions, 590 deletions
diff --git a/templates/blubber/course_context.php b/templates/blubber/course_context.php index d13752e..0d6d2af 100644 --- a/templates/blubber/course_context.php +++ b/templates/blubber/course_context.php @@ -1,14 +1,14 @@ <div class="blubber_course_info indented"> <div class="headline"> <div class="side"> - <a href="<?= URLHelper::getLink("seminar_main.php", ['auswahl' => $course->getId()]) ?>"> + <a href="<?= URLHelper::getLink("dispatch.php/course/go", ['to' => $course->getId()]) ?>"> <?= htmlReady($course->name) ?> </a> <div class="icons"> <ul class="my-courses-navigation"> <? foreach ($icons as $icon) : ?> <li class="my-courses-navigation-item <? if ($icon->getImage()->signalsAttention()) echo 'my-courses-navigation-important'; ?>"> - <a href="<?= URLHelper::getLink("seminar_main.php", ['auswahl' => $course->getId(), 'redirect_to' => $icon->getURL()]) ?>"<?= $icon->getTitle() ? ' title="'.htmlReady($icon->getTitle()).'"' : "" ?>> + <a href="<?= URLHelper::getLink("dispatch.php/course/go", ['to' => $course->getId(), 'redirect_to' => $icon->getURL()]) ?>"<?= $icon->getTitle() ? ' title="'.htmlReady($icon->getTitle()).'"' : "" ?>> <?= $icon->getImage() ?> </a> </li> diff --git a/templates/dates/seminar_html.php b/templates/dates/seminar_html.php index f227a57..4a95f4d 100644 --- a/templates/dates/seminar_html.php +++ b/templates/dates/seminar_html.php @@ -112,7 +112,7 @@ if (!$dates['regular']['turnus_data'] && empty($dates['irregular'])) { echo '<br>'; printf( _('Details zu allen Terminen im %sAblaufplan%s'), - '<a href="' . URLHelper::getLink('seminar_main.php', array('auswahl' => $seminar_id, 'redirect_to' => 'dispatch.php/course/dates')) . '">', + '<a href="' . URLHelper::getLink('dispatch.php/course/go', array('to' => $seminar_id, 'redirect_to' => 'dispatch.php/course/dates')) . '">', '</a>' ); } diff --git a/templates/email-validation.php b/templates/email-validation.php deleted file mode 100644 index 88297dd..0000000 --- a/templates/email-validation.php +++ /dev/null @@ -1 +0,0 @@ -<?= $message ?> diff --git a/templates/login/_login_faq.php b/templates/login/_login_faq.php deleted file mode 100644 index 75dcc2c..0000000 --- a/templates/login/_login_faq.php +++ /dev/null @@ -1,18 +0,0 @@ -<section id="login-faq-content-wrapper"> - <header class="login-box-header"> - <h2><?= htmlReady(Config::get()->LOGIN_FAQ_TITLE) ?></h2> - </header> - <div class="login-faq-content"> - <? foreach ($faq_entries as $entry): ?> - <article class="studip toggle"> - <header> - <h1><a href="#"><?= htmlReady($entry->title) ?></a></h1> - </header> - <section><?= formatReady($entry->description) ?> - </section> - </article> - <? endforeach ?> - </div> - -</section> - diff --git a/templates/login/_login_news.php b/templates/login/_login_news.php deleted file mode 100644 index bcf8f14..0000000 --- a/templates/login/_login_news.php +++ /dev/null @@ -1,59 +0,0 @@ -<section id="login-news-content-wrapper"> - <? foreach ($news_entries as $entry): ?> - <article class="login-news hidden" id="login-news-<?= htmlReady($entry['news_id']) ?>"> - <header> - <h2><?= htmlReady($entry['topic']) ?></h2> - </header> - <section class="login-news-details"> - <p> - <?= formatReady($entry['body']) ?> - </p> - </section> - </article> - <? endforeach; ?> -</section> -<? if (count($news_entries) > 1): ?> -<nav id="login-news-nav"> - <? foreach ($news_entries as $entry): ?> - <button class="login-news-nav" id="login-news-nav-<?= $entry['news_id'] ?>"> - </button> - <? endforeach; ?> -</nav> -<? endif; ?> - -<? if (!empty($news_entries)) : ?> -<script> - const entries = <?= json_encode($news_entries) ?>; - let currentEntryId = entries[0]['news_id']; - const first = document.getElementById("login-news-<?= htmlReady($news_entries[0]['news_id']) ?>"); - first.classList.remove('hidden'); - const NewsNav = document.getElementById('login-news-nav'); - if (NewsNav) { - const firstTeaserBullet = document.getElementById('login-news-nav-<?= htmlReady($news_entries[0]['news_id']) ?>'); - firstTeaserBullet.classList.add('active-news-bullet'); - entries.forEach(entry => { - document.getElementById(`login-news-nav-${entry.news_id}`).addEventListener('click', e => { - setTeaserById(entry.news_id); - }); - }); - } - -function setTeaserById(id) { - document.querySelectorAll('.login-news-nav').forEach(el => { - el.classList.remove("active-news-bullet"); - }); - - currentEntryId = id; - - document.querySelectorAll('.login-news').forEach(el => { - el.classList.add('hidden'); - }); - - const news = document.getElementById(`login-news-${id}`); - news.classList.remove('hidden'); - - const teaserBullet = document.getElementById(`login-news-nav-${id}`); - teaserBullet.classList.add('active-news-bullet'); -} -</script> -<? endif ?>
\ No newline at end of file diff --git a/templates/login/_standard_loginform.php b/templates/login/_standard_loginform.php deleted file mode 100644 index e111453..0000000 --- a/templates/login/_standard_loginform.php +++ /dev/null @@ -1,69 +0,0 @@ -<?php - -use Studip\Button; - -/** - * @var bool $hidden - * @var string $uname; - */ -$username_tooltip_text = (string) Config::get()->USERNAME_TOOLTIP_TEXT; -$password_tooltip_text = (string) Config::get()->PASSWORD_TOOLTIP_TEXT; -?> - -<form class="default <?= $hidden ? 'hide' : '' ?> <?= $login_form_class ?>" name="login_form" id="login-form" method="post" - action="<?= URLHelper::getLink(Request::url(), ['cancel_login' => null]) ?>" <? if ($hidden) - echo 'hidden'; ?>> - <section> - <? $withTooltip = $username_tooltip_text !== '' || $password_tooltip_text !== ''; ?> - <label class="<?= $withTooltip ? 'with-tooltip' : ''?>"> - <span class="sr-only"><?= _('Benutzername') ?></span> - <input type="text" <?= (mb_strlen($uname ?? '') || $hidden) ? '' : 'autofocus' ?> id="loginname" - name="loginname" value="<?= htmlReady($uname ?? '') ?>" size="20" spellcheck="false" - autocapitalize="off" autocomplete="username" placeholder="<?= _('Benutzername') ?>" required> - </label> - <? if ($username_tooltip_text): ?> - <?= tooltipIcon($username_tooltip_text) ?> - <? endif ?> - <label class="<?= $withTooltip ? 'with-tooltip' : ''?>" style="position: relative"> - <span class="sr-only"><?= _('Passwort') ?></span> - - <input type="password" <?= mb_strlen($uname ?? '') && !$hidden ? 'autofocus' : '' ?> id="password" - name="password" autocomplete="current-password" size="20" required placeholder="<?= _('Passwort') ?>" - > - - <i id="password-toggle" tabindex="0" role="button" class="enter-accessible"> - <?= Icon::create('visibility-checked')->asImg(20, [ - 'id' => 'visible-password', - 'title' => _('Passwort anzeigen'), - ]) ?> - <?= Icon::create('visibility-invisible')->asImg(20, [ - 'id' => 'invisible-password', - 'style' => 'display: none', - 'title' => _('Passwort verstecken'), - ]) ?> - </i> - - </label> - <? if ($password_tooltip_text): ?> - <?= tooltipIcon($password_tooltip_text) ?> - <? endif ?> - <p id="password-caps" style="display: none"><?= _('Feststelltaste ist aktiviert!') ?></p> - </section> - <? if (Config::get()->ENABLE_REQUEST_NEW_PASSWORD_BY_USER && in_array('Standard', $GLOBALS['STUDIP_AUTH_PLUGIN'])): ?> - <a style="line-height: 1 !important" - href="<?= URLHelper::getLink('dispatch.php/new_password', ['cancel_login' => 1]) ?>"> - <? else: ?> - <a style="line-height: 1 !important" - href="mailto:<?= $GLOBALS['UNI_CONTACT'] ?>?subject=<?= rawurlencode('Stud.IP Passwort vergessen - ' . Config::get()->UNI_NAME_CLEAN) ?>&body=<?= rawurlencode('Ich habe mein Passwort vergessen. Bitte senden Sie mir ein Neues.\nMein Nutzername: ' . htmlReady($uname) . "\n") ?>"> - <? endif; ?> - <?= _('Passwort vergessen?') ?> - </a> - - <?= CSRFProtection::tokenTag() ?> - <input type="hidden" name="login_ticket" value="<?= htmlReady(Seminar_Session::get_ticket()) ?>"> - <input type="hidden" name="resolution" value=""> - - <div class="login-button-wrapper"> - <?= Button::create(_('Anmelden'), _('Login'), ['id' => 'submit_login']); ?> - </div> -</form>
\ No newline at end of file diff --git a/templates/login_emailactivation.php b/templates/login_emailactivation.php deleted file mode 100644 index cf8221a..0000000 --- a/templates/login_emailactivation.php +++ /dev/null @@ -1,36 +0,0 @@ -<? -# Lifter010: TODO -use Studip\Button, Studip\LinkButton; -?> -<div align="center"> -<table width="70%" border=0 cellpadding=0 cellspacing=0> -<tr><td class="table_header_bold" colspan=3 align="left"> - <?= Icon::create('mail', 'info_alt')->asImg(['class' => 'text-top']) ?> - <b><?= _('E-Mail Aktivierung') ?></b> -</td></tr> -<tr><td style="background-color: #fff; padding: 1.5em;"> -<?= _('Sie haben Ihre E-Mail-Adresse geändert. Um diese frei zu schalten müssen Sie den Ihnen an Ihre neue Adresse zugeschickten Aktivierungs Schlüssel im folgenden Eingabefeld eintragen.'); ?> -<br><form action="activate_email.php" method="post"> - <?= CSRFProtection::tokenTag() ?> - <input name="key"> - <input name="uid" type="hidden" value="<?= $uid ?>"> - <?= Button::createAccept(_('Abschicken')) ?></form><br><br> -</td></tr></table></div><br> - - -<div align="center"> -<table width="70%" border=0 cellpadding=0 cellspacing=0> -<tr><td class="table_header_bold" colspan=3 align="left"> - <?= Icon::create('mail', 'info_alt')->asImg(['class' => 'text-top']) ?> - <b><?= _('E-Mail Aktivierung neu senden') ?></b> -</td></tr> -<tr><td style="background-color: #fff; padding: 1.5em;"> -<?= _('Sollten Sie keine E-Mail erhalten haben, können Sie sich einen neuen Aktivierungsschlüssel zuschicken lassen. Geben Sie dazu Ihre gewünschte E-Mail-Adresse im folgenden Formular an:'); ?> -<form action="activate_email.php" method="post"> -<?= CSRFProtection::tokenTag() ?> -<input type="hidden" name="uid" value="<?= $uid ?>"> -<table><tr><td><?= _('E-Mail') ?>:</td><td><input name="email1"></td></tr> -<tr><td><?= _('Wiederholung') ?>:</td><td><input name="email2"></td></tr></table> -<?= Button::createAccept(_('Abschicken')) ?> -</form> -</td></tr></table></div><br> diff --git a/templates/loginform.php b/templates/loginform.php deleted file mode 100644 index ec22899..0000000 --- a/templates/loginform.php +++ /dev/null @@ -1,185 +0,0 @@ -<?php -/** - * @var array $loginerror - * @var string $error_msg - * @var LoginFaq[] $faq_entries - */ - -// Get background images (this should be resolved differently since mobile -// browsers might still download the desktop background) -if (!match_route('web_migrate.php')) { - $bg_desktop = LoginBackground::getRandomPicture('desktop'); - if ($bg_desktop) { - $bg_desktop = $bg_desktop->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(); -$enable_faq = count($faq_entries) > 0; -$enable_news = Config::get()->LOGIN_NEWS_VISIBILITY && count($news_entries) > 0; -?> -<main id="content" class="loginpage"> - <div id="background-desktop" style="background: url(<?= $bg_desktop ?>) no-repeat top left/cover;"></div> - <div id="background-mobile" style="background: url(<?= $bg_mobile ?>) no-repeat top left/cover;"></div> - - <div id="login-wrapper"> - <?= Studip\VueApp::create('SystemNotificationManager') - ->withProps([ - 'id' => 'system-notifications', - 'class' => 'system-notifications-login', - 'notifications' => PageLayout::getMessages(MessageBox::class), - ]) - ?> - <div id="login-content-wrapper"> - <div id="loginbox"> - <header> - <h1><?= _('Login') ?></h1> - </header> - <? if ($show_login): ?> - <?= $this->render_partial('login/_standard_loginform', [ - 'hidden' => false, - 'login_form_class' => 'login-top' - ]) ?> - <? endif ?> - <nav class="<?= $show_hidden_login ? 'login-bottom' : '' ?>"> - <? foreach (Navigation::getItem('/login') as $key => $nav): ?> - <? if ($nav->isVisible()): ?> - <? if ($key === 'standard_login' && $show_login) - continue; ?> - <? endif ?> - <? $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])) ?> - <a href="<?= URLHelper::getLink($url, ['cancel_login' => 1]) ?>" - <?= arrayToHtmlAttributes($nav->getLinkAttributes()) ?>> - <? else: ?> - <a href="<?= htmlReady($url) ?>" target="_blank" rel="noopener noreferrer"> - <? endif ?> - <p class="title"><?= htmlReady($name_and_title[0]) ?></p> - <p class="description"> - <?= htmlReady(!empty($name_and_title[1]) ? $name_and_title[1] : $nav->getDescription()) ?> - </p> - </a> - <? endforeach ?> - - <? if (Config::get()->ENABLE_SELF_REGISTRATION): ?> - <a href="<?= URLHelper::getLink('dispatch.php/registration', ['cancel_login' => 1]) ?>" - title="<?= _('Registrieren, um das System erstmalig zu nutzen') ?>" class="link-registration"> - <?= _('Kein Zugang? Jetzt registrieren') ?> - </a> - <? endif; ?> - </nav> - - <? if ($show_hidden_login): ?> - <?= $this->render_partial('login/_standard_loginform', [ - 'hidden' => empty($loginerror), - 'login_form_class' => 'login-bottom' - ]) ?> - <? endif ?> - <? if ($GLOBALS['UNI_LOGIN_ADD']): ?> - <footer> - <div class="uni_login_add"> - <?= $GLOBALS['UNI_LOGIN_ADD'] ?> - </div> - </footer> - <? endif ?> - </div> - <div id="login-infobox" class="<?= !$enable_news && !$enable_faq ? 'hide' :'' ?> <?= !($enable_faq && $enable_news) ? 'no-toggle' : ''?>"> - <? if ($enable_faq && $enable_news): ?> - <div id="login-infobox-button-wrapper"> - <button id="hide-faq" class="selected" title="<?= _('Ankündigungen anzeigen') ?>"> - <?= Icon::create('news')->asImg(24, ['style' => 'align-self: end;']) ?> - </button> - <button id="show-faq" title="<?= _('Hinweise zum Login anzeigen')?>"> - <?= Icon::create('faq')->asImg(24, ['style' => 'align-self: end;']) ?> - </button> - - </div> - <? endif; ?> - <? if ($enable_faq): ?> - <div id="login-faq-box" class="<?= !$enable_news && $enable_faq ? '' : 'hidden' ?>"> - <?= $this->render_partial('login/_login_faq', [ - 'faq_entries' => $faq_entries, - ]) ?> - </div> - <? endif ?> - <? if ($enable_news): ?> - <div id="login-news-box"> - <?= $this->render_partial('login/_login_news', [ - 'news_entries' => $news_entries, - 'enable_faq' => $enable_faq - ]) ?> - </div> - <? endif; ?> - </div> - </div> - </div> -</main> - -<script> - //<![CDATA[ - $(function () { - $('form[name=login]').submit(function () { - $('input[name=resolution]', this).val(screen.width + 'x' + screen.height); - $('input[name=device_pixel_ratio]').val(window.devicePixelRatio || 1); - }); - }); - // --> - - <? if ($enable_faq) : ?> - STUDIP.domReady(() => { - const loginBox = document.getElementById('loginbox'); - const faqContent = document.getElementById('login-faq-content-wrapper'); - const htmlTag = document.documentElement; - - const adjustFaqHeight = () => { - if (!htmlTag.classList.contains('responsive-display')) { - const loginBoxHeight = loginBox.offsetHeight; - - const maxAllowedHeight = loginBoxHeight - 100; - - faqContent.style.maxHeight = `${Math.max(maxAllowedHeight, 0)}px`; - } - }; - - adjustFaqHeight(); - - window.addEventListener('resize', adjustFaqHeight); - }); - <? endif ?> - - <? if ($enable_faq && $enable_news): ?> - const faqButton = document.getElementById('show-faq'); - const newsButton = document.getElementById('hide-faq'); - - faqButton.addEventListener('click', e => { - const faqBox = document.getElementById('login-faq-box'); - const newsBox = document.getElementById('login-news-box'); - newsBox.classList.add('hidden'); - faqBox.classList.remove('hidden'); - faqButton.classList.add('selected'); - newsButton.classList.remove('selected'); - }); - - newsButton.addEventListener('click', e => { - const faqBox = document.getElementById('login-faq-box'); - const newsBox = document.getElementById('login-news-box'); - faqBox.classList.add('hidden'); - newsBox.classList.remove('hidden'); - newsButton.classList.add('selected'); - faqButton.classList.remove('selected'); - }); - <? endif ?> - -</script> diff --git a/templates/mail/notification_html.php b/templates/mail/notification_html.php index 93bc1a8..b1cbdee 100644 --- a/templates/mail/notification_html.php +++ b/templates/mail/notification_html.php @@ -104,7 +104,7 @@ <? foreach ($news as $sem_titel => $data) : ?> <tr class="table_header_bold"> <td style="font-weight: bold;"> - <a href="<?= URLHelper::getLink('seminar_main.php', ['again' => 'yes', 'sso' => $sso, 'auswahl' => $data[0]['seminar_id']]) ?>"> + <a href="<?= URLHelper::getLink('dispatch.php/course/go', ['again' => 'yes', 'sso' => $sso, 'to' => $data[0]['seminar_id']]) ?>"> <?= htmlReady($sem_titel) ?> <?= (($semester = Course::find($data[0]['range_id'])->semester_text) ? ' ('.$semester.')' : '') ?> </a> diff --git a/templates/mail/notification_text.php b/templates/mail/notification_text.php index 47b8a4a..3eb3b2e 100644 --- a/templates/mail/notification_text.php +++ b/templates/mail/notification_text.php @@ -14,7 +14,7 @@ <? foreach ($news as $sem_titel => $data) : ?> <?= sprintf(_("In der Veranstaltung \"%s\" gibt es folgende Neuigkeiten:"), $sem_titel) ?> -<?= URLHelper::getURL('seminar_main.php', ['again' => 'yes', 'sso' => $sso, 'auswahl' => $data[0]['seminar_id']]) ?> +<?= URLHelper::getURL('dispatch.php/course/go', ['again' => 'yes', 'sso' => $sso, 'to' => $data[0]['seminar_id']]) ?> <? foreach ($data as $module) : ?> diff --git a/templates/privacy.php b/templates/privacy.php deleted file mode 100644 index 556451f..0000000 --- a/templates/privacy.php +++ /dev/null @@ -1,216 +0,0 @@ -<? -# Lifter010: TODO -?> -<div class="white" style="padding: 2ex;"> - <table width="100%"> - <tr><td> - <h2><?= _('Stud.IP - Erläuterungen zum Datenschutz im Überblick') ?></h2> - - <p><?= _('Die wichtigsten Informationen auf einen Blick: Wer kann was über mich sehen bzw. herausfinden?') ?></p> - - <table border="1" cellpadding="2" cellspacing="1"> - - <tr> - <th> </th> - <th><?= _('Ich selbst') ?></th> - <th><?= _('Jeder Studierende') ?></th> - <th><?= _('Jeder Tutor oder Tutorin') ?></th> - <th><?= _('Jeder Lehrende') ?></th> - <th><?= _('Jeder Admin') ?></th> - <th><?= _('Mein Tutor oder meien Tutorin') ?></th> - <th><?= _('Meine Lehrperon') ?></th> - <th><?= _('Mein Admin') ?></th> - <th><?= _('Root') ?></th> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Mich suchen') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('E-Mail-Adresse') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Matrikelnummer') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Studiengänge') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Fachsemester') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Stud.IP-Punkte') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Teilname an einer best. VA') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Liste aller besuchten VA') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Tage seit letztem Login') ?></td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Online-Status') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Mein Name an meinen<br>Beiträgen, Dateien, ...') ?></td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - <td style="background-color: green"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Telefonnummer, Adresse, ...') ?></td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - <td style="background-color: yellow"> </td> - </tr> - - <tr> - <td style="background-color: #aaaaaa"><?= _('Welche Dateien, Beiträge,<br>Ankündigungen,... habe ich gelesen?') ?></td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - <td style="background-color: red"> </td> - </tr> - - </table> - - <h3><?= _('Legende:') ?></h3> - - <table border="1" cellpadding="1" cellspacing="2"> - <tr> - <td width="50" style="background-color: green"> </td> - <td><?= _('immer möglich') ?></td> - </tr> - <tr> - <td width="50" style="background-color: yellow"> </td> - <td><?= _('mit meiner Zustimmung möglich') ?></td> - </tr> - <tr> - <td width="50" style="background-color: red"> </td> - <td><?= _('nicht möglich') ?></td> - </tr> - </table> - - </td></tr> - </table> -</div> diff --git a/templates/shared/opengraphinfo_wide.php b/templates/shared/opengraphinfo_wide.php index 0637232..1957bc4 100644 --- a/templates/shared/opengraphinfo_wide.php +++ b/templates/shared/opengraphinfo_wide.php @@ -7,7 +7,7 @@ $videofiles = $og->getVideoFiles(); $audiofiles = $og->getAudioFiles(); $og['image'] = filter_var($og['image'], FILTER_VALIDATE_URL) ? $og['image'] : ''; -if (Config::get()->LOAD_EXTERNAL_MEDIA === "proxy" && Seminar_Session::is_current_session_authenticated()) { +if (Config::get()->LOAD_EXTERNAL_MEDIA === "proxy" && sess()->isCurrentSessionAuthenticated()) { $media_url_func = function ($url) { return $GLOBALS['ABSOLUTE_URI_STUDIP'] . 'dispatch.php/media_proxy?url=' . urlencode($url); }; |
