expl;
$image = $iteminfo->image;
$caption = $iteminfo->caption;
$content = $iteminfo->content;
// An image or text is required
if ( $image <> '' || $content <> '' ) {
echo "
";
// an image is requiered for the hover text
if ( $expl <> '' && $image <> '' ) {
echo "
" . $expl . "
";
}
echo "";
// display an image ?
if ( $image <> '' ) {
if (file_exists($imagefolder . $image)) {
echo "";
echo "";
}
else {
echo "";
}
}
// An image is required to show the caption
if ( $caption <> '' && $image <> '' ) {
echo "" . $caption . "";
}
// show a horizontal line if there is text after the caption
if ( $caption <> '' && $content <> '' ) {
echo "";
}
// At last the displayed text
if ( $content <> '' ) {
echo $content;
}
echo "";
echo "