30 lines
1.4 KiB
PHTML
30 lines
1.4 KiB
PHTML
<?php if ($this->pageCount): ?>
|
|
<nav>
|
|
<ul class="pagination pagination-sm">
|
|
<!-- Previous page link -->
|
|
<?php if (isset($this->previous)): ?>
|
|
<li>
|
|
<a href="javascript:void(0);" onclick="related(<?php echo $this->previous;?>)"><span>« <span class="sr-only">(current)</span></span></a>
|
|
</li>
|
|
<?php else: ?>
|
|
<li class="disabled"><a href="javascript:void(0);"><span><span aria-hidden="true">«</span></span></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="disabled"><a href="javascript:void(0);"><span><span aria-hidden="true"><?= $page; ?></span></span></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:void(0);"><span><span aria-hidden="true">»</span></span></a></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</nav>
|
|
<?php endif; ?> |