Ne pas afficher les barres dans le site map
This commit is contained in:
parent
0b3e4ee137
commit
21786743c6
@ -1,14 +1,16 @@
|
||||
<ul>
|
||||
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
|
||||
<li>
|
||||
<?php if ($this->getData(['page', $parentId, 'disable']) == false) { ?>
|
||||
<?php if ($this->getData(['page', $parentId, 'disable']) == false ||
|
||||
$this->getData(['page', $parentId, 'block']) !== 'bar') { ?>
|
||||
<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) { ?>
|
||||
<?php if ($this->getData(['page', $childId, 'disable']) == false ||
|
||||
$this->getData(['page', $childId, 'block']) == 'bar') { ?>
|
||||
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
|
||||
<?php } else { ?>
|
||||
<?php echo $this->getData(['page', $childId, 'title']); }?>
|
||||
|
Loading…
Reference in New Issue
Block a user