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:
@@ -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>
|
@@ -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']);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<h3><?php echo __('Sitemap', 'sitemap'); ?></h3>
|
<h3><?php echo __('Sitemap', 'sitemap'); ?></h3>
|
||||||
<br />
|
<hr>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user