diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 20:41:31 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 20:41:31 +0000 |
commit | 70b08afa64465f4d3457ba6e1c4cc2df1dd2069b (patch) | |
tree | 251d2559ea516ae4e23395dab4b083d079b65d24 /views/default/page_elements/elgg_topbar.php | |
parent | c66831fa5138a277a9729174caf14c7eb323fb07 (diff) | |
download | elgg-70b08afa64465f4d3457ba6e1c4cc2df1dd2069b.tar.gz elgg-70b08afa64465f4d3457ba6e1c4cc2df1dd2069b.tar.bz2 |
More views cleanup.
git-svn-id: http://code.elgg.org/elgg/trunk@3556 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements/elgg_topbar.php')
-rw-r--r-- | views/default/page_elements/elgg_topbar.php | 59 |
1 files changed, 28 insertions, 31 deletions
diff --git a/views/default/page_elements/elgg_topbar.php b/views/default/page_elements/elgg_topbar.php index 46314f2ad..b9609910c 100644 --- a/views/default/page_elements/elgg_topbar.php +++ b/views/default/page_elements/elgg_topbar.php @@ -1,19 +1,18 @@ <?php - - /** - * Elgg top toolbar - * The standard elgg top toolbar - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - * - */ +/** + * Elgg top toolbar + * The standard elgg top toolbar + * + * @package Elgg + * @subpackage Core + * @author Curverider Ltd + * @link http://elgg.org/ + * + */ ?> <?php - if (isloggedin()) { + if (isloggedin()) { ?> <div id="elgg_topbar"> @@ -21,41 +20,40 @@ <div id="elgg_topbar_container_left"> <div class="toolbarimages"> <a href="http://www.elgg.org" target="_blank"><img src="<?php echo $vars['url']; ?>_graphics/elgg_toolbar_logo.gif" /></a> - + <a href="<?php echo $_SESSION['user']->getURL(); ?>"><img class="user_mini_avatar" src="<?php echo $_SESSION['user']->getIcon('topbar'); ?>" /></a> - + </div> <div class="toolbarlinks"> <a href="<?php echo $vars['url']; ?>pg/dashboard/" class="pagelinks"><?php echo elgg_echo('dashboard'); ?></a> </div> - <?php + <?php - echo elgg_view("navigation/topbar_tools"); + echo elgg_view("navigation/topbar_tools"); - ?> - - - <div class="toolbarlinks2"> + ?> + + <div class="toolbarlinks2"> <?php //allow people to extend this top menu echo elgg_view('elgg_topbar/extend', $vars); ?> - + <a href="<?php echo $vars['url']; ?>pg/settings/" class="usersettings"><?php echo elgg_echo('settings'); ?></a> - + <?php - + // The administration link is for admin or site admin users only - if ($vars['user']->admin || $vars['user']->siteadmin) { - + if ($vars['user']->admin || $vars['user']->siteadmin) { + ?> - + <a href="<?php echo $vars['url']; ?>pg/admin/" class="usersettings"><?php echo elgg_echo("admin"); ?></a> - + <?php - + } - + ?> </div> @@ -79,5 +77,4 @@ <div class="clearfloat"></div> <?php - } -?>
\ No newline at end of file + }
\ No newline at end of file |