diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-27 13:53:58 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-27 13:53:58 +0000 |
commit | bc65d839a0d23aaf608801ab0343cdd2bf11a8ba (patch) | |
tree | 158da40be997568804cda00bb865433ac3beea6a /mod | |
parent | cbf220ea70fa7801f2dfc19ae086834c6fe87f8d (diff) | |
download | elgg-bc65d839a0d23aaf608801ab0343cdd2bf11a8ba.tar.gz elgg-bc65d839a0d23aaf608801ab0343cdd2bf11a8ba.tar.bz2 |
Icon menus now work when you're logged out.
git-svn-id: https://code.elgg.org/elgg/trunk@1181 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/views/default/profile/icon.php | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/mod/profile/views/default/profile/icon.php b/mod/profile/views/default/profile/icon.php index 9b991374b..22fc86305 100644 --- a/mod/profile/views/default/profile/icon.php +++ b/mod/profile/views/default/profile/icon.php @@ -36,13 +36,6 @@ } else {
$align = "";
}
-
- // Get the hoverover menu
- $hoverover = elgg_view('profile/hoverover',$vars);
- $hoverover = htmlentities($hoverover);
- $hoverover = str_replace("\n","",$hoverover);
- $hoverover = str_replace("\r","",$hoverover);
- $hoverover = str_replace("\t","",$hoverover);
?>
@@ -52,15 +45,18 @@ <div class="sub_menu">
<a href="<?php echo $vars['entity']->getURL(); ?>"><h3><?php echo $vars['entity']->name; ?></h3></a>
<?php
-
- $actions = elgg_view('profile/menu/actions',$vars);
- if (!empty($actions)) {
-
- echo "<div class=\"item_line\">{$actions}</div>";
-
- }
- if ($vars['entity']->getGUID() == $vars['user']->getGUID()) {
- echo elgg_view('profile/menu/linksownpage',$vars);
+ if (isloggedin()) {
+ $actions = elgg_view('profile/menu/actions',$vars);
+ if (!empty($actions)) {
+
+ echo "<div class=\"item_line\">{$actions}</div>";
+
+ }
+ if ($vars['entity']->getGUID() == $vars['user']->getGUID()) {
+ echo elgg_view('profile/menu/linksownpage',$vars);
+ } else {
+ echo elgg_view('profile/menu/links',$vars);
+ }
} else {
echo elgg_view('profile/menu/links',$vars);
}
@@ -68,5 +64,5 @@ ?>
</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>
+ <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 $name; ?>" <?php echo $vars['js']; ?> /></a>
</div>
\ No newline at end of file |