contact photo menu

This commit is contained in:
Friendika 2011-08-24 23:20:04 -07:00
parent 74d61ed00b
commit 71fc694c67
3 changed files with 11 additions and 22 deletions

View File

@ -114,8 +114,8 @@ function contact_photo_menu($contact) {
$pm_url = $a->get_baseurl() . '/message/new/' . $contact['id']; $pm_url = $a->get_baseurl() . '/message/new/' . $contact['id'];
} }
$contact_url = $a->get_baseurl() . '/contacts/' . $cid; $contact_url = $a->get_baseurl() . '/contacts/' . $contact['id'];
$posts_link = $a->get_baseurl() . '/network/?cid=' . $cid; $posts_link = $a->get_baseurl() . '/network/?cid=' . $contact['id'];
$menu = Array( $menu = Array(
t("View status") => $status_link, t("View status") => $status_link,

View File

@ -1,23 +1,12 @@
<div class="contact-entry-wrapper" id="contact-entry-wrapper-$id" > <div class="contact-entry-wrapper" id="contact-entry-wrapper-$id" >
<div class="contact-entry-photo-wrapper" > <div class="contact-entry-photo-wrapper" >
<div class="contact-entry-nav-wrapper" >
<div class="contact-entry-direction-wrapper" >
<img class="contact-entry-direction-icon" src="$dir_icon" alt="$alt_text" title="$alt_text" />
</div>
<div class="contact-entry-direction-end" ></div>
<div class="contact-entry-edit-links" >
<a class="icon pencil" href="contacts/$id" class="contact-entry-edit-link" title="$edit_hover"></a>
</div>
<div class="contact-entry-edit-end"></div>
</div>
<div class="contact-entry-nav-end"></div>
<div class="contact-entry-photo" id="contact-entry-photo-$id" <div class="contact-entry-photo" id="contact-entry-photo-$id"
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)"> 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)" >
<a href="$url" title="$img_hover" /><img src="$thumb" $sparkle alt="$name" /></a> <a href="$url" title="$img_hover" /><img src="$thumb" $sparkle alt="$name" /></a>
<span onclick="openClose('contact-photo-menu-$id');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-$id">menu</span> <span onclick="openClose('contact-photo-menu-$id');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-$id">menu</span>
<div class="contact-photo-menu" id="contact-photo-menu-$id"> <div class="contact-photo-menu" id="contact-photo-menu-$id">
<ul> <ul>
$contact_photo_menu $contact_photo_menu

View File

@ -743,7 +743,7 @@ input#dfrn-url {
.contact-entry-wrapper { .contact-entry-wrapper {
float: left; float: left;
width: 180px; width: 120px;
height: 120px; height: 120px;
} }
@ -760,7 +760,7 @@ input#dfrn-url {
} }
.contact-entry-name { .contact-entry-name {
float: left; float: left;
margin-left: 30px; margin-left: 0px;
} }
.contact-entry-edit-links { .contact-entry-edit-links {
margin-top: 6px; margin-top: 6px;
@ -778,6 +778,7 @@ input#dfrn-url {
} }
.contact-entry-photo { .contact-entry-photo {
float: left; float: left;
position: relative;
} }
.contact-entry-end { .contact-entry-end {
clear: both; clear: both;
@ -1461,15 +1462,14 @@ input#dfrn-url {
.contact-photo-menu-button { .contact-photo-menu-button {
display: block; position: absolute;
/* position: absolute; */
background-image: url("photo-menu.jpg"); background-image: url("photo-menu.jpg");
background-position: top left; background-position: top left;
background-repeat: no-repeat; background-repeat: no-repeat;
margin: 0px; padding: 0px; margin: 0px; padding: 0px;
width: 16px; width: 16px;
height: 16px; height: 16px;
top: 60px; left:10px; top: 64px; left:0px;
overflow: hidden; overflow: hidden;
text-indent: 40px; text-indent: 40px;
display: none; display: none;
@ -1479,8 +1479,8 @@ input#dfrn-url {
width: auto; width: auto;
border: 2px solid #444444; border: 2px solid #444444;
background: #FFFFFF; background: #FFFFFF;
/* position: absolute; */ position: absolute;
left: 10px; top: 90px; left: 0px; top: 90px;
display: none; display: none;
z-index: 10000; z-index: 10000;
} }