Last active
February 6, 2018 00:53
-
-
Save brunokunace/811bdaea51c5930b999695ad49cd049d to your computer and use it in GitHub Desktop.
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 characters
| // Gostaria de refatorar esses if's e else's porem tenho que preencher o array $Links independente da verificação | |
| if ($this->getPager() > 1): | |
| $this->Links[] = "<div class='col-sm-12 text-center'><ul class='pagination'><li><a class='' href='?'" . $this->getPage() . "=1\">Primeira</a></li>"; | |
| else: | |
| $this->Links[] = "<div class='col-sm-12 text-center'><ul class='pagination'><li class='active'></li>"; | |
| endif; | |
| if ($this->getPager() != $total_pages): | |
| $this->Links[] = "<li><a class='' href='?'" . $this->getPage() . "=" . $total_pages . ">Última</a></li></ul></div>"; | |
| else: | |
| $this->Links[] = "<li class='active'></li></ul></div>"; | |
| endif; | |
| return $Links; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment