aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 10:40:15 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 10:40:15 +0000
commit67d4778d96546340fce18719b94aa5ba61577a81 (patch)
tree1e57e02818819353fc3f1295496ef6a25b19ba3d /mod/profile/views/default
parent6b6d0bf9f1881d18959a2ee5241a94559ef2765a (diff)
downloadelgg-67d4778d96546340fce18719b94aa5ba61577a81.tar.gz
elgg-67d4778d96546340fce18719b94aa5ba61577a81.tar.bz2
Further contextual menu work
git-svn-id: https://code.elgg.org/elgg/trunk@1164 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/icon.php23
1 files changed, 19 insertions, 4 deletions
diff --git a/mod/profile/views/default/profile/icon.php b/mod/profile/views/default/profile/icon.php
index c477a4cb0..21e4c8e0e 100644
--- a/mod/profile/views/default/profile/icon.php
+++ b/mod/profile/views/default/profile/icon.php
@@ -47,11 +47,11 @@
?>
<div class="usericon">
-<div class="avatar_menu_button"><img src="graphics/avatar_menu_arrow.gif" width="15" height="15" class="arrow" /></div>
+<div class="avatar_menu_button"><img src="<?php echo $vars['url']; ?>_graphics/avatar_menu_arrow.gif" width="15" height="15" class="arrow" /></div>
<div class="sub_menu">
- <a href="#"><h3>User Name</h3></a>
- <a href="#" class="item_line">Remove friend</a>
+ <a href="<?php echo $vars['entity']->getURL(); ?>"><h3><?php echo $vars['entity']->name; ?></h3></a>
+<!-- <a href="#" class="item_line">Remove friend</a>
<a href="#">Friends</a>
<a href="#">Friends of</a>
@@ -60,7 +60,22 @@
<a href="#" class="item_line">Send private message</a>
<a href="#" class="item_line">Ban</a>
<a href="#">Edit</a>
- <a href="#">Report</a>
+ <a href="#">Report</a> -->
+ <?php
+
+ $links = elgg_view('profile/menu/actions',$vars);
+ if ($vars['entity']->getGUID() == $vars['user']->getGUID()) {
+ $links .= elgg_view('profile/menu/linksownpage',$vars);
+ } else {
+ $links .= elgg_view('profile/menu/links',$vars);
+ }
+
+ $links = preg_replace('/\<p.*\>/','',$links);
+ $links = preg_replace('/\<\/p.*\>/','',$links);
+
+ echo $links;
+
+ ?>
</div>
<a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" rel="<?php echo $hoverover; ?>"><img src="<?php echo $vars['url']; ?>pg/icon/<?php echo $username; ?>/<?php echo $vars['size']; ?>/<?php echo $icontime; ?>.jpg" border="0" <?php echo $align; ?> title="<?php echo $name; ?>" <?php echo $vars['js']; ?> /></a>