SkipLinks::insertContainer() ?>
SkipLinks::addIndex(_('Hauptinhalt'), 'layout_content', 100, true) ?>
= PageLayout::getBodyElements() ?>
include 'lib/include/header.php' ?>
$contextable = Context::get() && (
(Navigation::hasItem('/course') && Navigation::getItem('/course')->isActive()) ||
(Navigation::hasItem('/admin/institute') && Navigation::getItem('/admin/institute')->isActive())); ?>
>
if (PageLayout::isHeaderEnabled() && Navigation::hasItem('/course') && Navigation::getItem('/course')->isActive() && $_SESSION['seminar_change_view_'.Context::getId()]) : ?>
= $this->render_partial('change_view', ['changed_status' => $_SESSION['seminar_change_view_'.Context::getId()]]) ?>
endif ?>
if (Context::get() || PageLayout::isHeaderEnabled()): ?>
endif; ?>
if (is_object($GLOBALS['user']) && $GLOBALS['user']->id != 'nobody') {
// only mark course if user is logged in and free access enabled
$is_public_course = Context::isCourse() && Config::get()->ENABLE_FREE_ACCESS;
$is_public_institute = Context::isInstitute()
&& Config::get()->ENABLE_FREE_ACCESS
&& Config::get()->ENABLE_FREE_ACCESS != 'courses_only';
if (($is_public_course || $is_public_institute)
&& Navigation::hasItem('/course')
&& Navigation::getItem('/course')->isActive())
{
// indicate to the template that this course is publicly visible
// need to handle institutes separately (always visible)
if ($GLOBALS['SessSemName']['class'] == 'inst') {
$header_template->public_hint = _('öffentliche Einrichtung');
} else if (Course::findCurrent()->lesezugriff == 0) {
$header_template->public_hint = _('öffentliche Veranstaltung');
}
}
}
?>
if (Context::get() && strpos(PageLayout::getTitle(), Context::getHeaderLine() . ' - ') !== FALSE) : ?>
= htmlReady(str_replace(Context::getHeaderLine() . ' - ' , '', PageLayout::getTitle())) ?>
else: ?>
= htmlReady( PageLayout::getTitle()) ?>
endif ?>
= !empty($public_hint) ? '(' . htmlReady($public_hint) . ')' : '' ?>
= Sidebar::get()->render() ?>
if (PageLayout::isFullscreenModeAllowed()): ?>
= $this->render_partial('shared/fullscreen-toggle.php') ?>
endif; ?>
= implode(PageLayout::getMessages()) ?>
= $content_for_layout ?>
// Closes #layout_page opened in included templates/header.php ?>
= $this->render_partial('footer'); ?>
/*