Re-order templates extension alphabetically.
Allow to use template extension for navigation bar. git-svn-id: http://piwigo.org/svn/trunk@3182 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
e0ea9fb92f
commit
1cfe916db2
10 changed files with 24 additions and 22 deletions
|
|
@ -75,10 +75,11 @@ $relevant_parameters = array_merge($relevant_parameters, $permalinks);
|
|||
$eligible_templates = array(
|
||||
'----------' => 'N/A',
|
||||
'about.tpl' => 'about',
|
||||
'footer.tpl' => 'tail',
|
||||
'header.tpl' => 'header',
|
||||
'identification.tpl' => 'identification',
|
||||
'index.tpl' => 'index',
|
||||
'mainpage_categories.tpl' => 'index_category_thumbnails',
|
||||
'thumbnails.tpl' => 'index_thumbnails',
|
||||
'redirect.tpl' => 'redirect',
|
||||
'menubar.tpl' => 'menubar',
|
||||
'menubar_categories.tpl' => 'mbCategories',
|
||||
'menubar_identification.tpl' => 'mbIdentification',
|
||||
|
|
@ -86,21 +87,21 @@ $eligible_templates = array(
|
|||
'menubar_menu.tpl' => 'mbMenu',
|
||||
'menubar_specials.tpl' => 'mbSpecials',
|
||||
'menubar_tags.tpl' => 'mbTags',
|
||||
'header.tpl' => 'header',
|
||||
'footer.tpl' => 'tail',
|
||||
'index.tpl' => 'index',
|
||||
'navigation_bar.tpl' => 'navbar',
|
||||
'nbm.tpl' => 'nbm',
|
||||
'notification.tpl' => 'notification',
|
||||
'picture_content.tpl' => 'default_content',
|
||||
'picture.tpl' => 'picture',
|
||||
'picture_content.tpl' => 'default_content',
|
||||
'popuphelp.tpl' => 'popuphelp',
|
||||
'profile.tpl' => 'profile',
|
||||
'profile_content.tpl' => 'profile_content',
|
||||
'redirect.tpl' => 'redirect',
|
||||
'register.tpl' => 'register',
|
||||
'search.tpl' => 'search',
|
||||
'search_rules.tpl' => 'search_rules',
|
||||
'slideshow.tpl' => 'slideshow',
|
||||
'tags.tpl' => 'tags',
|
||||
'thumbnails.tpl' => 'index_thumbnails',
|
||||
'upload.tpl' => 'upload',);
|
||||
|
||||
$flip_templates = array_flip($eligible_templates);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
<legend>{'Elements'|@translate}</legend>
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
{if !empty($thumbnails)}
|
||||
<ul class="thumbnails">
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
</fieldset>
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
{if !empty($elements) }
|
||||
<input type="hidden" name="element_ids" value="{$ELEMENT_IDS}" />
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
</fieldset>
|
||||
{/if}
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
<table class="table2" id="detailedStats">
|
||||
<tr class="throw">
|
||||
|
|
@ -133,4 +133,4 @@
|
|||
{/if}
|
||||
</table>
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
<table width="99%">
|
||||
<tr class="throw">
|
||||
|
|
@ -65,4 +65,4 @@
|
|||
{/foreach} {*images*}
|
||||
</table>
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@
|
|||
{/foreach}
|
||||
</table>
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
{* delete the selected users ? *}
|
||||
<fieldset>
|
||||
|
|
|
|||
|
|
@ -185,10 +185,11 @@ switch ($page['tab'])
|
|||
// Model list
|
||||
$eligible_templates = array(
|
||||
'about.tpl',
|
||||
'footer.tpl',
|
||||
'header.tpl',
|
||||
'identification.tpl',
|
||||
'index.tpl',
|
||||
'mainpage_categories.tpl',
|
||||
'thumbnails.tpl',
|
||||
'redirect.tpl',
|
||||
'menubar.tpl',
|
||||
'menubar_categories.tpl',
|
||||
'menubar_identification.tpl',
|
||||
|
|
@ -196,21 +197,21 @@ switch ($page['tab'])
|
|||
'menubar_menu.tpl',
|
||||
'menubar_specials.tpl',
|
||||
'menubar_tags.tpl',
|
||||
'header.tpl',
|
||||
'footer.tpl',
|
||||
'index.tpl',
|
||||
'navigation_bar.tpl',
|
||||
'nbm.tpl',
|
||||
'notification.tpl',
|
||||
'picture_content.tpl',
|
||||
'picture.tpl',
|
||||
'picture_content.tpl',
|
||||
'popuphelp.tpl',
|
||||
'profile.tpl',
|
||||
'profile_content.tpl',
|
||||
'redirect.tpl',
|
||||
'register.tpl',
|
||||
'search.tpl',
|
||||
'search_rules.tpl',
|
||||
'slideshow.tpl',
|
||||
'tags.tpl',
|
||||
'thumbnails.tpl',
|
||||
'upload.tpl');
|
||||
|
||||
$options['model'][] = l10n('locfiledit_empty_page');
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
|
||||
</form>
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
{if isset($comments)}
|
||||
<div id="comments">
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
{if !empty($CATEGORIES) }{$CATEGORIES}{/if}
|
||||
{if !empty($THUMBNAILS) }{$THUMBNAILS}{/if}
|
||||
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
{if !empty($CONTENT_DESCRIPTION) }
|
||||
<div class="additional_info">
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ y.callService(
|
|||
{if $COMMENT_COUNT > 0}
|
||||
<h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3>
|
||||
{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'}{/if}
|
||||
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
|
||||
|
||||
{if isset($comments)}
|
||||
{include file='comment_list.tpl' comment_separator=true}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue