8.4.3 : correction site map et url metaimage

This commit is contained in:
fredtempez 2018-11-14 15:40:46 +01:00
parent dfceff96fe
commit 428c0f7324
3 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,10 @@
# ChangeLog # ChangeLog
## Version 8.4.3
* Correction :
- URL incorrecte dans Metaimage
- Erreur dans la génération du sitemap
## Version 8.4.2 ## Version 8.4.2
* Correction : * Correction :
- Modifications de la présentation des en-têtes d'articles de Blog et de News - Modifications de la présentation des en-têtes d'articles de Blog et de News

View File

@ -24,7 +24,7 @@ class common {
const GROUP_MEMBER = 1; const GROUP_MEMBER = 1;
const GROUP_MODERATOR = 2; const GROUP_MODERATOR = 2;
const GROUP_ADMIN = 3; const GROUP_ADMIN = 3;
const ZWII_VERSION = '8.4.2'; const ZWII_VERSION = '8.4.3';
public static $actions = []; public static $actions = [];
public static $coreModuleIds = [ public static $coreModuleIds = [
@ -2015,7 +2015,7 @@ class layout extends common {
* Affiche la meta image (site screenshot) * Affiche la meta image (site screenshot)
*/ */
public function showMetaImage() { public function showMetaImage() {
echo '<meta property="og:image" content="' . helper::baseUrl() .'site/screenshot.png" />'; echo '<meta property="og:image" content="' . helper::baseUrl() .'/site/file/source/screenshot.png" />';
} }

View File

@ -1,14 +1,14 @@
<ul> <ul>
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?> <?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
<li> <li>
<?php if ($this->getData(['page', $parentId, 'disable']) === false) { ?> <?php if ($this->getData(['page', $parentId, 'disable']) == false) { ?>
<a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a> <a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
<?php } else { ?> <?php } else { ?>
<?php echo $this->getData(['page', $parentId, 'title']); }?> <?php echo $this->getData(['page', $parentId, 'title']); }?>
<ul> <ul>
<?php foreach($childIds as $childId): ?> <?php foreach($childIds as $childId): ?>
<li> <li>
<?php if ($this->getData(['page', $childId, 'disable']) === false) { ?> <?php if ($this->getData(['page', $childId, 'disable']) == false) { ?>
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a> <a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
<?php } else { ?> <?php } else { ?>
<?php echo $this->getData(['page', $childId, 'title']); }?> <?php echo $this->getData(['page', $childId, 'title']); }?>