diff options
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r-- | mod/profile/views/default/profile/icon.php | 23 |
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>
|