Hello.
I'm trying to get 4images to display both the thumb, image name and category description on the frontpage. All those 3 variables should be displayed in every {thumbnail} (every new image).
I can get thumbnail and image name to show, by doing this in functions.php:
if ($show_link) {
if ($open_window) {
$thumb = "<div class=\"thumb1\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a></div><div class=\"thumb2\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\" title=\"".$image_name."\">".$image_name."</a><br />".$cat_description."</div>";
}
else {
$thumb = "<div class=\"thumb1\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\">".$thumb."</a></div><div class=\"thumb2\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\" title=\"".$image_name."\">".$image_name."</a><br />".$cat_description."</div>";
}
}
Marked with
red is what I can't get to work. How do I get this to function?
Any help is greatly appreciated, as I've been trying to figure this out for hours...