aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/pageshells/pageshell.php10
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']; ?>