]> git.mxchange.org Git - friendica.git/commitdiff
first work
authorFabio Comuni <fabrix.xm@gmail.com>
Wed, 30 Mar 2011 15:10:14 +0000 (17:10 +0200)
committerFabio Comuni <fabrix.xm@gmail.com>
Wed, 30 Mar 2011 15:10:14 +0000 (17:10 +0200)
mod/network.php
view/theme/duepuntozero/photo-menu.jpg [new file with mode: 0644]
view/theme/duepuntozero/style.css
view/wall_item.tpl

index 39679b48a14378635b58451e89abf37e67f9ed1a..84efe52ba74f4ce46bea3f1bc08be3c72b4b3a7d 100644 (file)
@@ -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 (file)
index 0000000..fde5eb5
Binary files /dev/null and b/view/theme/duepuntozero/photo-menu.jpg differ
index 042cc380ff516cd28be0cf497634b2097b3da59b..ac6ebf807347eed3262c371290646f41bc87655d 100644 (file)
@@ -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;
 }
index 4c2a3fbf42b39d1204cb9c60c8b259297303e988..c78fbb61f9ef4b2690415898e2a50d2e8cd9aec8 100644 (file)
@@ -1,9 +1,19 @@
 <div class="wall-item-outside-wrapper$indent" id="wall-item-outside-wrapper-$id" >
        <div class="wall-item-content-wrapper$indent" id="wall-item-content-wrapper-$id" >
                <span class="wall-item-info" id="wall-item-info-$id">
-                       <div class="wall-item-photo-wrapper" id="wall-item-photo-wrapper-$id" >
+                       <div class="wall-item-photo-wrapper" id="wall-item-photo-wrapper-$id" 
+                                onmouseover="openMenu('wall-item-photo-menu-button-$id')" onmouseout="if (document.getElementById('wall-item-photo-menu-$id').style.display!='block')closeMenu('wall-item-photo-menu-button-$id');">
                                <a href="$profile_url" title="$linktitle" class="wall-item-photo-link" id="wall-item-photo-link-$id">
-                               <img src="$thumb" class="wall-item-photo$sparkle" id="wall-item-photo-$id" height="80" width="80" alt="$name" /></a>
+                                       <img src="$thumb" class="wall-item-photo$sparkle" id="wall-item-photo-$id" height="80" width="80" alt="$name" />
+                               </a>
+                               <span onclick="openClose('wall-item-photo-menu-$id');" class="fakelink wall-item-photo-menu-button" id="wall-item-photo-menu-button-$id">menu</span>
+                               <div class="wall-item-photo-menu" id="wall-item-photo-menu-$id">
+                                       <ul>
+                                               <li><a href='$profile_tab_url'>View profile</a></li>
+                                               <li><a href='$contact_url'>Edit contact</a></li>
+                                               <li><a href='$pm_url'>Send PM</a></li>
+                                       </ul>
+                               </div>
                        </div>
                        <div class="wall-item-photo-end"></div>
                        <div class="wall-item-wrapper" id="wall-item-wrapper-$id" >