Beispiel #1
0
    /* Display the caption  */
    if (strlen($objAlbum->get('caption'))) {
        print "<span class='albumcaption'>" . bbcode_format($objAlbum->get('caption')) . "</span><hr>";
    }
    /* If it's the base album, allow filtering by user. */
    if ($objAlbum->isNew()) {
        print $objAlbum->getUserFilter("Filter by user") . "<hr>";
    }
    /* 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>";
    /* Display any sub-albums. */
    clsAlbum::displayAlbums($arrSubAlbums, $objUser);
    /* Display any pictures. */
    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);