|
|
|
@ -906,7 +906,7 @@ class common {
|
|
|
|
|
}
|
|
|
|
|
// Page désactivée, traiter les sous-pages sans prendre en compte la page parente.
|
|
|
|
|
if ($this->getData(['page', $parentPageId, 'disable']) !== true ) {
|
|
|
|
|
$sitemap->addUrl ($parentPageId,$datetime);
|
|
|
|
|
$sitemap->addUrl ('/' . $parentPageId,$datetime);
|
|
|
|
|
}
|
|
|
|
|
// Articles du blog
|
|
|
|
|
if ($this->getData(['page', $parentPageId, 'moduleId']) === 'blog' &&
|
|
|
|
@ -914,7 +914,7 @@ class common {
|
|
|
|
|
foreach($this->getData(['module',$parentPageId,'posts']) as $articleId => $article) {
|
|
|
|
|
if($this->getData(['module',$parentPageId,'posts',$articleId,'state']) === true) {
|
|
|
|
|
$date = $this->getData(['module',$parentPageId,'posts',$articleId,'publishedOn']);
|
|
|
|
|
$sitemap->addUrl( $parentPageId . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
|
|
|
|
$sitemap->addUrl('/' . $parentPageId . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -923,7 +923,7 @@ class common {
|
|
|
|
|
if ($this->getData(['page',$childKey,'group']) !== 0 || $this->getData(['page', $childKey, 'disable']) === true) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
$sitemap->addUrl($childKey,$datetime);
|
|
|
|
|
$sitemap->addUrl('/' . $childKey,$datetime);
|
|
|
|
|
|
|
|
|
|
// La sous-page est un blog
|
|
|
|
|
if ($this->getData(['page', $childKey, 'moduleId']) === 'blog' &&
|
|
|
|
@ -931,7 +931,7 @@ class common {
|
|
|
|
|
foreach($this->getData(['module',$childKey,'posts']) as $articleId => $article) {
|
|
|
|
|
if($this->getData(['module',$childKey,'posts',$articleId,'state']) === true) {
|
|
|
|
|
$date = $this->getData(['module',$childKey,'posts',$articleId,'publishedOn']);
|
|
|
|
|
$sitemap->addUrl( $childKey . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
|
|
|
|
$sitemap->addUrl( '/' . $childKey . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|