mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-08 14:16:54 +02:00
Sitemap Plugin: bug with sitemap.xml - fixed
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
// Add components to sitemap
|
// Add components to sitemap
|
||||||
if (count($components) > 0) {
|
if (count($components) > 0) {
|
||||||
foreach ($components as $component) {
|
foreach ($components as $component) {
|
||||||
$map .= "\t".'<url>'."\n\t\t".'<loc>'.Option::get('siteurl').Text::lowercase($component).'</loc>'."\n\t\t".'<lastmod>'.date("Y-m-d", time()).'</lastmod>'."\n\t\t".'<changefreq>weekly</changefreq>'."\n\t\t".'<priority>1.0</priority>'."\n\t".'</url>'."\n";
|
$map .= "\t".'<url>'."\n\t\t".'<loc>'.Option::get('siteurl').Text::lowercase($component).'</loc>'."\n\t\t".'<lastmod>'.date("Y-m-d", time()).'</lastmod>'."\n\t\t".'<changefreq>weekly</changefreq>'."\n\t\t".'<priority>1.0</priority>'."\n\t".'</url>'."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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[] = __(ucfirst($component), $component);
|
if ( ! in_array($component, Sitemap::$forbidden_components)) $components[] = $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">'.__($component).'</a></li>';
|
echo '<li><a href="'.Option::get('siteurl').Text::lowercase($component).'" target="_blank">'.__(ucfirst($component), $component).'</a></li>';
|
||||||
}
|
}
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user