1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?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" 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" 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" 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>
<ul class="helpbar-widgets">
<? foreach ($widgets as $index => $widget): ?>
<li>
<? if ($widget->icon): ?>
<?= is_string($widget->icon) ? Assets::img($widget->icon, ['class' => 'helpbar-widget-icon']) : $widget->icon->asImg(['class' => 'helpbar-widget-icon', 'alt' => '']) ?>
<? endif; ?>
<?= $widget->render(['base_class' => 'helpbar'])?>
<div class="helpbar-widget-admin-icons">
<? if ($widget->edit_link): ?>
<a href="<?=$widget->edit_link?>" data-dialog="size=auto;reload-on-close">
<?= Icon::create('edit', 'info_alt')->asImg(['title' => _('Hilfe-Text bearbeiten'), 'alt' => '']) ?></a>
<? endif; ?>
<? if ($widget->delete_link): ?>
<a href="<?=$widget->delete_link?>" data-dialog="size=auto;reload-on-close">
<?= Icon::create('trash', 'info_alt')->asImg(['title' => _('Hilfe-Text löschen'), 'alt' => '']) ?></a>
<? endif; ?>
<? if ($widget->add_link): ?>
<a href="<?=$widget->add_link?>" data-dialog="size=auto;reload-on-close">
<?= Icon::create('add', 'info_alt')->asImg(['title' => _('Neuer Hilfe-Text'), 'alt' => '']) ?></a>
<? endif; ?>
</div>
</li>
<? endforeach; ?>
</ul>
</div>
</div>
<? if (!empty($tour_data['active_tour_id'])) : ?>
<script>
STUDIP.Tour.init('<?=$tour_data['active_tour_id']?>', '<?=$tour_data['active_tour_step_nr']?>')
</script>
<? endif ?>
|