ZwiiCMS/core/module/sitemap/view/index/index.php
Prof Langues 3013b1b6b1 [9.1.00]
2019-05-02 13:21:48 +02:00

24 lines
1.0 KiB
PHP
Executable File

<ul>
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
<li>
<?php if ($this->getData(['page', $parentId, 'disable']) == false ||
$this->getData(['page', $parentId, 'block']) == 'bar' ||
$this->getUser('group') >= $module::$actions[$action]) { ?>
<a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
<?php } else { ?>
<?php echo $this->getData(['page', $parentId, 'title']); }?>
<ul>
<?php foreach($childIds as $childId): ?>
<li>
<?php if ($this->getData(['page', $childId, 'disable']) == false ||
$this->getData(['page', $childId, 'block']) == 'bar' ||
$this->getUser('group') >= $module::$actions[$action]) { ?>
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
<?php } else { ?>
<?php echo $this->getData(['page', $childId, 'title']); }?>
</li>
<?php endforeach; ?>
</ul>
</li>
<?php endforeach; ?>
</ul>