From 71fc694c6715601f8d9cabcb1835c66a23aea4ca Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 24 Aug 2011 23:20:04 -0700 Subject: [PATCH] contact photo menu --- include/Contact.php | 4 ++-- view/contact_template.tpl | 15 ++------------- view/theme/duepuntozero/style.css | 14 +++++++------- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/include/Contact.php b/include/Contact.php index 6eda0b6c52..7524c0cea0 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -114,8 +114,8 @@ function contact_photo_menu($contact) { $pm_url = $a->get_baseurl() . '/message/new/' . $contact['id']; } - $contact_url = $a->get_baseurl() . '/contacts/' . $cid; - $posts_link = $a->get_baseurl() . '/network/?cid=' . $cid; + $contact_url = $a->get_baseurl() . '/contacts/' . $contact['id']; + $posts_link = $a->get_baseurl() . '/network/?cid=' . $contact['id']; $menu = Array( t("View status") => $status_link, diff --git a/view/contact_template.tpl b/view/contact_template.tpl index a74cebab5d..2fa167febb 100644 --- a/view/contact_template.tpl +++ b/view/contact_template.tpl @@ -1,23 +1,12 @@
-
-
- $alt_text -
-
-
- -
-
-
-
+ onmouseover="if (typeof t$id != 'undefined') clearTimeout(t$id); openMenu('contact-photo-menu-button-$id')" onmouseout="t$id=setTimeout('closeMenu(\'contact-photo-menu-button-$id\'); closeMenu(\'contact-photo-menu-$id\');',200)" > $name - menu + menu
    $contact_photo_menu diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 66e9f857e8..e3c643bfc7 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -743,7 +743,7 @@ input#dfrn-url { .contact-entry-wrapper { float: left; - width: 180px; + width: 120px; height: 120px; } @@ -760,7 +760,7 @@ input#dfrn-url { } .contact-entry-name { float: left; - margin-left: 30px; + margin-left: 0px; } .contact-entry-edit-links { margin-top: 6px; @@ -778,6 +778,7 @@ input#dfrn-url { } .contact-entry-photo { float: left; + position: relative; } .contact-entry-end { clear: both; @@ -1461,15 +1462,14 @@ input#dfrn-url { .contact-photo-menu-button { - display: block; -/* position: absolute; */ + 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: 60px; left:10px; + top: 64px; left:0px; overflow: hidden; text-indent: 40px; display: none; @@ -1479,8 +1479,8 @@ input#dfrn-url { width: auto; border: 2px solid #444444; background: #FFFFFF; -/* position: absolute; */ - left: 10px; top: 90px; + position: absolute; + left: 0px; top: 90px; display: none; z-index: 10000; }