rendered paste body /**
* @see GalleryTheme::showAlbumPage
*/
function showAlbumPage(&$template, $item, $params, $childIds) {
global $gallery;
$ret = $this->loadCommonTemplateData(
$template, $item, $params,
array('owner', 'viewCount', 'descendentCount', 'parents', 'peers',
'systemLinks', 'itemLinks', 'itemSummaries',
'itemDetailFiles', 'thumbnails', 'pageNavigator', 'jumpRange','childItemLinksDetailed'),
$childIds);
if ($ret->isError()) {
return array($ret->wrap(__FILE__, __LINE__), null);
}
/* Add in our extra stuff */
$theme =& $template->getVariableByReference('theme');
$theme['columnWidthPct'] = floor(100 / $params['columns']);
$detailMode = GalleryUtilities::getRequestVariables('detailMode');
if ($detailMode != null) {
$session =& $gallery->getSession();
$session->put('theme.detailMode', $detailMode ? 1 : 0);
}
$theme['detailMode'] = $session->get('theme.detailMode', 0);
/* Add our header and styles */
return array(GalleryStatus::success(), 'theme.tpl');
}