This commit is contained in:
Deltacms 2024-02-03 09:22:09 +01:00
parent 22faa68904
commit a3063b306b
4 changed files with 27 additions and 14 deletions

View File

@ -305,27 +305,29 @@ if($data):
echo '</div>';
if($pagesComment && $nbPage > 1){ ?>
<div class="row" >
<?php if($_SESSION[$commentNumPage] > 1) { ?>
<div class="col1">
<?php $disabledNext = false;
$disabledPrev = false;
if($_SESSION[$commentNumPage] <= 1) $disabledPrev = true;
if($_SESSION[$commentNumPage] >= $nbPage) $disabledNext = true; ?>
<div class="col4 offset4">
<?php echo template::submit('commentPageFormPrev', [
'class' => 'commentPageButtonPrevNext',
'value' => '',
'ico' =>'left'
'value' => '<',
'disabled' => $disabledPrev,
'ico' =>''
]); ?>
</div>
<?php } ?>
<div class="col1" style="padding-top:20px;text-align:center;">
<?php echo template::label('',$text['core']['showComment'][11].$_SESSION[$commentNumPage].'/'.$nbPage,[]); ?>
</div>
<?php if($_SESSION[$commentNumPage] < $nbPage ) { ?>
<div class="col1">
<?php echo template::button('commentButtonPageNumber',[
'class' => 'commentPageButtonPageNb',
'disabled' => true,
'value' => $text['core']['showComment'][11].$_SESSION[$commentNumPage].'/'.$nbPage
]); ?>
<?php echo template::submit('commentPageFormNext', [
'class' => 'commentPageButtonPrevNext',
'value' => '',
'ico' =>'plus'
'value' => '>',
'disabled' => $disabledNext,
'ico' =>''
]); ?>
</div>
<?php } ?>
</div> <?php
}
echo template::formClose();

View File

@ -80,3 +80,10 @@
display: none;
}
.commentPageButtonPrevNext{
width: 25%;
font-size: 1.2em;
}
.commentPageButtonPageNb{
width: 40%;
}

View File

@ -54,3 +54,5 @@
.delta-ico-instagram:before { content: '\f16d'; } /* '' */
.delta-ico-brush:before { content: '\f1fc'; } /* '' */
.delta-ico-pinterest:before { content: '\f231'; } /* '' */
.delta-ico-left-open:before { content: '\e832'; } /* '' */
.delta-ico-right-open:before { content: '\e833'; } /* '' */

View File

@ -96,3 +96,5 @@
.delta-ico-instagram:before { content: '\f16d'; } /* '' */
.delta-ico-brush:before { content: '\f1fc'; } /* '' */
.delta-ico-pinterest:before { content: '\f231'; } /* '' */
.delta-ico-left-open:before { content: '\e832'; } /* '' */
.delta-ico-right-open:before { content: '\e833'; } /* '' */