2020-05-28 13:57:02 +03:00
|
|
|
const urlUtils = require('../../../shared/url-utils');
|
2020-04-29 18:44:27 +03:00
|
|
|
let sitemapsUtils;
|
2014-12-01 13:43:01 +03:00
|
|
|
|
2016-09-09 13:23:47 +03:00
|
|
|
sitemapsUtils = {
|
2014-12-01 13:43:01 +03:00
|
|
|
getDeclarations: function () {
|
2020-04-29 18:44:27 +03:00
|
|
|
let baseUrl = urlUtils.urlFor('sitemap_xsl', true);
|
2014-12-01 13:43:01 +03:00
|
|
|
baseUrl = baseUrl.replace(/^(http:|https:)/, '');
|
|
|
|
return '<?xml version="1.0" encoding="UTF-8"?>' +
|
2015-04-10 18:59:38 +03:00
|
|
|
'<?xml-stylesheet type="text/xsl" href="' + baseUrl + '"?>';
|
2014-12-01 13:43:01 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-09-09 13:23:47 +03:00
|
|
|
module.exports = sitemapsUtils;
|