Pequenio/php/sidebar.php
2017-12-27 22:07:35 +01:00

19 lines
422 B
PHP

<h1 class="site-title">
<a href="<?php echo $Site->url() ?>">
<?php echo $Site->title() ?>
</a>
</h1>
<ul class="static-pages">
<?php
$staticPages = $dbPages->getStaticDB();
foreach ($staticPages as $pageKey) {
$staticPage = buildPage($pageKey);
echo '<li>';
echo '<a href="'.$staticPage->permalink().'">';
echo $staticPage->title();
echo '</a>';
echo '</li>';
}
?>
</ul>