La validation des options du blog ferme l'écran

This commit is contained in:
Fred Tempez 2023-06-20 17:42:20 +02:00
parent 3f43830154
commit 886ed303be
4 changed files with 9 additions and 12 deletions

View File

@ -574,7 +574,7 @@ class blog extends common
]);
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/option',
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config',
'notification' => helper::translate('Modifications enregistrées'),
'state' => true
]);

View File

@ -1,6 +1,7 @@
# version 6.9
- Bloque l'effacement de l'article selon le profil
- 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
- Erreur de décompte des commentaires approuvés ou non dans l'index
# version 6.7

View File

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

View File

@ -72,8 +72,7 @@
)
)
): ?>
<a
href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/edit/' . $articleId; ?>">
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/edit/' . $articleId; ?>">
<?php echo template::ico('pencil'); ?> Éditer
</a>
<?php endif; ?>
@ -150,15 +149,11 @@
<?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); ?>...
<div class="readMoreContainer">
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>"><button
class="readMoreButton">Lire la suite</button></a>
<div class="readMoreContainer">
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">
<button class="readMoreButton">
<?php echo helper::translate('Lire la suite'); ?>
</button>
</a>
</div>
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">
<button class="readMoreButton">
<?php echo helper::translate('Lire la suite'); ?>
</button>
</a>
</div>
</div>
</div>