2009-03-06 03:20:46 +00:00
|
|
|
<?php if ($this->pageCount): ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
<ul class="pagination">
|
2009-03-06 03:20:46 +00:00
|
|
|
<!-- Previous page link -->
|
|
|
|
<?php if (isset($this->previous)): ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
<li><a href="<?= $this->url(array('page' => $this->previous)); ?>">«</a></li>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php else: ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
<li class="disabled"><a href="javascript:;">«</a></li>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<!-- Numbered page links -->
|
|
|
|
<?php foreach ($this->pagesInRange as $page): ?>
|
|
|
|
<?php if ($page != $this->current): ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
<li><a href="<?= $this->url(array('page' => $page)); ?>"><?= $page; ?></a></li>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php else: ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
<li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
<!-- Next page link -->
|
|
|
|
<?php if (isset($this->next)): ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
<li><a href="<?= $this->url(array('page' => $this->next)); ?>">»</a></li>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php else: ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
<li class="disabled"><a href="javascript:;">»</a></li>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php endif; ?>
|
2014-09-13 02:18:32 +00:00
|
|
|
</ul>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php endif; ?>
|