aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/navigation_bar.tpl
blob: 94c8ad05f0cbe639ce9f0b050f5f3a4ad3ce2802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{* $Id: navigation_bar.tpl 3145 2009-02-14 02:24:10Z patdenice $ *}
<div class="navigationBar">

{if isset($navbar.URL_FIRST)}
<a href="{$navbar.URL_FIRST}" rel="first">{'first_page'|@translate}</a>
{else}
{'first_page'|@translate}
{/if}
|
{if isset($navbar.URL_PREV)}
<a href="{$navbar.URL_PREV}" rel="prev">{'previous_page'|@translate}</a>
{else}
{'previous_page'|@translate}
{/if}
|
{assign var='prev_page' value=0}
{foreach from=$navbar.pages key=page item=url}
  {if $page > $prev_page+1} ... {/if}
  {if $page == $navbar.CURRENT_PAGE}
    <span class="pageNumberSelected">{$page}</span>
  {else}
    <a href="{$url}">{$page}</a>
  {/if}
{assign var='prev_page' value=$page}
{/foreach}
|
{if isset($navbar.URL_NEXT)}
<a href="{$navbar.URL_NEXT}" rel="next">{'next_page'|@translate}</a>
{else}
{'next_page'|@translate}
{/if}
|
{if isset($navbar.URL_LAST)}
<a href="{$navbar.URL_LAST}" rel="last">{'last_page'|@translate}</a>
{else}
{'last_page'|@translate}
{/if}

</div>