RSS and Sitemap fixed links
This commit is contained in:
parent
6ee430dca7
commit
76aa418232
|
@ -8,7 +8,7 @@
|
||||||
<?php
|
<?php
|
||||||
$pages = $dbPages->getList(1, 5, true);
|
$pages = $dbPages->getList(1, 5, true);
|
||||||
$keys = array_keys($pages);
|
$keys = array_keys($pages);
|
||||||
|
|
||||||
foreach($keys as $pageKey) {
|
foreach($keys as $pageKey) {
|
||||||
$page = buildPage($pageKey);
|
$page = buildPage($pageKey);
|
||||||
echo '<li><a href="'.$page->permalink().'">'.$page->title().'</a></li>';
|
echo '<li><a href="'.$page->permalink().'">'.$page->title().'</a></li>';
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-b widgets">
|
<div class="footer-b widgets">
|
||||||
<div class="widget widget_recent_entries">
|
<div class="widget widget_recent_entries">
|
||||||
<div class="widget-content">
|
<div class="widget-content">
|
||||||
|
@ -29,19 +29,19 @@
|
||||||
<?php
|
<?php
|
||||||
$db = $dbTags->db;
|
$db = $dbTags->db;
|
||||||
$filter = $Url->filters('tag');
|
$filter = $Url->filters('tag');
|
||||||
|
|
||||||
$tagArray = array();
|
$tagArray = array();
|
||||||
|
|
||||||
foreach($db as $tagKey=>$fields) {
|
foreach($db as $tagKey=>$fields) {
|
||||||
$tagArray[] = array('tagKey'=>$tagKey, 'name'=>$fields['name']);
|
$tagArray[] = array('tagKey'=>$tagKey, 'name'=>$fields['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tagArray = array_slice($tagArray, 0, 5);
|
$tagArray = array_slice($tagArray, 0, 5);
|
||||||
|
|
||||||
usort($tagArray, function($a, $b) {
|
usort($tagArray, function($a, $b) {
|
||||||
return strcmp($a['tagKey'], $b['tagKey']);
|
return strcmp($a['tagKey'], $b['tagKey']);
|
||||||
});
|
});
|
||||||
|
|
||||||
foreach($tagArray as $tagKey=>$fields) {
|
foreach($tagArray as $tagKey=>$fields) {
|
||||||
echo '<li><a href="'.HTML_PATH_ROOT.$filter.'/'.$fields['tagKey'].'">'.$fields['name'].'</a></li>';
|
echo '<li><a href="'.HTML_PATH_ROOT.$filter.'/'.$fields['tagKey'].'">'.$fields['name'].'</a></li>';
|
||||||
}
|
}
|
||||||
|
@ -52,18 +52,18 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-c widgets">
|
<div class="footer-c widgets">
|
||||||
<div class="widget-content">
|
<div class="widget-content">
|
||||||
<h3 class="widget-title">Links</h3>
|
<h3 class="widget-title">Links</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="<?php echo $Site->url() ?>sitemap.xml">Sitemap</a></li>
|
<li><a href="<?php echo Theme::sitemapUrl() ?>">Sitemap</a></li>
|
||||||
<li><a href="<?php echo $Site->url() ?>rss.xml">RSS Feed</a></li>
|
<li><a href="<?php echo Theme::rssUrl()?>">RSS Feed</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div> <!-- /footer-inner -->
|
</div> <!-- /footer-inner -->
|
||||||
</div> <!-- /footer -->
|
</div> <!-- /footer -->
|
Loading…
Reference in New Issue