forked from ZwiiCMS-Team/ZwiiCMS
site map et page site map
This commit is contained in:
parent
b593bf86fe
commit
e1abf734c4
@ -45,7 +45,7 @@ class common {
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
|
||||
const ZWII_VERSION = '11.2.00.20';
|
||||
const ZWII_VERSION = '11.2.00.21';
|
||||
const ZWII_UPDATE_CHANNEL = "test";
|
||||
|
||||
public static $actions = [];
|
||||
@ -912,7 +912,9 @@ 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);
|
||||
// Cas de la page d'accueil ne pas dupliquer l'URL
|
||||
$pageId = ($parentPageId !== $this->getData(['locale', 'homePageId'])) ? $parentPageId : '';
|
||||
$sitemap->addUrl ('/' . $pageId, $datetime);
|
||||
}
|
||||
// Articles du blog
|
||||
if ($this->getData(['page', $parentPageId, 'moduleId']) === 'blog' &&
|
||||
@ -929,6 +931,8 @@ class common {
|
||||
if ($this->getData(['page',$childKey,'group']) !== 0 || $this->getData(['page', $childKey, 'disable']) === true) {
|
||||
continue;
|
||||
}
|
||||
// Cas de la page d'accueil ne pas dupliquer l'URL
|
||||
$pageId = ($childKey !== $this->getData(['locale', 'homePageId'])) ? $childKey : '';
|
||||
$sitemap->addUrl('/' . $childKey,$datetime);
|
||||
|
||||
// La sous-page est un blog
|
||||
@ -2838,6 +2842,7 @@ class core extends common {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Erreurs
|
||||
if($access === 'login') {
|
||||
http_response_code(302);
|
||||
|
@ -4,7 +4,8 @@
|
||||
<?php
|
||||
if ($this->getData(['page', $parentId, 'disable']) === false && $this->getUser('group') >= $this->getData(['page', $parentId, 'group']))
|
||||
{ ?>
|
||||
<a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
|
||||
<?php $pageUrl = ($parentId !== $this->getData(['locale', 'homePageId'])) ? helper::baseUrl() . $parentId : helper::baseUrl(false) ; ?>
|
||||
<a href="<?php echo $pageUrl; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
|
||||
<?php
|
||||
} else {
|
||||
// page désactivée
|
||||
@ -16,7 +17,8 @@
|
||||
<!-- Sous-page -->
|
||||
<?php if ($this->getData(['page', $childId, 'disable']) === false && $this->getUser('group') >= $this->getData(['page', $parentId, 'group']))
|
||||
{ ?>
|
||||
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
|
||||
<?php $pageUrl = ($childId !== $this->getData(['locale', 'homePageId'])) ? helper::baseUrl() . $childId : helper::baseUrl(false) ; ?>
|
||||
<a href="<?php echo $pageUrl ; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
|
||||
<?php } else { ?>
|
||||
<!-- page désactivée -->
|
||||
<?php echo $this->getData(['page', $childId, 'title']); }?>
|
||||
|
Loading…
Reference in New Issue
Block a user