aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/lvgselector/subtree.php
blob: b8e05d4f471f97bdefe217d34d0a6ad5c1245735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?
# Lifter010: TODO
?>
<ul>
    <? foreach ($subtree->getChildren() as $child) : ?>
        <li>
            <?
                $has_children = $child->hasChildren();
            ?>

            <div>
                <?= $this->render_partial('course/lvgselector/entry',
                                          ['area' => $child,
                                                'show_link' => $has_children]) ?>
            </div>

            <? if ($selection->getShowAll() && $has_children) : ?>
                <?= $this->render_partial('course/lvgselector/subtree', ['subtree' => $child]) ?>
            <? endif ?>

        </li>
    <? endforeach ?>
</ul>