aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2006-03-25 12:40:24 +0000
committerchrisaga <chrisaga@piwigo.org>2006-03-25 12:40:24 +0000
commit64da75a29377bb809ceb560039f99f21a0e585c6 (patch)
tree4200863e42a6b20943e7114448536f417c3cfe44
parentce58f0df2253c7bdcf545be456c7d9d2ddf1e2d7 (diff)
-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
-rw-r--r--include/category_default.inc.php6
-rw-r--r--include/category_subcats.inc.php3
-rw-r--r--template/yoga/category.tpl2
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 @@
<ul class="thumbnails">
<!-- BEGIN line -->
<!-- BEGIN thumbnail -->
- <li>
+ <li class="{thumbnails.line.thumbnail.CLASS}">
<span class="wrap1">
<span class="wrap2">
<a href="{thumbnails.line.thumbnail.U_IMG_LINK}">