1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 12:17:42 +02:00

Sitemap Plugin: small updates

This commit is contained in:
Awilum
2012-09-25 23:18:25 +03:00
parent 9bfe67ee0e
commit 26f0c189ca
3 changed files with 8 additions and 7 deletions

View File

@@ -7,5 +7,5 @@
<plugin_description>Show sitemap</plugin_description> <plugin_description>Show sitemap</plugin_description>
<plugin_version>1.0.0</plugin_version> <plugin_version>1.0.0</plugin_version>
<plugin_author>Awilum</plugin_author> <plugin_author>Awilum</plugin_author>
<plugin_author_uri>http://awilum.webdevart.ru/</plugin_author_uri> <plugin_author_uri>http://monstra.org/</plugin_author_uri>
</root> </root>

View File

@@ -54,15 +54,16 @@
*/ */
public static function content() { public static function content() {
// Init vars
$pages_array = array();
$count = 0;
// Get pages table // Get pages table
$pages = new Table('pages'); $pages = new Table('pages');
// Get Pages List
$pages_list = $pages->select('[slug!="error404" and status="published"]'); $pages_list = $pages->select('[slug!="error404" and status="published"]');
$pages_array = array();
$count = 0;
foreach ($pages_list as $page) { foreach ($pages_list as $page) {
$pages_array[$count]['title'] = Html::toText($page['title']); $pages_array[$count]['title'] = Html::toText($page['title']);

View File

@@ -1,5 +1,5 @@
<h3><?php echo __('Sitemap', 'sitemap'); ?></h3> <h3><?php echo __('Sitemap', 'sitemap'); ?></h3>
<br /> <hr>
<ul> <ul>
<?php <?php