diff options
Diffstat (limited to 'mod/externalpages/views/default/expages/front_left.php')
-rw-r--r-- | mod/externalpages/views/default/expages/front_left.php | 27 |
1 files changed, 27 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..1c6c2442e --- /dev/null +++ b/mod/externalpages/views/default/expages/front_left.php @@ -0,0 +1,27 @@ +<?php + + /** + * Elgg Frontpage left + * + * @package ElggExpages + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd <info@elgg.com> + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.com/ + * + */ + + + //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>"; + } + +?> + |