Browse Source

8.4.3 : correction site map et url metaimage

pull/1/head
fredtempez 4 years ago
parent
commit
428c0f7324
  1. 5
      CHANGES.MD
  2. 4
      core/core.php
  3. 4
      core/module/sitemap/view/index/index.php

5
CHANGES.MD

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

4
core/core.php

@ -24,7 +24,7 @@ class common {
const GROUP_MEMBER = 1;
const GROUP_MODERATOR = 2;
const GROUP_ADMIN = 3;
const ZWII_VERSION = '8.4.2';
const ZWII_VERSION = '8.4.3';
public static $actions = [];
public static $coreModuleIds = [
@ -2015,7 +2015,7 @@ class layout extends common {
* Affiche la meta image (site screenshot)
*/
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" />';
}

4
core/module/sitemap/view/index/index.php

@ -1,14 +1,14 @@
<ul>
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
<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>
<?php } else { ?>
<?php echo $this->getData(['page', $parentId, 'title']); }?>
<ul>
<?php foreach($childIds as $childId): ?>
<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>
<?php } else { ?>
<?php echo $this->getData(['page', $childId, 'title']); }?>

Loading…
Cancel
Save