diff options
Diffstat (limited to 'mod/externalpages/views/default/expages/front_left.php')
-rw-r--r-- | mod/externalpages/views/default/expages/front_left.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/externalpages/views/default/expages/front_left.php b/mod/externalpages/views/default/expages/front_left.php new file mode 100644 index 000000000..14d999ead --- /dev/null +++ b/mod/externalpages/views/default/expages/front_left.php @@ -0,0 +1,23 @@ +<?php + + /** + * Elgg Frontpage left + * + * @package ElggExpages + * + */ + + + //get frontpage right code + $contents = elgg_get_entities(array('type' => 'object', 'subtype' => 'front', 'limit' => 1)); + + if($contents){ + foreach($contents as $c){ + echo $c->title; // title is the left hand content + } + }else{ + echo "<p>" . elgg_echo("expages:addcontent") . "</p>"; + } + +?> + |