diff options
Diffstat (limited to '')
-rw-r--r-- | template/yoga/navigation_bar.tpl | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/template/yoga/navigation_bar.tpl b/template/yoga/navigation_bar.tpl new file mode 100644 index 000000000..94c8ad05f --- /dev/null +++ b/template/yoga/navigation_bar.tpl @@ -0,0 +1,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>
\ No newline at end of file |