Last active
August 29, 2015 14:06
-
-
Save iamtchelo/9abbbbbd73d7090a9316 to your computer and use it in GitHub Desktop.
Revisions
-
iamtchelo revised this gist
Sep 19, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ <?php endif; ?> <?php endforeach; ?> <!-- Next page link --> <?php if (isset($this->next)): ?> <li><a href="<?php echo $this->url($this->route, array('controller' => $this->controller, 'page' => $this->next)); ?>">»</a></li> <?php else: ?> -
iamtchelo created this gist
Sep 19, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ <?php if ($this->pageCount): ?> <ul class="pagination"> <!-- Previous page link --> <?php if (isset($this->previous)): ?> <li><a href="<?php echo $this->url($this->route, array('controller' => $this->controller, 'page' => $this->previous)); ?>">«</a></li> <?php else: ?> <li class="disabled"><a>«</a></li> <?php endif; ?> <?php foreach ($this->pagesInRange as $page): ?> <?php if ($page != $this->current): ?> <li><a href="<?php echo $this->url($this->route, array('controller' => $this->controller, 'page' => $page)); ?>"><?php echo $page ?></a></li> <?php else: ?> <li class="active"><a href="<?php echo $this->url($this->route, array('controller' => $this->controller, 'page' => $page)); ?>"><?php echo $page ?></a></li> <?php endif; ?> <?php endforeach; ?> <!-- Previous page link --> <?php if (isset($this->next)): ?> <li><a href="<?php echo $this->url($this->route, array('controller' => $this->controller, 'page' => $this->next)); ?>">»</a></li> <?php else: ?> <li class="disabled"><a>»</a></li> <?php endif; ?> </ul> <?php endif; ?>