__construct()
__construct()
Constructeur
Gestionnaire de Sitemap
getElt(string $url, float $priority = '1.0', string $changefreq = 'monthly', string $lastmod = null, string $url_prefix = null) : string
Retourne une ligne du sitemap correspondant à une url
string | $url | |
float | $priority | |
string | $changefreq | |
string | $lastmod | |
string | $url_prefix | prefix à appliquer à l'url saisie |
getMultilangElt( $tab_url, float $priority = '1.0', string $changefreq = 'monthly', string $lastmod = null, string $url_prefix = null) : string
Retourne une ligne du sitemap correspondant à une url
$tab_url | ||
float | $priority | |
string | $changefreq | |
string | $lastmod | |
string | $url_prefix | prefix à appliquer à l'url saisie |
printSitemap( $content, boolean|true $display_source = true, boolean|null $multilingual = null) : string
Génère le sitemap en xml et défini la sortie du template comme "xml"
$content | contenu du sitemap |
|
boolean|true | $display_source | si true, alors ajoute automatiquement l'index du site |
boolean|null | $multilingual | si true active le mode multilangue |