Skip to content
Snippets Groups Projects
Commit 0850b4ce authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #4311

Closes #4311

Merge request studip/studip!3115
parent 8f3ad43e
No related branches found
No related tags found
No related merge requests found
...@@ -265,7 +265,7 @@ class Helpbar extends WidgetContainer ...@@ -265,7 +265,7 @@ class Helpbar extends WidgetContainer
$template = $GLOBALS['template_factory']->open('helpbar/helpbar'); $template = $GLOBALS['template_factory']->open('helpbar/helpbar');
$template->widgets = $this->widgets; $template->widgets = $this->widgets;
$template->open = $this->open; $template->open = $this->open;
$template->tour_data = $tour_data; $template->tour_data = $tour_data ?? null;
$content = $template->render(); $content = $template->render();
} }
......
<?php
/**
* @var bool $open
* @var Widget[] $widgets
*/
?>
<div class="helpbar-container"> <div class="helpbar-container">
<?= SkipLinks::addIndex(_('Tipps & Hilfe'), 'helpbar_icon', 920) ?> <? SkipLinks::addIndex(_('Tipps & Hilfe'), 'helpbar_icon', 920) ?>
<a id="helpbar_icon" href="#" class="helpbar-toggler" data-toggles=".helpbar" role="button" <a id="helpbar_icon" href="#" class="helpbar-toggler" data-toggles=".helpbar" role="button"
title="<?= _('Hilfelasche anzeigen/verstecken') ?>" aria-controls="helpbar-content" title="<?= _('Hilfelasche anzeigen/verstecken') ?>" aria-controls="helpbar-content"
aria-expanded="<?= $open ? 'true' : 'false' ?>"> aria-expanded="<?= $open ? 'true' : 'false' ?>">
...@@ -41,7 +47,7 @@ ...@@ -41,7 +47,7 @@
</ul> </ul>
</div> </div>
</div> </div>
<? if ($tour_data['active_tour_id']) : ?> <? if (!empty($tour_data['active_tour_id'])) : ?>
<script> <script>
STUDIP.Tour.init('<?=$tour_data['active_tour_id']?>', '<?=$tour_data['active_tour_step_nr']?>') STUDIP.Tour.init('<?=$tour_data['active_tour_id']?>', '<?=$tour_data['active_tour_step_nr']?>')
</script> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment