title; if (empty($title)) { $subtitle = strip_tags($vars['entity']->description); $title = substr($subtitle,0,32); if (strlen($subtitle) > 32) $title .= " ..."; } $base_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid='; $owner_guid = $album->getOwner(); $images = get_entities("object", "image", 0, "", 10, 0, false, 0, $album->guid); echo "\n"; foreach ($images as $image) { $caption = $image->description; if (!$caption) $caption = "No caption"; ?> <?php echo $image->title; ?> getURL(); ?> time_created); ?> getURL(); ?> title; ?>