blob: 09d26ec80a7ab1c0c85f63aa7c74cef35a66d772 (
plain)
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
|
<?
$id = htmlReady(implode('_', (array) $area->getId()));
$name = htmlReady($area->getDisplayName());
$expand_id = $area->hasChildren() ? $id : implode('_', (array) $area->getTrailParentId());
?>
<input class="lvgruppe_selection_add_<?= $id ?>"
data-id="<?= $id ?>" data-course_id="<?= htmlReady($course_id) ?>"
data-type="<?= get_class($area) ?>"
type="image"
name="lvgruppe_selection[add][<?= $id ?>]"
src="<?= Icon::create('arr_2left', 'sort')->asImagePath(); ?>"
title="<?= _('Diese LV-Gruppe zuordnen') ?>"
alt="<?= _('Diese LV-Gruppe zuordnen') ?>"
<?= (!$area->isAssignable() || $selection->includes($area))
? 'style="visibility:hidden;"' : '' ?>>
<? if (isset($show_link) && $show_link) : ?>
<a class="lvgruppe_selection_expand"
data-id="<?= htmlReady($expand_id) ?>" data-course_id="<?= htmlReady($course_id) ?>"
data-type="<?= get_class($area) ?>"
href="<?= URLHelper::getLink(isset($url) ? $url : '',
['lvgruppe_selection[selected]' => htmlReady($expand_id),
'lvgruppe_selection[type]' => get_class($area)]) ?>">
<?= $name ?>
</a>
<? if (isset($pathes) && count($pathes)) : ?>
<ul>
<? foreach ($pathes as $path) : ?>
<li style="background-color:inherit;padding-left:20px;color:#666666">
<?= htmlReady($path) ?>
</li>
<? endforeach; ?>
</ul>
<? endif; ?>
<? else : ?>
<?= $name ?>
<? if (isset($pathes) && count($pathes)) : ?>
<ul>
<? foreach ($pathes as $path) : ?>
<li style="background-color:inherit;padding-left:20px;color:#666666">
<?= htmlReady($path) ?>
</li>
<? endforeach; ?>
</ul>
<? endif; ?>
<? endif ?>
|