<?php if ($this->pageCount > 1): ?> 
        <div class="pagination">
                <ul>
                        <?php foreach ($this->pagesInRange as $page): ?> 
                                <a href="<?= $this->url(array('page' => $page)); ?>?page=<?php echo $page ?>"><li <?php if ($page == $this->current) echo ' class="active" ' ?>><?php echo $page ?></li></a>
                        <?php endforeach; ?>
                </ul> 
        </div>
<?php endif; ?>
