1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 12:17:42 +02:00

Update available_pages.view.php

shows only published sites on frontend

found @ http://forum.monstra.org/post/1276/#p1276
This commit is contained in:
bernte
2013-11-23 21:57:17 +01:00
parent b2ef78b556
commit 07a8e823f8

View File

@@ -1,5 +1,11 @@
<ul>
<?php foreach ($pages as $page) { ?>
<?php
foreach ($pages as $page) {
if ($page['status'] == 'published') {
?>
<li><a href="<?php echo $page['parent'].'/'.$page['slug']; ?>"><?php echo $page['title']; ?></a></li>
<?php } ?>
<?php
}
}
?>
</ul>