sitemap_settings['xml_sitemap_general_enable'])){
}
if(isset($siteseo->sitemap_settings['xml_sitemap_general_enable'])){
add_rewrite_rule('^sitemaps.xml$', 'index.php?siteseo_sitemap=1', 'top');
add_action('template_redirect','SiteSEO\Generate_sitemap::render_sitemap');
add_filter('query_vars', 'SiteSEO\Generate_sitemap::enable_args');
}
add_rewrite_rule('author.xml?$', 'index.php?siteseo_author=1', 'top');
}
static function enable_args($vars){
$vars[] = 'sitemap';
return $vars;
}
static function render_sitemap(){
/*
if(get_query_var('sitemap')){
// Set the correct header for XML
header('Content-Type: application/xml; charset=utf-8');
// Start outputting the XML structure
echo '';
echo '