28 lines
1010 B
PHTML
28 lines
1010 B
PHTML
<?php if ($this->pageCount): ?>
|
|
<div class="pagination pagination-mini">
|
|
<ul>
|
|
<!-- Previous page link -->
|
|
<?php if (isset($this->previous)): ?>
|
|
<li><a href="javascript:void(0);" onclick="related(<?php echo $this->previous;?>)">«</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="javascript:void(0);" onclick="related(<?php echo $page;?>)"><?= $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="javascript:void(0);" onclick="related(<?php echo $this->next;?>)">»</a></li>
|
|
<?php else: ?>
|
|
<li class="disabled"><a href="javascript:;">»</a></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</div>
|
|
<?php endif; ?>
|
|
|