diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-03-01 13:12:07 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-03-01 13:12:07 +0000 |
commit | 35076ee1b9e32618d3c92bdd8aee20f2c4abb694 (patch) | |
tree | 7a7ece7dcc77d5304366ea3bd456152a1285522e /include/category_cats.inc.php | |
parent | b2b00ba7be2d8b80cfa30aca624706162dcb7800 (diff) |
- index.tpl, menubar.tpl, mainpage_categories.tpl and month_calendar.tpl go smarty
- better template debugging tweak (the smarty console is shown only once at the end)
git-svn-id: http://piwigo.org/svn/trunk@2231 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_cats.inc.php')
-rw-r--r-- | include/category_cats.inc.php | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index 894990885..e969b475b 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | -// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | +// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ // | file : $Id$ // | last update : $Date$ @@ -233,12 +233,11 @@ if (count($categories) > 0) $icon_ts = get_icon($category['max_date_last'], $category['is_child_date_last']); - $template->assign_block_vars( - 'categories.category', + $tpl_var = array( - 'SRC' => $thumbnail_src_of[$category['representative_picture_id']], + 'ID' => $category['id'], + 'TN_SRC' => $thumbnail_src_of[$category['representative_picture_id']], 'ALT' => $category['name'], - 'TITLE' => l10n('hint_category'), 'ICON' => $icon_ts, 'URL' => make_index_url( @@ -260,8 +259,7 @@ if (count($categories) > 0) @$category['comment'], 'subcatify_category_description')), 'NAME' => $name, - ) - ); + ); if ($conf['display_fromto']) { @@ -286,16 +284,13 @@ if (count($categories) > 0) format_date($to) ); } - - $template->assign_block_vars( - 'categories.category.dates', - array( - 'INFO' => $info, - ) - ); + $tpl_var['INFO_DATES'] = $info; } } - } + }//fromto + + $template->append( 'category_thumbnails', $tpl_var); + //plugins need to add/modify sth in this loop ? trigger_action('loc_index_category_thumbnail', |