Fixed theme Bug to not show Draft Pages

This commit is contained in:
Alexander K 2016-05-28 08:56:58 -04:00
parent f5d481beab
commit 64a9f1e156

View File

@ -33,17 +33,20 @@
<!-- Links --> <!-- Links -->
<section> <section>
<ul class="links"> <ul class="links">
<?php <?php
$parents = $pagesParents[NO_PARENT_CHAR]; $parents = $pagesParents[NO_PARENT_CHAR];
foreach($parents as $Parent) { foreach($parents as $Parent) {
echo '<li>'; // Check if the parent is published
echo '<a href="'.$Parent->permalink().'"> if( $Parent->published() )
<h3>'.$Parent->title().'</h3> {
<p>'.$Parent->description().'</p> echo '<li>';
</a>'; echo '<a href="'.$Parent->permalink().'">
echo '</li>'; <h3>'.$Parent->title().'</h3>
} <p>'.$Parent->description().'</p>
?> </a>';
echo '</li>';
}}
?>
</ul> </ul>
</section> </section>
@ -93,4 +96,4 @@
<?php Theme::plugins('siteBodyEnd') ?> <?php Theme::plugins('siteBodyEnd') ?>
</body> </body>
</html> </html>