2019-06-19 12:30:28 +03:00
|
|
|
var urlUtils = require('../../../server/lib/url-utils'),
|
2016-09-09 13:23:47 +03:00
|
|
|
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 () {
|
2019-06-18 16:13:55 +03:00
|
|
|
var 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;
|