$cap
getAlbum($groupAlbumId, 1, null, null); $albumName = $album->album->getName(); } if( $tagId != "" ) { $tags = DataModel::getInstance()->getImageTags( $groupAlbumId, $tagId, null ) ; foreach( $tags as $tag ) { $tagName = $tag->name; break; } } $output = ""; if ( $tagId != "" ) { $output .= "Photos tagged "$tagName""; } if ( $tagId != "" && $groupAlbumId != "" ) { $output .= " in "; } if ( $groupAlbumId != "" ) { $output .= "$albumName"; } return $output; } function getGroupMetadata( $groupAlbumId, $tagId ) { if( $groupAlbumId == "" ) { return ""; } $album = DataModel::getInstance()->getAlbum($groupAlbumId, 1, null, null); $albumName = $album->album->getName(); $imageLarge = $album->image->getUrlForSize( "1024x768" ); $caption = preg_replace("/[\r\n]+/", " ", $album->album->caption_safe); $url = $album->album->getFriendlyUrl(); $output = "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; return $output; } function getAlbumCaption( $groupAlbumId, $tagId ) { $retVal = ""; $album = DataModel::getInstance()->getAlbum($groupAlbumId, 1, null, null); $breadcrumbs = formatBreadcrumbs( $album->album ); $retVal .= "
"; if ( $album->album->caption != "" ) { $cap = preg_replace("/[\r\n]+/", "\n", $album->album->caption); $retVal .= "
$cap
All images tagged "{$tag->name}"