Commit 2e20a43c authored by gbyte.co's avatar gbyte.co

Issue #2817497 by fp: Matching schema to sitemaps.org

parent 1a5d2072
......@@ -228,14 +228,19 @@ class SitemapGenerator {
$writer->endElement();
}
}
// Add priority if any.
if (isset($link['priority'])) {
$writer->writeElement('priority', $link['priority']);
}
// Add lastmod if any.
if (isset($link['lastmod'])) {
$writer->writeElement('lastmod', $link['lastmod']);
}
//todo: Implement changefreq here.
// Add priority if any.
if (isset($link['priority'])) {
$writer->writeElement('priority', $link['priority']);
}
$writer->endElement();
}
$writer->endElement();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment