2017-07-28 19:37:06 +02:00
|
|
|
<div class="footer section">
|
|
|
|
<div class="footer-inner section-inner">
|
|
|
|
<div class="footer-a widgets">
|
|
|
|
<div class="widget widget_recent_entries">
|
|
|
|
<div class="widget-content">
|
|
|
|
<h3 class="widget-title">Recent Posts</h3>
|
|
|
|
<ul>
|
|
|
|
<?php
|
2017-08-07 10:42:56 +02:00
|
|
|
$pages = $dbPages->getList(1, 5, true);
|
2017-08-06 21:50:01 +02:00
|
|
|
$keys = array_keys($pages);
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-08-06 21:50:01 +02:00
|
|
|
foreach($keys as $pageKey) {
|
|
|
|
$page = buildPage($pageKey);
|
|
|
|
echo '<li><a href="'.$page->permalink().'">'.$page->title().'</a></li>';
|
2017-07-28 19:37:06 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
<div class="footer-b widgets">
|
|
|
|
<div class="widget widget_recent_entries">
|
|
|
|
<div class="widget-content">
|
|
|
|
<h3 class="widget-title">Tags</h3>
|
|
|
|
<ul>
|
|
|
|
<?php
|
2017-08-06 21:50:01 +02:00
|
|
|
$db = $dbTags->db;
|
2017-07-28 19:37:06 +02:00
|
|
|
$filter = $Url->filters('tag');
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
$tagArray = array();
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
foreach($db as $tagKey=>$fields) {
|
|
|
|
$tagArray[] = array('tagKey'=>$tagKey, 'name'=>$fields['name']);
|
|
|
|
}
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
$tagArray = array_slice($tagArray, 0, 5);
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
usort($tagArray, function($a, $b) {
|
|
|
|
return strcmp($a['tagKey'], $b['tagKey']);
|
|
|
|
});
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
foreach($tagArray as $tagKey=>$fields) {
|
|
|
|
echo '<li><a href="'.HTML_PATH_ROOT.$filter.'/'.$fields['tagKey'].'">'.$fields['name'].'</a></li>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
<div class="footer-c widgets">
|
|
|
|
<div class="widget-content">
|
|
|
|
<h3 class="widget-title">Links</h3>
|
|
|
|
<ul>
|
2017-08-07 21:10:38 +02:00
|
|
|
<li><a href="<?php echo Theme::sitemapUrl() ?>">Sitemap</a></li>
|
|
|
|
<li><a href="<?php echo Theme::rssUrl()?>">RSS Feed</a></li>
|
2017-07-28 19:37:06 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2017-08-07 21:10:38 +02:00
|
|
|
|
2017-07-28 19:37:06 +02:00
|
|
|
<div class="clear"></div>
|
|
|
|
</div> <!-- /footer-inner -->
|
|
|
|
</div> <!-- /footer -->
|