{{!
Pager
-nextClick - handler script for "next" button, only available if there is a next page
-prevClick - handler script for "previous" button if there is a previous page
+nextHref - link for "next" button, only available if there is a next page
+prevHref - link for "previous" button if there is a previous page
moreNext - indicates there are more pages following those displayed
morePrev - indicates there are more pages preceding
first - first record displayed
found - number of records found
pages:
number - page number
- click - script to go to this page unless it is the current one
+ href - link to this page unless it is the current one
}}
-<div style="float: right">
- {{mkws-translate "Displaying"}}:
- {{first}} {{mkws-translate "to"}} {{last}}
- {{mkws-translate "of"}} {{count}} ({{{mkws-translate "found"}}}: {{found}})
+<div class="mkws-pager-desc">
+ {{#if found}}
+ <span>{{mkws-translate "Displaying"}}</span>:
+ {{first}} <span>{{mkws-translate "to"}}</span> {{last}}
+ <span>{{mkws-translate "of"}}</span> {{count}} (<span>{{{mkws-translate "found"}}}</span>: {{found}})
+ {{else}}
+ No hits.
+ {{/if}}
</div>
-<div style="float: clear">
- {{#if prevClick}}
- <a href="#" class="mkws-prev mkwsPrev" onclick="{{prevClick}}"><< {{{mkws-translate "Prev"}}}</a> |
+<div class="mkws-pager-list">
+ {{#if prevHref}}
+ <a href="{{prevHref}}" class="mkws-prev mkwsPrev">{{{mkws-translate "Prev"}}}</a> |
{{else}}
- <span class="mkws-prev mkwsPrev"><< {{{mkws-translate "Prev"}}}</span> |
+ <span class="mkws-prev mkwsPrev">{{{mkws-translate "Prev"}}}</span> |
{{/if}}
{{#if morePrev}}...{{/if}}
{{#each pages}}
- {{#if click}}
- <a href="#" onclick="{{click}}">{{number}}</a>
+ {{#if href}}
+ <a href="{{href}}">{{number}}</a>
{{else}}
<span class="mkws-current-page mkwsCurrentPage">{{number}}</span>
{{/if}}
{{#if moreNext}}...{{/if}}
- {{#if nextClick}}
- | <a href="#" class="mkws-next mkwsNext" onclick="{{nextClick}}">{{{mkws-translate "Next"}}} >></a>
+ {{#if nextHref}}
+ | <a href="{{nextHref}}" class="mkws-next mkwsNext">{{{mkws-translate "Next"}}}</a>
{{else}}
- | <span class="mkws-next mkwsNext">{{{mkws-translate "Next"}}} >></span>
+ | <span class="mkws-next mkwsNext">{{{mkws-translate "Next"}}}</span>
{{/if}}
</div>