From 64da75a29377bb809ceb560039f99f21a0e585c6 Mon Sep 17 00:00:00 2001 From: chrisaga Date: Sat, 25 Mar 2006 12:40:24 +0000 Subject: [PATCH] -new : add a 'CLASS' element in 'thumbnails.line.thumbnail' array to store a different classname for category thumbnails and element thubnails in order to be able to display them differently. git-svn-id: http://piwigo.org/svn/trunk@1098 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 6 ++++-- include/category_subcats.inc.php | 3 ++- template/yoga/category.tpl | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 7201c7bb8..31d40ed90 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -97,7 +97,9 @@ foreach ($pictures as $row) 'IMAGE_TITLE' => $thumbnail_title, 'IMAGE_TS' => get_icon($row['date_available']), - 'U_IMG_LINK' => $url + 'U_IMG_LINK' => $url, + + 'CLASS' => 'thumbElmt', ) ); @@ -165,4 +167,4 @@ SELECT COUNT(*) AS nb_comments } pwg_debug('end include/category_default.inc.php'); -?> \ No newline at end of file +?> diff --git a/include/category_subcats.inc.php b/include/category_subcats.inc.php index 3aa091269..3b27dcd22 100644 --- a/include/category_subcats.inc.php +++ b/include/category_subcats.inc.php @@ -147,6 +147,7 @@ SELECT id, path, tn_ext 'category' => $item['category'], ) ), + 'CLASS' => 'thumbCat', ) ); @@ -165,4 +166,4 @@ SELECT id, path, tn_ext } } } -?> \ No newline at end of file +?> diff --git a/template/yoga/category.tpl b/template/yoga/category.tpl index 5705d5824..df6e4d249 100644 --- a/template/yoga/category.tpl +++ b/template/yoga/category.tpl @@ -185,7 +185,7 @@