本文整理汇总了PHP中FormAction::showContent方法的典型用法代码示例。如果您正苦于以下问题:PHP FormAction::showContent方法的具体用法?PHP FormAction::showContent怎么用?PHP FormAction::showContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormAction
的用法示例。
在下文中一共展示了FormAction::showContent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showContent
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));
}
}
示例2: showContent
protected function showContent()
{
if ($this->getInfo() && $this->stored instanceof Notice) {
$this->showNotice($this->stored);
} elseif (!$this->getError()) {
parent::showContent();
}
}