blog article navigation
This commit is contained in:
parent
77ba9e00d2
commit
2c65b8ab35
|
@ -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()) {
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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é'
|
||||
|
|
|
@ -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): ?>
|
||||
|
|
|
@ -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']) !=='' ){ ?>
|
||||
|
|
Loading…
Reference in New Issue