Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #40 from fbergkemper/master
Browse files Browse the repository at this point in the history
  • Loading branch information
frabdev committed Sep 3, 2014
2 parents 80d8706 + 7f76bf5 commit 13ec7de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions module/Application/view/partial/paginator.phtml
Expand Up @@ -8,7 +8,7 @@
<!-- previous page link -->
<?php if(isset($this->previous)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->previous; ?>">previous</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->previous; ?>">previous</a>
</li>
<?php else: ?>
<li class="disabled">
Expand All @@ -19,15 +19,15 @@
<!-- first page link -->
<?php if(isset($this->first)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->first; ?>">first</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->first; ?>">first</a>
</li>
<?php endif; ?>

<!-- numbered page links -->
<?php foreach($this->pagesInRange as $page): ?>
<?php if($page != $this->current): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $page; ?>"><?php echo $page; ?></a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $page; ?>"><?php echo $page; ?></a>
</li>
<?php else: ?>
<li class="active">
Expand All @@ -39,14 +39,14 @@
<!-- last page link -->
<?php if(isset($this->last)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->last; ?>">last</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->last; ?>">last</a>
</li>
<?php endif; ?>

<!-- next page link -->
<?php if(isset($this->next)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->next; ?>">next</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->next; ?>">next</a>
</li>
<?php else: ?>
<li class="disabled">
Expand Down

0 comments on commit 13ec7de

Please sign in to comment.