forked from ZwiiCMS-Team/ZwiiCMS
10.1 Erreur de sitemap blog vide
This commit is contained in:
parent
a25523b638
commit
5647416cbc
@ -39,14 +39,14 @@
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<!-- ou articles d'un blog-->
|
<!-- ou articles d'un blog-->
|
||||||
|
|
||||||
<?php if ($this->getData(['page', $parentId, 'moduleId']) === 'blog' ) { ?>
|
<?php if ($this->getData(['page', $parentId, 'moduleId']) === 'blog' &&
|
||||||
<?php
|
!empty($this->getData(['module',$parentId])) ) { ?>
|
||||||
foreach($this->getData(['module',$parentId]) as $articleId => $article): ?>
|
<?php foreach($this->getData(['module',$parentId]) as $articleId => $article): ?>
|
||||||
<?php if($this->getData(['module',$parentId,$articleId,'state']) === true) {?>
|
<?php if($this->getData(['module',$parentId,$articleId,'state']) === true ): ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo helper::baseUrl() . $parentId. '/' . $articleId;?>"><?php echo $article['title']; ?></a>
|
<a href="<?php echo helper::baseUrl() . $parentId. '/' . $articleId;?>"><?php echo $article['title']; ?></a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php endif; ?>
|
||||||
<?php endforeach;
|
<?php endforeach;
|
||||||
} ?>
|
} ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user