This commit is contained in:
Fred Tempez 2023-05-30 21:06:26 +02:00
parent 1dba8f3eb8
commit ac2b29628d
3 changed files with 5 additions and 3 deletions

View File

@ -16,7 +16,7 @@
class blog extends common class blog extends common
{ {
const VERSION = '6.6'; const VERSION = '6.7';
const REALNAME = 'Blog'; const REALNAME = 'Blog';
const DELETE = true; const DELETE = true;
const UPDATE = '0.0'; const UPDATE = '0.0';
@ -871,7 +871,7 @@ class blog extends common
} }
} }
// Pagination // Pagination
$pagination = helper::pagination($articleIds, $this->getUrl(), $this->getData(['module', $this->getUrl(0), 'config', 'itemsperPage'])); $pagination = helper::pagination($articleIds, $this->getUrl(), $this->getData(['module', $this->getUrl(0), 'config', 'itemsperPage']), '#article');
// Liste des pages // Liste des pages
self::$pages = $pagination['pages']; self::$pages = $pagination['pages'];
// Articles en fonction de la pagination // Articles en fonction de la pagination

View File

@ -1,4 +1,6 @@
# version 6.7
- Ancre article qui affiche le début de l'article au clic sur la barre de pages, fonction utile lorsque le module est sous la page
# version 6.6 # version 6.6
- Position de l'icône RSS - Position de l'icône RSS
- Présentation en tableau amélioration du visuel - Présentation en tableau amélioration du visuel

View File

@ -9,7 +9,7 @@
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if ($module::$articles): ?> <?php if ($module::$articles): ?>
<article> <article id="article">
<?php foreach ($module::$articles as $articleId => $article): ?> <?php foreach ($module::$articles as $articleId => $article): ?>
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'layout']) === true): ?> <?php if ($this->getData(['module', $this->getUrl(0), 'config', 'layout']) === true): ?>
<div class="readMoreModernContainer"> <div class="readMoreModernContainer">