1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 12:17:42 +02:00
Files
php-monstra/plugins/box/pages/views/frontend/available_pages.view.php
bernte 07a8e823f8 Update available_pages.view.php
shows only published sites on frontend

found @ http://forum.monstra.org/post/1276/#p1276
2013-11-23 21:57:17 +01:00

12 lines
229 B
PHP

<ul>
<?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
}
}
?>
</ul>