aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-02 14:44:09 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-02 14:44:09 +0000
commit21219ce636dca9ff167fb1bfbd71921301d32c1a (patch)
tree99592900b0f43488a08d812a250cf8581dfb2cc8 /views
parentfc078667a5ef6f931772160a52a6f89cf9570bda (diff)
downloadelgg-21219ce636dca9ff167fb1bfbd71921301d32c1a.tar.gz
elgg-21219ce636dca9ff167fb1bfbd71921301d32c1a.tar.bz2
Adding a user icon to the top menu
git-svn-id: https://code.elgg.org/elgg/trunk@627 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/css.php1
-rw-r--r--views/default/navigation/topmenu.php7
2 files changed, 8 insertions, 0 deletions
diff --git a/views/default/css.php b/views/default/css.php
index e8386223c..58128e4b9 100644
--- a/views/default/css.php
+++ b/views/default/css.php
@@ -135,6 +135,7 @@ div#header h1 a{
position:absolute;
top:2px;
right:10px;
+ width: 300px;
}
#topmenu li {
diff --git a/views/default/navigation/topmenu.php b/views/default/navigation/topmenu.php
index df8cf4eb9..6e1ccd533 100644
--- a/views/default/navigation/topmenu.php
+++ b/views/default/navigation/topmenu.php
@@ -19,6 +19,13 @@
if (isloggedin()) {
?>
<div id="topmenu">
+ <div style="float:right">
+ <?php
+
+ echo elgg_view("profile/icon",array('entity' => $vars['user'], 'size' => 'small'));
+
+ ?>
+ </div>
<ul>
<li><a href="<?php echo $vars['url']; ?>mod/dashboard/"><?php echo elgg_echo('dashboard'); ?></a></li>
<li><a href=""><?php echo elgg_echo('profile'); ?></a></li>