- if (Event::handle('StartGroupProfileElements', array($this, $this->group))) {
-
- // TRANS: Group profile header (h2). Text hidden by default.
- $this->element('h2', null, _('Group profile'));
-
- $this->elementStart('dl', 'entity_depiction');
- // TRANS: Label for group avatar (dt). Text hidden by default.
- $this->element('dt', null, _('Avatar'));
- $this->elementStart('dd');
-
- $logo = ($this->group->homepage_logo) ?
- $this->group->homepage_logo : User_group::defaultLogo(AVATAR_PROFILE_SIZE);
-
- $this->element('img', array('src' => $logo,
- 'class' => 'photo avatar',
- 'width' => AVATAR_PROFILE_SIZE,
- 'height' => AVATAR_PROFILE_SIZE,
- 'alt' => $this->group->nickname));
- $this->elementEnd('dd');
- $this->elementEnd('dl');
-
- $this->elementStart('dl', 'entity_nickname');
- // TRANS: Label for group nickname (dt). Text hidden by default.
- $this->element('dt', null, _('Nickname'));
- $this->elementStart('dd');
- $hasFN = ($this->group->fullname) ? 'nickname url uid' : 'fn org nickname url uid';
- $this->element('a', array('href' => $this->group->homeUrl(),
- 'rel' => 'me', 'class' => $hasFN),
- $this->group->nickname);
- $this->elementEnd('dd');
- $this->elementEnd('dl');
-
- if ($this->group->fullname) {
- $this->elementStart('dl', 'entity_fn');
- // TRANS: Label for full group name (dt). Text hidden by default.
- $this->element('dt', null, _('Full name'));
- $this->elementStart('dd');
- $this->element('span', 'fn org', $this->group->fullname);
- $this->elementEnd('dd');
- $this->elementEnd('dl');
- }