<div class="uk-width-3-4">
<ul class="uk-pagination" >
<?php
- if($TemplateData['pagination']['curPage'] > 1) {
- echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']-1))).'">
- <span uk-pagination-previous></span></a></li>';
- }
+ if($TemplateData['pagination']['curPage'] > 1) {
+ echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']-1))).'">
+ <span uk-pagination-previous></span></a></li>';
+ }
+ $ellipsisShown = 0;
- $ellipsisShown = 0;
- for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
- $active = '';
- if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active';
-
- if(in_array($i,$TemplateData['pagination']['visibleRange'])) {
- echo '<li class="'.$active.'"><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>$i)).'"
- title="Goto page '.$i.'">'.$i.'</a></li>';
- }
- else {
- if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) {
- echo '<li class="uk-disabled"><span>…</span></li>';
- $ellipsisShown = 1;
- }
- if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) {
- echo '<li class="uk-disabled"><span>…</span></li>';
- $ellipsisShown = 2;
- }
- }
- }
+ for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
+ $active = '';
+ if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active';
+ if(in_array($i,$TemplateData['pagination']['visibleRange'])) {
+ echo '<li class="'.$active.'"><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>$i)).'"
+ title="Goto page '.$i.'">'.$i.'</a></li>';
+ }
+ else {
+ if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) {
+ echo '<li class="uk-disabled"><span>…</span></li>';
+ $ellipsisShown = 1;
+ }
+ if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) {
+ echo '<li class="uk-disabled"><span>…</span></li>';
+ $ellipsisShown = 2;
+ }
+ }
+ }
- if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) {
- echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']+1))).'">
- <span uk-pagination-next></span></a></li>';
- }
+ if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) {
+ echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']+1))).'">
+ <span uk-pagination-next></span></a></li>';
+ }
?>
</ul>
</div>