include limited-scope class on bookmarks in output
This commit is contained in:
parent
1328023f88
commit
c9ca11eb64
@ -294,7 +294,11 @@ class BookmarkPlugin extends MicroAppPlugin
|
|||||||
$nb = Bookmark::getByNotice($nli->notice);
|
$nb = Bookmark::getByNotice($nli->notice);
|
||||||
if (!empty($nb)) {
|
if (!empty($nb)) {
|
||||||
$id = (empty($nli->repeat)) ? $nli->notice->id : $nli->repeat->id;
|
$id = (empty($nli->repeat)) ? $nli->notice->id : $nli->repeat->id;
|
||||||
$nli->out->elementStart('li', array('class' => 'hentry notice bookmark',
|
$class = 'hentry notice bookmark';
|
||||||
|
if ($nli->notice->scope != 0 && $nli->notice->scope != 1) {
|
||||||
|
$class .= ' limited-scope';
|
||||||
|
}
|
||||||
|
$nli->out->elementStart('li', array('class' => $class,
|
||||||
'id' => 'notice-' . $id));
|
'id' => 'notice-' . $id));
|
||||||
Event::handle('EndOpenNoticeListItemElement', array($nli));
|
Event::handle('EndOpenNoticeListItemElement', array($nli));
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user