clsPicture::displayPictures($objAlbum->getPictures(), $objAlbum->get('id') ? true : false); } if ($strSubAction == 'useralbums') { if ($objUser && $objUser->get('remember_filter')) { $objUser->set('filter_user', $objMember->get('id')); $objUser->save(); } if (!$objMember || $objMember->isNew()) { header("Location: index.php?action=albums"); exit; } $objTemplate->setText('PAGETITLE', $objMember->get('username') . "'s Albums"); $objBreadcrumbs->add('Members', 'index.php?action=members'); $objBreadcrumbs->add($objMember->get('username'), 'index.php?action=members&subaction=view&' . $objGroup->getIDPair()); $objBreadcrumbs->add('Albums', "index.php?action=albums&subaction=memberalbums" . $objMember->getIDPair()); $arrAlbums = clsAlbum::getUserAlbums($objUser, $objMember); /* This script allows the albums to be expanded/hidden. */ $objTemplate->setText('SCRIPT', clsAlbum::getSubAlbumScript()); $objTemplate->setText('SCRIPT', clsAlbum::getAllAlbumScript($arrAlbums)); /* Display the expand/contract all buttons. */ print "<a href='#' onClick='expand_all()' class='nounderline'><img src='images/expand.png'> Expand All</a><br>"; print "<a href='#' onClick='contract_all()' class='nounderline'><img src='images/contract.png'> Hide All</a><br>"; print "<br>"; /* Allow filtering by user. */ print $objAlbum->getUserFilter("Show all albums") . "<hr>"; /* Display any sub-albums. */ clsAlbum::displayAlbums($arrAlbums, $objUser); } if ($strSubAction == 'groupalbums') { $objTemplate->setText('PAGETITLE', "Albums in " . $objGroup->get('name')); $objBreadcrumbs->add('Groups', 'index.php?action=groups');