blog article navigation

This commit is contained in:
Deltacms 2023-08-27 17:19:33 +02:00
parent 77ba9e00d2
commit 2c65b8ab35
6 changed files with 20 additions and 5 deletions

View File

@ -18,7 +18,7 @@
class blog extends common {
const VERSION = '6.7';
const VERSION = '6.8';
const REALNAME = 'Blog';
const DELETE = true;
const UPDATE = '0.0';
@ -764,7 +764,7 @@ class blog extends common {
]);
}
// L'article existe
else {
else {
// Soumission du formulaire
if($this->isPost()) {

View File

@ -145,6 +145,7 @@ $text['blog']['commentDelete'][0] = 'Action not permitted';
$text['blog']['commentDelete'][1] = 'Comment deleted';
$text['blog']['commentDeleteAll'][0] = 'Action not allowed';
$text['blog']['commentDeleteAll'][1] = 'Comments deleted';
$text['blog']['article'][0] = 'Back';
$states = [
false => 'Draft',
true => 'Published'

View File

@ -145,6 +145,7 @@ $text['blog']['commentDelete'][0] = 'Acción no permitida';
$text['blog']['commentDelete'][1] = 'Comentario eliminado';
$text['blog']['commentDeleteAll'][0] = 'Acción no permitida';
$text['blog']['commentDeleteAll'][1] = 'Comentarios eliminados';
$text['blog']['article'][0] = 'Atrás';
$states = [
false => 'Borrador',
true => 'Publicado'

View File

@ -145,6 +145,7 @@ $text['blog']['commentDelete'][0] = 'Action non autorisée';
$text['blog']['commentDelete'][1] = 'Commentaire supprimé';
$text['blog']['commentDeleteAll'][0] = 'Action non autorisée';
$text['blog']['commentDeleteAll'][1] = 'Commentaires supprimés';
$text['blog']['article'][0] = 'Retour';
$states = [
false => 'Brouillon',
true => 'Publié'

View File

@ -115,6 +115,18 @@ if( function_exists('datefmt_create') && function_exists('datefmt_format') && ex
</div>
<?php endif; ?>
</div>
<!--Bouton Retour sur la page active-->
<div class="col2">
<?php echo template::button('blogArticleBack', [
'href' => helper::baseUrl() . $_SESSION['pageActive'],
'ico' => 'left',
'value' => $text['blog']['article'][0]
]); ?>
</div>
</div>
<?php if($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'commentClose'])): ?>
<p><?php echo $this->getData(['module', $this->getUrl(0), 'texts', 'ArticleNoComment']); ?></p>
@ -216,9 +228,6 @@ if( function_exists('datefmt_create') && function_exists('datefmt_format') && ex
<?php echo template::formClose(); ?>
<?php endif;?>
<div class="pourTests"></div>
<div class="row">
<div class="col12">
<?php foreach($module::$comments as $commentId => $comment): ?>

View File

@ -22,6 +22,9 @@ if( function_exists('datefmt_create') && function_exists('datefmt_format') && ex
if($module::$articles): ?>
<div class="row">
<div class="col12">
<?php // Mémorisation da la page active
$_SESSION['pageActive'] = $this->getUrl(); ?>
<?php foreach($module::$articles as $articleId => $article): ?>
<div class="row rowArticle">
<?php if( $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture']) !=='' ){ ?>