2018-04-02 08:29:19 +02:00
|
|
|
<ul>
|
|
|
|
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
|
|
|
|
<li>
|
2018-10-23 21:23:05 +02:00
|
|
|
<?php if ($this->getData(['page', $parentId, 'disable']) === false) { ?>
|
|
|
|
<a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
|
|
|
|
<?php } else { ?>
|
|
|
|
<?php echo $this->getData(['page', $parentId, 'title']); }?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<ul>
|
|
|
|
<?php foreach($childIds as $childId): ?>
|
|
|
|
<li>
|
2018-10-23 21:23:05 +02:00
|
|
|
<?php if ($this->getData(['page', $childId, 'disable']) === false) { ?>
|
|
|
|
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
|
|
|
|
<?php } else { ?>
|
|
|
|
<?php echo $this->getData(['page', $childId, 'title']); }?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|