define('AVATARS_PER_PAGE', 80);
// @todo FIXME: Class documentation missing.
-class GalleryAction extends OwnerDesignAction
+class GalleryAction extends ProfileAction
{
var $profile = null;
var $page = null;
$this->profile = $this->user->getProfile();
if (!$this->profile) {
- // TRANS: Server error displayed when trying to perform a gallery action with a user without a profile.
+ // TRANS: Error message displayed when referring to a user without a profile.
$this->serverError(_('User has no profile.'));
return false;
}
$this->showPage();
}
- function showObjectNav()
- {
- $nav = new SubGroupNav($this, $this->user);
- $nav->show();
- }
-
function showContent()
{
$this->showTagsDropdown();
$content[$t] = $t;
}
if ($tags) {
+ $this->elementStart('dl', array('id' => 'filter_tags'));
+ $this->element('dt', null, _('Tags'));
+ $this->elementStart('dd');
$this->elementStart('ul');
$this->elementStart('li', array('id' => 'filter_tags_all',
'class' => 'child_1'));
$this->elementEnd('form');
$this->elementEnd('li');
$this->elementEnd('ul');
+ $this->elementEnd('dd');
+ $this->elementEnd('dl');
}
}