mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 12:48:00 +02:00
Sitemap Plugin: updates
This commit is contained in:
@@ -170,7 +170,7 @@
|
|||||||
|
|
||||||
if (count(Plugin::$components) > 0) {
|
if (count(Plugin::$components) > 0) {
|
||||||
foreach (Plugin::$components as $component) {
|
foreach (Plugin::$components as $component) {
|
||||||
if ( ! in_array($component, Sitemap::$forbidden_components)) $components[] = $component;
|
if ( ! in_array($component, Sitemap::$forbidden_components)) $components[] = Text::lowercase($component);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
if (count($components) > 0) {
|
if (count($components) > 0) {
|
||||||
if (count($pages_list) == 0) { echo '<ul>'; }
|
if (count($pages_list) == 0) { echo '<ul>'; }
|
||||||
foreach ($components as $component) {
|
foreach ($components as $component) {
|
||||||
echo '<li><a href="'.Option::get('siteurl').Text::lowercase($component).'" target="_blank">'.__(ucfirst($component), $component).'</a></li>';
|
echo '<li><a href="'.Option::get('siteurl').$component.'" target="_blank">'.__(ucfirst($component), $component).'</a></li>';
|
||||||
}
|
}
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user