From 62dbfffe399333cd4a792cc77256a2bcd689a14f Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Fri, 15 Apr 2011 17:15:40 +0200 Subject: darkzero theme, dark variant of duepuntozero --- view/theme/darkzero/border.jpg | Bin 0 -> 521 bytes view/theme/darkzero/head.jpg | Bin 0 -> 1269 bytes view/theme/darkzero/sectionend.jpg | Bin 0 -> 355 bytes view/theme/darkzero/shiny.png | Bin 0 -> 362 bytes view/theme/darkzero/style.css | 64 +++++++++++++++++++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 view/theme/darkzero/border.jpg create mode 100644 view/theme/darkzero/head.jpg create mode 100644 view/theme/darkzero/sectionend.jpg create mode 100644 view/theme/darkzero/shiny.png create mode 100644 view/theme/darkzero/style.css diff --git a/view/theme/darkzero/border.jpg b/view/theme/darkzero/border.jpg new file mode 100644 index 000000000..4967412bf Binary files /dev/null and b/view/theme/darkzero/border.jpg differ diff --git a/view/theme/darkzero/head.jpg b/view/theme/darkzero/head.jpg new file mode 100644 index 000000000..67e852140 Binary files /dev/null and b/view/theme/darkzero/head.jpg differ diff --git a/view/theme/darkzero/sectionend.jpg b/view/theme/darkzero/sectionend.jpg new file mode 100644 index 000000000..9d5d5c8f3 Binary files /dev/null and b/view/theme/darkzero/sectionend.jpg differ diff --git a/view/theme/darkzero/shiny.png b/view/theme/darkzero/shiny.png new file mode 100644 index 000000000..994c0d05d Binary files /dev/null and b/view/theme/darkzero/shiny.png differ diff --git a/view/theme/darkzero/style.css b/view/theme/darkzero/style.css new file mode 100644 index 000000000..c92529f26 --- /dev/null +++ b/view/theme/darkzero/style.css @@ -0,0 +1,64 @@ +@import url('../duepuntozero/style.css'); + +/* dark variation Fabio Comuni */ + +a:link, a:visited { color: #99CCFF; text-decoration: none; } +a:hover {text-decoration: underline; } + +input, select, textarea { + background-color: #222222; + color: #FFFFFF; + border: 1px solid #444444; +} +.openid { background-color: #222222;} + +body { background-color: #222222; color: #cccccc; background-image: url(head.jpg); } +aside{ background-image: url(border.jpg); padding-bottom: 0px; } +section { background-color: #333333; background-image: url(border.jpg); } + + +#profile-tabs-wrapper { background-image: url(head.jpg); } +div.wall-item-content-wrapper.shiny { background-image: url('shiny.png'); } + +nav #banner #logo-text a { color: #ffffff; } + +.wall-item-content-wrapper { border: 1px solid #444444; } +.wall-item-tools { background-color: #444444; background-image: none;} +.comment-edit-wrapper{ background-color: #333333; } +.wall-item-content-wrapper.comment { background-color: #444444; border: 0px;} +.photo-top-album-name{ background-color: #333333; } +.photo-album-image-wrapper .caption { background-color: rgba(51, 51, 51, 0.8); color: #FFFFFF; } + +.nav-selected.nav-link { color: #ffffff!important; border-bottom: 0px} +.nav-commlink, .nav-login-link {background-color: #b7bab3;} +.nav-commlink:link, .nav-commlink:visited, +.nav-login-link:link, .nav-login-link:visited{ + color: #ffffff; +} + +.fakelink, .fakelink:visited { + color: #99CCFF; +} + +.wall-item-name-link { + color: #99CCFF; +} + +.wall-item-photo-menu li a { + color: #CCCCCC; background-color: #333333; +} + +.wall-item-photo-menu li a:hover { + background-color: #CCCCCC; color: #333333; +} +#page-footer { min-height: 1em;} +footer { + margin: 0px 10%; + display: block; + background-image: url('sectionend.jpg'); + background-position: top left; + background-repeat: repeat-x; + height: 25px; +} + + -- cgit v1.2.3 From 60fbe0b39b02e9d1ce4521883c86b4783f4b9d4e Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Mon, 18 Apr 2011 17:37:02 +0200 Subject: translate verb items at display time --- include/conversation.php | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 4c858d818..a1ce19a7a 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1,5 +1,34 @@ $item['id'], '$delete' => t('Delete'))); - + // + localize_item($item); $drop = replace_macros($droptpl,array('$id' => $item['id'])); $lock = '
'; @@ -384,6 +413,9 @@ function conversation(&$a, $items, $mode, $update) { if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0) $indent .= ' shiny'; + // + localize_item($item); + // Build the HTML $tmp_item = replace_macros($template,array( -- cgit v1.2.3 From 1d8bd89fece18e861760eeed40ded146e01a0abb Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Mon, 18 Apr 2011 20:38:48 +0200 Subject: translate "like"/"dislike"/"friends with" messages at print time --- include/conversation.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index a1ce19a7a..3ec0706e9 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -8,12 +8,18 @@ function localize_item(&$item){ if ($item['verb']=="http://activitystrea.ms/schema/1.0/like" || $item['verb']=="http://activitystrea.ms/schema/1.0/dislike"){ + $r = q("SELECT * from `item`,`contact` WHERE + `item`.`contact-id`=`contact`.`id` AND `item`.`uri`='%s';", + dbesc($item['parent-uri'])); + if(count($r)==0) return; + $obj=$r[0]; $author = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]'; - #$objauthor = '[url=' . $obj['author-link'] . ']' . $obj['author-name'] . '[/url]'; - #$objlink = preg_grep("|