From 4fbe0ef6669e1df16b1c4a65b2cb10abada4070e Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 11 Oct 2008 12:55:43 +0000 Subject: - Add known_template function (maybe we can change function name). - Template extensions are working with menubar blocks templates. git-svn-id: http://piwigo.org/svn/trunk@2712 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/extend_for_templates.php | 52 +++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 23 deletions(-) (limited to 'admin/extend_for_templates.php') diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php index 294d600af..30b21f277 100644 --- a/admin/extend_for_templates.php +++ b/admin/extend_for_templates.php @@ -73,29 +73,35 @@ $relevant_parameters = array_merge($relevant_parameters, $permalinks); /* Link all supported templates to their respective handle */ $eligible_templates = array( - '----------' => 'N/A', - 'about.tpl' => 'about', - 'identification.tpl' => 'identification', - 'mainpage_categories.tpl' => 'index_category_thumbnails', - 'thumbnails.tpl' => 'index_thumbnails', - 'redirect.tpl' => 'redirect', - // 'menubar.tpl' => 'menubar', // TODO by blocks - 'header.tpl' => 'header', - 'footer.tpl' => 'tail', - 'index.tpl' => 'index', - 'nbm.tpl' => 'nbm', - 'notification.tpl' => 'notification', - 'picture_content.tpl' => 'default_content', - 'picture.tpl' => 'picture', - 'popuphelp.tpl' => 'popuphelp', - 'profile.tpl' => 'profile', - 'profile_content.tpl' => 'profile_content', - 'register.tpl' => 'register', - 'search.tpl' => 'search', - 'search_rules.tpl' => 'search_rules', - 'slideshow.tpl' => 'slideshow', - 'tags.tpl' => 'tags', - 'upload.tpl' => 'upload',); + '----------' => 'N/A', + 'about.tpl' => 'about', + 'identification.tpl' => 'identification', + 'mainpage_categories.tpl' => 'index_category_thumbnails', + 'thumbnails.tpl' => 'index_thumbnails', + 'redirect.tpl' => 'redirect', + 'menubar.tpl' => 'menubar', + 'menubar_categories.tpl' => 'mbCategories', + 'menubar_identification.tpl' => 'mbIdentification', + 'menubar_links.tpl' => 'mbLinks', + 'menubar_menu.tpl' => 'mbMenu', + 'menubar_specials.tpl' => 'mbSpecials', + 'menubar_tags.tpl' => 'mbTags', + 'header.tpl' => 'header', + 'footer.tpl' => 'tail', + 'index.tpl' => 'index', + 'nbm.tpl' => 'nbm', + 'notification.tpl' => 'notification', + 'picture_content.tpl' => 'default_content', + 'picture.tpl' => 'picture', + 'popuphelp.tpl' => 'popuphelp', + 'profile.tpl' => 'profile', + 'profile_content.tpl' => 'profile_content', + 'register.tpl' => 'register', + 'search.tpl' => 'search', + 'search_rules.tpl' => 'search_rules', + 'slideshow.tpl' => 'slideshow', + 'tags.tpl' => 'tags', + 'upload.tpl' => 'upload',); $flip_templates = array_flip($eligible_templates); // +-----------------------------------------------------------------------+ // | selected templates | -- cgit v1.2.3