getGallery($gallery) as $item) { $desc = ""; if ($item['thumb_caption'] != "") $desc .= '

'.$item['thumb_caption'].'

'; if ($item['caption'] != "") $desc .= '

'.$item['caption'].'

'; ?>