Line | |
---|
1 | <div class="navigationBarSimple"> |
---|
2 | {if isset($navbar.URL_PREV)} |
---|
3 | <a class="prew" href="{$navbar.URL_PREV}" rel="prev">></a> |
---|
4 | {/if} |
---|
5 | {if isset($navbar.URL_NEXT)} |
---|
6 | <a class="next" href="{$navbar.URL_NEXT}" rel="next">></a> |
---|
7 | {/if} |
---|
8 | </div> |
---|
9 | |
---|
10 | <div class="navigationBar"> |
---|
11 | {if isset($navbar.URL_FIRST)} |
---|
12 | <a href="{$navbar.URL_FIRST}" rel="first"><<</a> |
---|
13 | <a href="{$navbar.URL_PREV}" rel="prev"><</a> |
---|
14 | {else} |
---|
15 | <span><<</span> |
---|
16 | <span><</span> |
---|
17 | {/if} |
---|
18 | |
---|
19 | {assign var='prev_page' value=0} |
---|
20 | {foreach from=$navbar.pages key=page item=url} |
---|
21 | {if $page > $prev_page+1}<span>...</span>{/if} |
---|
22 | {if $page == $navbar.CURRENT_PAGE} |
---|
23 | <span class="pageNumberSelected">{$page}</span> |
---|
24 | {else} |
---|
25 | <a href="{$url}">{$page}</a> |
---|
26 | {/if} |
---|
27 | {assign var='prev_page' value=$page} |
---|
28 | {/foreach} |
---|
29 | |
---|
30 | {if isset($navbar.URL_NEXT)} |
---|
31 | <a href="{$navbar.URL_NEXT}" rel="next">></a> |
---|
32 | <a href="{$navbar.URL_LAST}" rel="last">>></a> |
---|
33 | {else} |
---|
34 | <span>></span> |
---|
35 | <span>>></span> |
---|
36 | {/if} |
---|
37 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.