From 1cfe916db25a47ce3a61881be1eb756a77792857 Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 7 Mar 2009 21:34:55 +0000 Subject: [PATCH] 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 --- admin/extend_for_templates.php | 13 +++++++------ admin/template/goto/element_set_global.tpl | 2 +- admin/template/goto/element_set_unit.tpl | 2 +- admin/template/goto/history.tpl | 4 ++-- admin/template/goto/rating.tpl | 4 ++-- admin/template/goto/user_list.tpl | 2 +- plugins/LocalFilesEditor/admin.php | 13 +++++++------ template/yoga/comments.tpl | 2 +- template/yoga/index.tpl | 2 +- template/yoga/picture.tpl | 2 +- 10 files changed, 24 insertions(+), 22 deletions(-) diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php index 22bfea36a..2f3bbc92b 100644 --- a/admin/extend_for_templates.php +++ b/admin/extend_for_templates.php @@ -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); diff --git a/admin/template/goto/element_set_global.tpl b/admin/template/goto/element_set_global.tpl index cd12410bc..a9c5173f0 100644 --- a/admin/template/goto/element_set_global.tpl +++ b/admin/template/goto/element_set_global.tpl @@ -37,7 +37,7 @@ {'Elements'|@translate} - {if !empty($navbar) }{include file='navigation_bar.tpl'}{/if} + {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} {if !empty($thumbnails)}