aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 17:36:09 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 17:36:09 +0000
commitb6e69c16f11efa6b6043e658a99f97630283505f (patch)
tree29d79eedf29e18a4beae47e2ef2de5270d348276 /mod/profile/views
parent4d4626b6ea9af4256c37c2e7047eef4f995dfdf3 (diff)
downloadelgg-b6e69c16f11efa6b6043e658a99f97630283505f.tar.gz
elgg-b6e69c16f11efa6b6043e658a99f97630283505f.tar.bz2
Removed avatar context menu from large profile picture
git-svn-id: https://code.elgg.org/elgg/trunk@1974 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views')
-rw-r--r--mod/profile/views/default/profile/icon.php21
-rw-r--r--mod/profile/views/default/profile/userdetails.php3
2 files changed, 20 insertions, 4 deletions
diff --git a/mod/profile/views/default/profile/icon.php b/mod/profile/views/default/profile/icon.php
index de9cf370b..49d87a95f 100644
--- a/mod/profile/views/default/profile/icon.php
+++ b/mod/profile/views/default/profile/icon.php
@@ -38,9 +38,15 @@
} else {
$align = "";
}
-
-?>
+ // Override
+ if (isset($vars['override']) && $vars['override'] == true) {
+ $override = true;
+ } else $override = false;
+
+ if (!$override) {
+
+?>
<div class="usericon">
<div class="avatar_menu_button"><img src="<?php echo $vars['url']; ?>_graphics/avatar_menu_arrow.gif" width="15" height="15" class="arrow" /></div>
@@ -66,11 +72,20 @@
?>
</div>
- <a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><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 htmlentities($vars['entity']->name, null, 'UTF-8'); ?>" <?php echo $vars['js']; ?> /></a>
+ <a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><?php
+
+ }
+
+ ?><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 htmlentities($vars['entity']->name, null, 'UTF-8'); ?>" <?php echo $vars['js']; ?> /><?php
+
+ if (!$override) {
+
+ ?></a>
</div>
<?php
}
+ }
?> \ No newline at end of file
diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php
index dae093bfb..a946e8efb 100644
--- a/mod/profile/views/default/profile/userdetails.php
+++ b/mod/profile/views/default/profile/userdetails.php
@@ -38,7 +38,8 @@
"profile/icon", array(
'entity' => $vars['entity'],
//'align' => "left",
- 'size' => $iconsize,
+ 'size' => $iconsize,
+ 'override' => true,
)
);