getTitle();
if (strlen($album_title) > 20) {
$album_title = substr($album_title, 0, 17).'...';
}
$header = elgg_view('output/url', array(
'text' => $album_title,
'href' => $album->getURL(),
'is_trusted' => true,
'class' => 'tidypics-heading',
));
$container = $album->getContainerEntity();
if ($container) {
$footer = '
' . elgg_echo('album:created_by') . elgg_view('output/url', array(
'text' => $album->getContainerEntity()->name,
'href' => $album->getContainerEntity()->getURL(),
'is_trusted' => true,
));
$footer .= '
' . elgg_echo('album:num', array($album->getSize())) . '
';
} else {
$footer = '' . elgg_echo('album:created_by') . ' - ';
$footer .= '
' . elgg_echo('album:num', array($album->getSize())) . '
';
}
$params = array(
'footer' => $footer,
);
echo elgg_view_module('tidypics-album', $header, $album_cover, $params);