From 3f94721d6257b4fe31054682b258223b992c4011 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 30 Mar 2011 17:10:14 +0200 Subject: [PATCH] first work --- mod/network.php | 7 +++++- view/theme/duepuntozero/photo-menu.jpg | Bin 0 -> 459 bytes view/theme/duepuntozero/style.css | 32 +++++++++++++++++++++++++ view/wall_item.tpl | 14 +++++++++-- 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 view/theme/duepuntozero/photo-menu.jpg diff --git a/mod/network.php b/mod/network.php index 39679b48a1..84efe52ba7 100644 --- a/mod/network.php +++ b/mod/network.php @@ -543,6 +543,8 @@ function network_content(&$a, $update = 0) { $indent .= ' shiny'; + $contact_url = $a->get_baseurl()."/contacts/".$item['cid']; + // Build the HTML $tmp_item = replace_macros($template,array( @@ -553,6 +555,9 @@ function network_content(&$a, $update = 0) { '$wall' => t('Wall-to-Wall'), '$vwall' => t('via Wall-To-Wall:'), '$profile_url' => $profile_link, + '$profile_tab_url' => $profile_link."?tab=profile", //don't work with secure redirects + '$contact_url' => $contact_url, + '$pm_url' => "", '$name' => $profile_name, '$thumb' => $profile_avatar, '$osparkle' => $osparkle, @@ -596,4 +601,4 @@ function network_content(&$a, $update = 0) { } return $o; -} \ No newline at end of file +} diff --git a/view/theme/duepuntozero/photo-menu.jpg b/view/theme/duepuntozero/photo-menu.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fde5eb53524ddb12ec5642f33d0d34e14e256193 GIT binary patch literal 459 zcmex=&g!NbMF!_CFb&C4ewz{@Ad$IUGuCLky*A}T7%!!Ir&CL$pu zA}RthgpnDjhlQ1sm6cP3mz!6FWbpq0gCGZk0D}NCqY?v?AS1IN>UQrQGDKoE6M2QoDc3G+f#K-Lz&!r^Qc^B##H0%WszGMCU1W znAE#pe4KOt&Ml**OEy0VoUS}?d3@zno#;NjlP3257arA~E4nCar)(9G=iXTV|0V#| C@@!oI literal 0 HcmV?d00001 diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 042cc380ff..ac6ebf8073 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -866,6 +866,37 @@ input#dfrn-url { margin-bottom: 10px; width: 100px; } +.wall-item-photo-menu-button { + display: block; + position: absolute; + background-image: url("photo-menu.jpg"); + background-position: top left; + background-repeat: no-repeat; + margin: 0px; padding: 0px; + width: 16px; + height: 16px; + top: 74px; left:10px; + overflow: hidden; + text-indent: 40px; + display: none; + +} +.wall-item-photo-menu { + width: 90px; + border: 2px solid #444444; + background: #FFFFFF; + position: absolute; + left: 10px; top: 90px; + display: none; +} +.wall-item-photo-menu ul { margin:0px; padding: 0px; list-style: none } +.wall-item-photo-menu li a { display: block; padding: 2px; } +.wall-item-photo-menu li a:hover { color: #FFFFFF; background: #3465A4; text-decoration: none; } +.wall-item-photo-menu li a[href=""] { display: none } + + +.comment .wall-item-photo-menu-button { top: 44px;} +.comment .wall-item-photo-menu { top: 60px; } .wallwall .wwto { left: 50px; @@ -878,6 +909,7 @@ input#dfrn-url { width: 30px; height: 30px; } + .wallwall .wall-item-photo-end { clear: both; } diff --git a/view/wall_item.tpl b/view/wall_item.tpl index 4c2a3fbf42..c78fbb61f9 100644 --- a/view/wall_item.tpl +++ b/view/wall_item.tpl @@ -1,9 +1,19 @@
-
+
- $name + $name + + menu +