source: extensions/stripped_black_bloc/template/navigation_bar.tpl @ 21210

Last change on this file since 21210 was 21210, checked in by flop25, 7 years ago

compatibility 2.5: navigation bar

File size: 898 bytes
Line 
1<div class="navigationBar bloc twocol"">
2        <span class="nav_bulle">{'Page'|@translate} {$navbar.CURRENT_PAGE} / {$navbar.pages|@count}</span>
3  {if isset($navbar.URL_FIRST)}
4  <a href="{$navbar.URL_FIRST}" rel="first" class="first nav_bulle">{'First'|@translate}</a>
5  <a href="{$navbar.URL_PREV}" rel="prev" class="newer nav_bulle">«</a>
6  {/if}
7
8  {assign var='prev_page' value=0}
9  {foreach from=$navbar.pages key=page item=url}
10    {if $page > $prev_page+1}...{/if}
11    {if $page == $navbar.CURRENT_PAGE}
12    <span class="current nav_bulle">{$page}</span>
13    {else}
14    <a href="{$url}" class="nav_bulle" >{$page}</a>
15    {/if}
16    {assign var='prev_page' value=$page}
17  {/foreach}
18
19  {if isset($navbar.URL_NEXT)}
20   <a href="{$navbar.URL_NEXT}" rel="next" class="older nav_bulle">»</a>
21   <a href="{$navbar.URL_LAST}" rel="last" class="last nav_bulle">{'Last'|@translate}</a>
22  {/if}
23</div>
Note: See TracBrowser for help on using the repository browser.