- 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
This commit is contained in:
patdenice 2008-10-11 12:55:43 +00:00
parent 9d88e93a99
commit 4fbe0ef666
4 changed files with 66 additions and 25 deletions

View file

@ -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 |