28 lines
1.0 KiB
PHTML
28 lines
1.0 KiB
PHTML
<?php if ($this->pageCount): ?>
|
|
<div class="pagination">
|
|
<ul>
|
|
<!-- Previous page link -->
|
|
<?php if (isset($this->previous)): ?>
|
|
<li><a href="<?= $this->url(array('page' => $this->previous)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">«</a></li>
|
|
<?php else: ?>
|
|
<li class="disabled"><a href="javascript:;">«</a></li>
|
|
<?php endif; ?>
|
|
<!-- Numbered page links -->
|
|
<?php foreach ($this->pagesInRange as $page): ?>
|
|
<?php if ($page != $this->current): ?>
|
|
<li><a href="<?= $this->url(array('page' => $page)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>"><?= $page; ?></a></li>
|
|
<?php else: ?>
|
|
<li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
|
|
<!-- Next page link -->
|
|
<?php if (isset($this->next)): ?>
|
|
<li><a href="<?= $this->url(array('page' => $this->next)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">»</a></li>
|
|
<?php else: ?>
|
|
<li class="disabled"><a href="javascript:;">»</a></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</div>
|
|
<?php endif; ?>
|
|
|