2017-12-11 21:14:05 +03:00
|
|
|
var urlService = require('../../../services/url'),
|
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 () {
|
2017-12-11 21:14:05 +03:00
|
|
|
var baseUrl = urlService.utils.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;
|