You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
<?php |
|
$c = Request::controllerName (); |
|
$a = Request::actionName (); |
|
$params = Request::params (); |
|
|
|
$conf = new RSSConfiguration (); |
|
$order = Session::param ('order', $conf->sortOrder ()); |
|
if ($order == 'low_to_high') { |
|
$first_link = Translate::t ('newer'); |
|
$second_link = Translate::t ('older'); |
|
} else { |
|
$first_link = Translate::t ('older'); |
|
$second_link = Translate::t ('newer'); |
|
} |
|
?> |
|
|
|
<ul class="pagination"> |
|
<li class="item pager-previous"> |
|
<?php if ($this->currentPage > 1) { ?> |
|
<?php $params[$getteur] = $this->currentPage - 1; ?> |
|
<a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">‹ <?php echo $first_link ?></a> |
|
<?php } else { ?> |
|
|
|
<?php } ?> |
|
</li> |
|
|
|
<li class="item pager-current">page <?php echo $this->currentPage; ?> / <?php echo $this->nbPage; ?></li> |
|
|
|
<li class="item pager-next"> |
|
<?php if ($this->currentPage < $this->nbPage) { ?> |
|
<?php $params[$getteur] = $this->currentPage + 1; ?> |
|
<a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo $second_link; ?> ›</a> |
|
<?php } else { ?> |
|
|
|
<?php } ?> |
|
</li> |
|
</ul>
|
|
|