boutons
This commit is contained in:
parent
22faa68904
commit
a3063b306b
|
@ -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();
|
||||
|
|
|
@ -80,3 +80,10 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.commentPageButtonPrevNext{
|
||||
width: 25%;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.commentPageButtonPageNb{
|
||||
width: 40%;
|
||||
}
|
||||
|
|
|
@ -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'; } /* '' */
|
||||
|
|
|
@ -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'; } /* '' */
|
||||
|
|
Loading…
Reference in New Issue