aboutsummaryrefslogtreecommitdiff
path: root/templates/helpbar/helpbar.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /templates/helpbar/helpbar.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'templates/helpbar/helpbar.php')
-rw-r--r--templates/helpbar/helpbar.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/templates/helpbar/helpbar.php b/templates/helpbar/helpbar.php
index 6f80c4d..6f8efbb 100644
--- a/templates/helpbar/helpbar.php
+++ b/templates/helpbar/helpbar.php
@@ -1,13 +1,23 @@
+<?php
+/**
+ * @var bool $open
+ * @var Widget[] $widgets
+ */
+?>
<div class="helpbar-container">
- <?= SkipLinks::addIndex(_('Tipps & Hilfe'), 'helpbar_icon', 920) ?>
- <a id="helpbar_icon" href="#" class="helpbar-toggler" data-toggles=".helpbar" title="<?= _('Hilfelasche anzeigen/verstecken') ?>">
+ <? SkipLinks::addIndex(_('Tipps & Hilfe'), 'helpbar_icon', 920) ?>
+ <a id="helpbar_icon" href="#" class="helpbar-toggler" data-toggles=".helpbar" role="button"
+ title="<?= _('Hilfelasche anzeigen/verstecken') ?>" aria-controls="helpbar-content"
+ aria-expanded="<?= $open ? 'true' : 'false' ?>">
<?= Icon::create('question-circle')->asImg(24, ['alt' => '']) ?>
</a>
- <div class="helpbar" <? if (!$open) echo 'style="display: none"'; ?>>
+ <div class="helpbar" id="helpbar-content" <? if (!$open) echo 'style="display: none"'; ?>>
<h2 class="helpbar-title">
<?= _('Tipps & Hilfe') ?>
- <a href="#" class="helpbar-toggler" data-toggles=".helpbar" aria-hidden="true" title="<?= _('Hilfelasche verstecken') ?>">
+ <a href="#" class="helpbar-toggler" data-toggles=".helpbar" aria-hidden="true" role="button"
+ title="<?= _('Hilfelasche verstecken') ?>" aria-controls="helpbar-content"
+ aria-expanded="<?= $open ? 'true' : 'false' ?>">
<?= Icon::create('decline-circle', Icon::ROLE_INFO_ALT)->asImg(24, ['alt' => '']) ?>
</a>
</h2>
@@ -37,7 +47,7 @@
</ul>
</div>
</div>
-<? if ($tour_data['active_tour_id']) : ?>
+<? if (!empty($tour_data['active_tour_id'])) : ?>
<script>
STUDIP.Tour.init('<?=$tour_data['active_tour_id']?>', '<?=$tour_data['active_tour_step_nr']?>')
</script>