From 53a3fd822d86fdf36ace165a974d26372bf46ece Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 26 Mar 2011 16:47:36 -0400 Subject: [PATCH] add indicator for limited-scope notices --- lib/noticelistitem.php | 6 +++++- theme/rebase/css/display.css | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index 17827d07ef..46f15f551d 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -170,7 +170,11 @@ class NoticeListItem extends Widget { if (Event::handle('StartOpenNoticeListItemElement', array($this))) { $id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id; - $this->out->elementStart('li', array('class' => 'hentry notice', + $class = 'hentry notice'; + if ($this->notice->scope != 0 && $this->notice->scope != 1) { + $class .= ' limited-scope'; + } + $this->out->elementStart('li', array('class' => $class, 'id' => 'notice-' . $id)); Event::handle('EndOpenNoticeListItemElement', array($this)); } diff --git a/theme/rebase/css/display.css b/theme/rebase/css/display.css index 6c3c9e6296..9c019e6289 100644 --- a/theme/rebase/css/display.css +++ b/theme/rebase/css/display.css @@ -1156,6 +1156,11 @@ width:auto; margin-left:0; } +.limited-scope .entry-content .timestamp:before { +content:'☠'; +font-size:150%; +} + /* override OStatus plugin style */ #form_ostatus_connect.form_settings.dialogbox, #form_ostatus_sub.dialogbox { -- 2.39.5