source: extensions/luciano/template/navigation_bar.tpl @ 16824

Last change on this file since 16824 was 5972, checked in by patdenice, 15 years ago

Minor corrections

File size: 1.0 KB
Line 
1<div class="navigationBarSimple">
2{if isset($navbar.URL_PREV)}
3  <a class="prew" href="{$navbar.URL_PREV}" rel="prev">&gt;</a>
4{/if}
5{if isset($navbar.URL_NEXT)}
6  <a class="next" href="{$navbar.URL_NEXT}" rel="next">&gt;</a>
7{/if}
8</div>
9
10<div class="navigationBar">
11  {if isset($navbar.URL_FIRST)}
12    <a href="{$navbar.URL_FIRST}" rel="first">&lt;&lt;</a>
13    <a href="{$navbar.URL_PREV}" rel="prev">&lt;</a>
14  {else}
15    <span>&lt;&lt;</span>
16    <span>&lt;</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">&gt;</a>
32    <a href="{$navbar.URL_LAST}" rel="last">&gt;&gt;</a>
33  {else}
34    <span>&gt;</span>
35    <span>&gt;&gt;</span>
36  {/if}
37</div>
Note: See TracBrowser for help on using the repository browser.