boutons
This commit is contained in:
parent
22faa68904
commit
a3063b306b
|
@ -305,27 +305,29 @@ if($data):
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
if($pagesComment && $nbPage > 1){ ?>
|
if($pagesComment && $nbPage > 1){ ?>
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<?php if($_SESSION[$commentNumPage] > 1) { ?>
|
<?php $disabledNext = false;
|
||||||
<div class="col1">
|
$disabledPrev = false;
|
||||||
|
if($_SESSION[$commentNumPage] <= 1) $disabledPrev = true;
|
||||||
|
if($_SESSION[$commentNumPage] >= $nbPage) $disabledNext = true; ?>
|
||||||
|
<div class="col4 offset4">
|
||||||
<?php echo template::submit('commentPageFormPrev', [
|
<?php echo template::submit('commentPageFormPrev', [
|
||||||
'class' => 'commentPageButtonPrevNext',
|
'class' => 'commentPageButtonPrevNext',
|
||||||
'value' => '',
|
'value' => '<',
|
||||||
'ico' =>'left'
|
'disabled' => $disabledPrev,
|
||||||
|
'ico' =>''
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
<?php echo template::button('commentButtonPageNumber',[
|
||||||
<?php } ?>
|
'class' => 'commentPageButtonPageNb',
|
||||||
<div class="col1" style="padding-top:20px;text-align:center;">
|
'disabled' => true,
|
||||||
<?php echo template::label('',$text['core']['showComment'][11].$_SESSION[$commentNumPage].'/'.$nbPage,[]); ?>
|
'value' => $text['core']['showComment'][11].$_SESSION[$commentNumPage].'/'.$nbPage
|
||||||
</div>
|
]); ?>
|
||||||
<?php if($_SESSION[$commentNumPage] < $nbPage ) { ?>
|
|
||||||
<div class="col1">
|
|
||||||
<?php echo template::submit('commentPageFormNext', [
|
<?php echo template::submit('commentPageFormNext', [
|
||||||
'class' => 'commentPageButtonPrevNext',
|
'class' => 'commentPageButtonPrevNext',
|
||||||
'value' => '',
|
'value' => '>',
|
||||||
'ico' =>'plus'
|
'disabled' => $disabledNext,
|
||||||
|
'ico' =>''
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
|
||||||
</div> <?php
|
</div> <?php
|
||||||
}
|
}
|
||||||
echo template::formClose();
|
echo template::formClose();
|
||||||
|
|
|
@ -80,3 +80,10 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.commentPageButtonPrevNext{
|
||||||
|
width: 25%;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
.commentPageButtonPageNb{
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
|
@ -54,3 +54,5 @@
|
||||||
.delta-ico-instagram:before { content: '\f16d'; } /* '' */
|
.delta-ico-instagram:before { content: '\f16d'; } /* '' */
|
||||||
.delta-ico-brush:before { content: '\f1fc'; } /* '' */
|
.delta-ico-brush:before { content: '\f1fc'; } /* '' */
|
||||||
.delta-ico-pinterest:before { content: '\f231'; } /* '' */
|
.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-instagram:before { content: '\f16d'; } /* '' */
|
||||||
.delta-ico-brush:before { content: '\f1fc'; } /* '' */
|
.delta-ico-brush:before { content: '\f1fc'; } /* '' */
|
||||||
.delta-ico-pinterest:before { content: '\f231'; } /* '' */
|
.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