Fixed theme Bug to not show Draft Pages
This commit is contained in:
parent
f5d481beab
commit
64a9f1e156
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user