Last change
on this file since 3173 was
3173,
checked in by patdenice, 15 years ago
|
Code simplification of commit 3172
|
File size:
943 bytes
|
Line | |
---|
1 | {* $Id: navigation_bar.tpl 3145 2009-02-14 02:24:10Z patdenice $ *} |
---|
2 | <div class="navigationBar"> |
---|
3 | {if isset($navbar.URL_FIRST)} |
---|
4 | <a href="{$navbar.URL_FIRST}" rel="first">{'first_page'|@translate}</a> | |
---|
5 | <a href="{$navbar.URL_PREV}" rel="prev">{'previous_page'|@translate}</a> | |
---|
6 | {else} |
---|
7 | {'first_page'|@translate} | |
---|
8 | {'previous_page'|@translate} | |
---|
9 | {/if} |
---|
10 | |
---|
11 | {assign var='prev_page' value=0} |
---|
12 | {foreach from=$navbar.pages key=page item=url} |
---|
13 | {if $page > $prev_page+1}...{/if} |
---|
14 | {if $page == $navbar.CURRENT_PAGE} |
---|
15 | <span class="pageNumberSelected">{$page}</span> |
---|
16 | {else} |
---|
17 | <a href="{$url}">{$page}</a> |
---|
18 | {/if} |
---|
19 | {assign var='prev_page' value=$page} |
---|
20 | {/foreach} |
---|
21 | |
---|
22 | {if isset($navbar.URL_NEXT)} |
---|
23 | | <a href="{$navbar.URL_NEXT}" rel="next">{'next_page'|@translate}</a> |
---|
24 | | <a href="{$navbar.URL_LAST}" rel="last">{'last_page'|@translate}</a> |
---|
25 | {else} |
---|
26 | | {'next_page'|@translate} |
---|
27 | | {'last_page'|@translate} |
---|
28 | {/if} |
---|
29 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.