function showContent() { $this->elementStart('div', 'entity_profile h-card'); // TRANS: Header in list form. $this->element('h2', null, _('User profile')); $avatarUrl = $this->target->avatarUrl(AVATAR_PROFILE_SIZE); $this->element('img', array('src' => $avatarUrl, 'class' => 'u-photo avatar entity_depiction', 'width' => AVATAR_PROFILE_SIZE, 'height' => AVATAR_PROFILE_SIZE, 'alt' => $this->target->getBestName())); $this->element('a', array('href' => $this->target->getUrl(), 'class' => 'entity_nickname p-nickname'), $this->target->getNickname()); if ($this->target->fullname) { $this->element('div', 'p-name entity_fn', $this->target->fullname); } if ($this->target->location) { $this->element('div', 'p-locality label entity_location', $this->target->location); } if ($this->target->homepage) { $this->element('a', array('href' => $this->target->homepage, 'rel' => 'me', 'class' => 'u-url entity_url'), $this->target->homepage); } if ($this->target->bio) { $this->element('div', 'p-note entity_note', $this->target->bio); } $this->elementEnd('div'); if (Event::handle('StartShowTagProfileForm', array($this, $this->target))) { parent::showContent(); Event::handle('EndShowTagProfileForm', array($this, $this->target)); } }
protected function showContent() { if ($this->getInfo() && $this->stored instanceof Notice) { $this->showNotice($this->stored); } elseif (!$this->getError()) { parent::showContent(); } }