Bug d'affichage liste des articles sans image

This commit is contained in:
Fred Tempez 2023-06-20 17:39:04 +02:00
parent 34dbdc18eb
commit 3d8c93acdb
3 changed files with 7 additions and 9 deletions

View File

@ -1,5 +1,6 @@
# version 6.9 # version 6.9
- Masque le code de vérification - Masque le code de vérification
- Corrige un défaut d'affichage de l'article dans l'index, lorsque l'article ne contient pas d'image.
# version 6.8 # version 6.8
- Erreur de décompte des commentaires approuvés ou non dans l'index - Erreur de décompte des commentaires approuvés ou non dans l'index
# version 6.7 # version 6.7

View File

@ -62,6 +62,7 @@
position: relative; position: relative;
float: left; float: left;
margin-top: 5px; margin-top: 5px;
width: 100%;
} }
.blogDate, .blogDate,

View File

@ -150,15 +150,11 @@
<?php $lenght = $this->getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) : 500 ?> <?php $lenght = $this->getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) : 500 ?>
<?php echo helper::subword(strip_tags($article['content'], '<br><p>'), 0, $lenght); ?>... <?php echo helper::subword(strip_tags($article['content'], '<br><p>'), 0, $lenght); ?>...
<div class="readMoreContainer"> <div class="readMoreContainer">
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>"><button <a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">
class="readMoreButton">Lire la suite</button></a> <button class="readMoreButton">
<div class="readMoreContainer"> <?php echo helper::translate('Lire la suite'); ?>
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>"> </button>
<button class="readMoreButton"> </a>
<?php echo helper::translate('Lire la suite'); ?>
</button>
</a>
</div>
</div> </div>
</div> </div>
</div> </div>