php if this- pageCount div class item_pager php if isset this- previou

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php if ($this->pageCount): ?>
<div class="item_pager">
<?php if (isset($this->previous)): ?>
<a href="<?= $this->url(array('page' => $this->previous)); ?>">&laquo;</a>
<?php endif; ?>
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
<a href="<?= $this->url(array('page' => $page)); ?>"><?= $page; ?></a>
<?php else: ?>
<a href="<?= $this->url(array('page' => $page)); ?>" class="current"><?= $page; ?></a>
<?php endif; ?>
<?php endforeach; ?>
<?php if (isset($this->next)): ?>
<a href="<?= $this->url(array('page' => $this->next)); ?>">&raquo;</a>
<?php endif; ?>
</div>
<?php endif; ?>