make sure id of <li> in notice list is unique
This commit is contained in:
parent
d22364b35e
commit
607e98ee11
@ -243,8 +243,9 @@ class NoticeListItem extends Widget
|
|||||||
{
|
{
|
||||||
// XXX: RDFa
|
// XXX: RDFa
|
||||||
// TODO: add notice_type class e.g., notice_video, notice_image
|
// TODO: add notice_type class e.g., notice_video, notice_image
|
||||||
|
$id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id;
|
||||||
$this->out->elementStart('li', array('class' => 'hentry notice',
|
$this->out->elementStart('li', array('class' => 'hentry notice',
|
||||||
'id' => 'notice-' . $this->notice->id));
|
'id' => 'notice-' . $id));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user