full name in title and h1 of the personal profile
This commit is contained in:
parent
1116526f08
commit
ce212c3903
@ -67,11 +67,17 @@ class ShowstreamAction extends Action
|
|||||||
|
|
||||||
function title()
|
function title()
|
||||||
{
|
{
|
||||||
|
if (!empty($this->profile->fullname)) {
|
||||||
|
$base = $this->profile->fullname . ' (' . $this->user->nickname . ') ';
|
||||||
|
} else {
|
||||||
|
$base = $this->user->nickname;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->page == 1) {
|
if ($this->page == 1) {
|
||||||
return $this->user->nickname;
|
return $base;
|
||||||
} else {
|
} else {
|
||||||
return sprintf(_("%s, page %d"),
|
return sprintf(_("%s, page %d"),
|
||||||
$this->user->nickname,
|
$base,
|
||||||
$this->page);
|
$this->page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -140,16 +146,6 @@ class ShowstreamAction extends Action
|
|||||||
$nav->show();
|
$nav->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPageTitle()
|
|
||||||
{
|
|
||||||
$user =& common_current_user();
|
|
||||||
if ($user && ($user->id == $this->profile->id)) {
|
|
||||||
$this->element('h1', NULL, _("Your profile"));
|
|
||||||
} else {
|
|
||||||
$this->element('h1', NULL, sprintf(_('%s\'s profile'), $this->profile->nickname));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function showPageNoticeBlock()
|
function showPageNoticeBlock()
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user