$album->getTitle(), 'href' => $album->getURL(), 'is_trusted' => true, 'class' => 'tidypics-heading', )); $footer = ""; if ($album->getContainerEntity()) { $footer .= elgg_view('output/url', array( 'text' => $album->getContainerEntity()->name, 'href' => $album->getContainerEntity()->getURL(), 'is_trusted' => true, )); } $footer .= '