From f0443aff1aa44977615cf08d1e2fc57b2c754612 Mon Sep 17 00:00:00 2001 From: Samantha Doherty Date: Thu, 25 Aug 2011 16:24:54 -0400 Subject: [PATCH] Style for Activity notices. --- plugins/Activity/ActivityPlugin.php | 12 ++++++------ plugins/Activity/joinlistitem.php | 2 +- plugins/Activity/systemlistitem.php | 2 +- theme/base/css/display.css | 9 +++++++++ 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/plugins/Activity/ActivityPlugin.php b/plugins/Activity/ActivityPlugin.php index 92972ff173..1a460219dc 100644 --- a/plugins/Activity/ActivityPlugin.php +++ b/plugins/Activity/ActivityPlugin.php @@ -84,7 +84,7 @@ class ActivityPlugin extends Plugin if (!empty($user)) { $sub = Subscription::pkeyGet(array('subscriber' => $subscriber->id, 'subscribed' => $other->id)); - $rendered = sprintf(_m('%s started following %s.'), + $rendered = sprintf(_m('%s started following %s.'), $subscriber->profileurl, $subscriber->getBestName(), $other->profileurl, @@ -113,7 +113,7 @@ class ActivityPlugin extends Plugin if(!$this->StopFollowUser) return true; $user = $subscriber->getUser(); if (!empty($user)) { - $rendered = sprintf(_m('%s stopped following %s.'), + $rendered = sprintf(_m('%s stopped following %s.'), $subscriber->profileurl, $subscriber->getBestName(), $other->profileurl, @@ -154,7 +154,7 @@ class ActivityPlugin extends Plugin $fave = Fave::pkeyGet(array('user_id' => $user->id, 'notice_id' => $notice->id)); - $rendered = sprintf(_m('%s liked %s\'s update.'), + $rendered = sprintf(_m('%s liked %s\'s update.'), $profile->profileurl, $profile->getBestName(), $notice->bestUrl(), @@ -186,7 +186,7 @@ class ActivityPlugin extends Plugin if (!empty($user)) { $author = Profile::staticGet('id', $notice->profile_id); - $rendered = sprintf(_m('%s stopped liking %s\'s update.'), + $rendered = sprintf(_m('%s stopped liking %s\'s update.'), $profile->profileurl, $profile->getBestName(), $notice->bestUrl(), @@ -226,7 +226,7 @@ class ActivityPlugin extends Plugin return true; } - $rendered = sprintf(_m('%s joined the group %s.'), + $rendered = sprintf(_m('%s joined the group %s.'), $profile->profileurl, $profile->getBestName(), $group->homeUrl(), @@ -262,7 +262,7 @@ class ActivityPlugin extends Plugin return true; } - $rendered = sprintf(_m('%s left the group %s.'), + $rendered = sprintf(_m('%s left the group %s.'), $profile->profileurl, $profile->getBestName(), $group->homeUrl(), diff --git a/plugins/Activity/joinlistitem.php b/plugins/Activity/joinlistitem.php index 1979524001..5764f1d2e6 100644 --- a/plugins/Activity/joinlistitem.php +++ b/plugins/Activity/joinlistitem.php @@ -58,7 +58,7 @@ class JoinListItem extends SystemListItem $out->elementStart('div', 'join-activity'); $profile = $mem->getMember(); $group = $mem->getGroup(); - $out->raw(sprintf(_m('%s joined the group %s.'), + $out->raw(sprintf(_m('%s joined the group %s.'), $profile->profileurl, $profile->getBestName(), $group->homeUrl(), diff --git a/plugins/Activity/systemlistitem.php b/plugins/Activity/systemlistitem.php index d2b99c802e..0b8d2f4c02 100644 --- a/plugins/Activity/systemlistitem.php +++ b/plugins/Activity/systemlistitem.php @@ -56,7 +56,7 @@ class SystemListItem extends NoticeListItemAdapter function showNotice() { $out = $this->nli->out; - $out->elementStart('div'); + $out->elementStart('div', 'entry-title'); $this->showContent(); $out->elementEnd('div'); } diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 9ad1b4ec15..5b18772db8 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -1514,6 +1514,15 @@ content:'☠'; font-size:150%; } +#content .notice-source-system div.entry-title, .notice-source-system div.entry-content { + margin-left: 0; +} + +#content .notice-source-system div.entry-title { + font-style: italic; + min-height: 0; +} + /* override OStatus plugin style */ #form_ostatus_connect.form_settings.dialogbox, #form_ostatus_sub.dialogbox { -- 2.39.5