Fixed theme Bug to not show Draft Pages
This commit is contained in:
parent
f5d481beab
commit
64a9f1e156
@ -36,13 +36,16 @@
|
||||
<?php
|
||||
$parents = $pagesParents[NO_PARENT_CHAR];
|
||||
foreach($parents as $Parent) {
|
||||
// Check if the parent is published
|
||||
if( $Parent->published() )
|
||||
{
|
||||
echo '<li>';
|
||||
echo '<a href="'.$Parent->permalink().'">
|
||||
<h3>'.$Parent->title().'</h3>
|
||||
<p>'.$Parent->description().'</p>
|
||||
</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
}}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user