From 9dfd798368b404a8491d54bcb8111b3f90b1aaf3 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 7 Jul 2011 14:02:58 +0200 Subject: [PATCH 1/3] Add post type "event" to like/unlike localizated text --- include/conversation.php | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 09623ff746..6b52f51cdb 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -17,7 +17,26 @@ function localize_item(&$item){ $author = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]'; $objauthor = '[url=' . $obj['author-link'] . ']' . $obj['author-name'] . '[/url]'; - $post_type = (($obj['resource-id']) ? t('photo') : t('status')); + switch($obj['verb']){ + case 'http://activitystrea.ms/schema/1.0/post': + switch ($obj['object-type']){ + case 'http://activitystrea.ms/schema/1.0/event': + $post_type = t('event'); + break; + default: + $post_type = t('status'); + } + break; + default: + if($obj['resource-id']){ + $post_type = t('photo'); + $m=array(); preg_match("/\[url=([^]]*)\]/", $obj['body'], $m); + $rr['plink'] = $m[1]; + } else { + $post_type = t('status'); + } + } + $plink = '[url=' . $obj['plink'] . ']' . $post_type . '[/url]'; switch($item['verb']){ @@ -779,4 +798,4 @@ function status_editor($a,$x, $notes_cid = 0) { )); return $o; -} \ No newline at end of file +} From 4116beb276664c28c3fa16032548fe437ca1df81 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 7 Jul 2011 14:03:47 +0200 Subject: [PATCH 2/3] duepuntozero: style "connect" link in profile page --- view/theme/duepuntozero/style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 0ff41c92b4..b47002e096 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -174,6 +174,16 @@ aside { position: absolute; } +#dfrn-request-link { + display: block; + color: #FFFFFF; + -webkit-border-radius: 5px ; + -moz-border-radius: 5px; + border-radius: 5px; + padding: 5px; + font-weight: bold; + background: #3465a4 url('friendika-16.png') no-repeat 95% center; +} /* section */ section { @@ -204,6 +214,7 @@ section { margin-right: 1em; } + /* footer */ footer { display: none; @@ -479,6 +490,7 @@ input#dfrn-url { #profile-extra-links ul { list-style-type: none; + padding: 0px; } From bf19b219ef036776cdd3012773e5fafad95cc949 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 7 Jul 2011 14:27:39 +0200 Subject: [PATCH 3/3] duepuntozero: style blockquote --- view/theme/duepuntozero/style.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index b47002e096..fccbe16d97 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -48,8 +48,13 @@ code { padding: 10px; margin-top: 20px; } -blockquote:before { +/*blockquote:before { content: '>> '; +}*/ +blockquote { + background-color: #f4f8f9; + border-left: 4px solid #dae4ee; + padding: 0.4em; } .icollapse-wrapper, .ccollapse-wrapper {