2018-04-02 08:29:19 +02:00
|
|
|
<ul>
|
|
|
|
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
|
|
|
|
<li>
|
2019-02-09 19:38:00 +01:00
|
|
|
<?php if ($this->getData(['page', $parentId, 'disable']) == false ||
|
2019-04-14 09:23:43 +02:00
|
|
|
$this->getData(['page', $parentId, 'block']) !== 'bar' ||
|
|
|
|
$this->getUser('group') >= $module::$actions[$action]) { ?>
|
2018-10-23 21:23:05 +02:00
|
|
|
<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>
|
2019-02-09 19:38:00 +01:00
|
|
|
<?php if ($this->getData(['page', $childId, 'disable']) == false ||
|
2019-04-14 09:23:43 +02:00
|
|
|
$this->getData(['page', $childId, 'block']) == 'bar' ||
|
|
|
|
$this->getUser('group') >= $module::$actions[$action]) { ?>
|
2018-10-23 21:23:05 +02:00
|
|
|
<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>
|