26 lines
949 B
PHTML
Executable File
26 lines
949 B
PHTML
Executable File
<?php if ($this->pageCount): ?>
|
|
<div class="paginationControl">
|
|
<!-- Previous page link -->
|
|
<?php if (isset($this->previous)): ?>
|
|
<a href="<?= $this->url(array('page' => $this->previous)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">< Previous</a>
|
|
<?php else: ?>
|
|
<span class="disabled">< Previous</span>
|
|
<?php endif; ?>
|
|
|
|
<!-- Numbered page links -->
|
|
<?php foreach ($this->pagesInRange as $page): ?>
|
|
<?php if ($page != $this->current): ?>
|
|
<a href="<?= $this->url(array('page' => $page)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>"><?= $page; ?></a>
|
|
<?php else: ?>
|
|
<span class="current"><?= $page; ?></span>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
|
|
<!-- Next page link -->
|
|
<?php if (isset($this->next)): ?>
|
|
<a href="<?= $this->url(array('page' => $this->next)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">Next ></a>
|
|
<?php else: ?>
|
|
<span class="disabled">Next ></span>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endif; ?> |