Add direct link to parent notice
This is partly for usability, and partly to make Linkbacks for replies work (when the plugin is enabled).
This commit is contained in:
parent
0ba53edd96
commit
fc3f1f6942
|
@ -150,7 +150,13 @@ class NoticeListItem extends Widget
|
||||||
$this->elementStart('section', array('class'=>'notice-headers'));
|
$this->elementStart('section', array('class'=>'notice-headers'));
|
||||||
$this->showNoticeTitle();
|
$this->showNoticeTitle();
|
||||||
$this->showAuthor();
|
$this->showAuthor();
|
||||||
if ($this->addressees) { $this->showAddressees(); }
|
|
||||||
|
if (!empty($this->notice->reply_to) || $this->addressees) {
|
||||||
|
$this->elementStart('div', array('class' => 'parents'));
|
||||||
|
if (!empty($this->notice->reply_to)) { $this->showParent(); }
|
||||||
|
if ($this->addressees) { $this->showAddressees(); }
|
||||||
|
$this->elementEnd('div');
|
||||||
|
}
|
||||||
$this->elementEnd('section');
|
$this->elementEnd('section');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,6 +253,19 @@ class NoticeListItem extends Widget
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showParent()
|
||||||
|
{
|
||||||
|
$this->out->element(
|
||||||
|
'a',
|
||||||
|
array(
|
||||||
|
'href' => $this->notice->getParent()->getUrl(),
|
||||||
|
'class' => 'u-in-reply-to',
|
||||||
|
'rel' => 'in-reply-to'
|
||||||
|
),
|
||||||
|
'in reply to'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function showAddressees()
|
function showAddressees()
|
||||||
{
|
{
|
||||||
$pa = $this->getProfileAddressees();
|
$pa = $this->getProfileAddressees();
|
||||||
|
|
|
@ -648,12 +648,12 @@ address .poweredby {
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice .p-author {
|
.notice .parents {
|
||||||
margin-right: 8px;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice .addressees::before {
|
.notice .parents::before {
|
||||||
content: '\25B8';
|
content: '\25B8 ';
|
||||||
}
|
}
|
||||||
.notice .addressees, .notice .addressees li {
|
.notice .addressees, .notice .addressees li {
|
||||||
display: inline;
|
display: inline;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user