diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-12 13:39:03 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-12 13:39:03 +0000 |
commit | 497cf702144ab6da884cdc3199667517f0dee2dc (patch) | |
tree | f5e61d3e2c37ab9672f3e22b833ba61aec883f30 /views/default/pageshells/pageshell.php | |
parent | 34b30da9f3fc0446c216fc7b4cc8a74525aeec5e (diff) | |
download | elgg-497cf702144ab6da884cdc3199667517f0dee2dc.tar.gz elgg-497cf702144ab6da884cdc3199667517f0dee2dc.tar.bz2 |
logic for not displaying toolbar when non-logged
git-svn-id: https://code.elgg.org/elgg/trunk@891 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/pageshells/pageshell.php')
-rw-r--r-- | views/default/pageshells/pageshell.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/views/default/pageshells/pageshell.php b/views/default/pageshells/pageshell.php index e82e47aac..6b722c53c 100644 --- a/views/default/pageshells/pageshell.php +++ b/views/default/pageshells/pageshell.php @@ -41,7 +41,15 @@ <div id="layout_sidebar_left"> <div id="wrapper_sidebar_left"> -<?php echo elgg_view("navigation/toolbox", $vars); ?> +<?php + //if logged in, display the toolbar, else display a sample ad + if(isloggedin()){ + echo elgg_view("navigation/toolbox", $vars); + }else{ + echo "<img src=\"{$vars['url']}_graphics/skyscraper.gif\" alt=\"sample skyscraper ad\" />"; + } + +?> <?php echo $vars['sidebar']; ?> |