mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
Create navigation_bar.tpl file.
Move create_navigation_bar function from functions_html.inc.php to functions.inc.php. git-svn-id: http://piwigo.org/svn/trunk@3172 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
<legend>{'Elements'|@translate}</legend>
|
||||
|
||||
{if !empty($NAV_BAR)}<div class="navigationBar">{$NAV_BAR}</div>{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
|
||||
{if !empty($thumbnails)}
|
||||
<ul class="thumbnails">
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
|
||||
</fieldset>
|
||||
|
||||
{if !empty($NAV_BAR) }
|
||||
<div class="navigationBar">{$NAV_BAR}</div>
|
||||
{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
|
||||
{if !empty($elements) }
|
||||
<input type="hidden" name="element_ids" value="{$ELEMENT_IDS}" />
|
||||
|
||||
@@ -102,13 +102,7 @@
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
|
||||
{if !empty($NAV_BAR)}
|
||||
<div class="navigationBar">
|
||||
{$NAV_BAR}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
|
||||
<table class="table2" id="detailedStats">
|
||||
<tr class="throw">
|
||||
@@ -139,9 +133,4 @@
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
|
||||
{if !empty($NAV_BAR)}
|
||||
<div class="navigationBar">
|
||||
{$NAV_BAR}
|
||||
</div>
|
||||
{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
|
||||
@@ -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>
|
||||
@@ -32,7 +32,8 @@
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div class="navigationBar">{$NAVBAR}</div>
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
|
||||
<table width="99%">
|
||||
<tr class="throw">
|
||||
<td>{'File'|@translate}</td>
|
||||
@@ -64,4 +65,4 @@
|
||||
{/foreach} {*images*}
|
||||
</table>
|
||||
|
||||
<div class="navigationBar">{$NAVBAR}</div>
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<div class="navigationBar">{$NAVBAR}</div>
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
|
||||
{* delete the selected users ? *}
|
||||
<fieldset>
|
||||
|
||||
Reference in New Issue
Block a user