From c1c2563fc1cd451afaf735350eb1c576740be2f4 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Feb 2011 22:19:14 +0000 Subject: swapping sitepages for externalpages since the external pages is easier to integrate into 1.8 . sitepages needs more work before it is ready for release (plus we would need an upgrade script) git-svn-id: http://code.elgg.org/elgg/trunk@8206 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/expages/front_right.php | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 mod/externalpages/views/default/expages/front_right.php (limited to 'mod/externalpages/views/default/expages/front_right.php') diff --git a/mod/externalpages/views/default/expages/front_right.php b/mod/externalpages/views/default/expages/front_right.php new file mode 100644 index 000000000..ab999f890 --- /dev/null +++ b/mod/externalpages/views/default/expages/front_right.php @@ -0,0 +1,36 @@ + 'object', 'subtype' => 'front', 'limit' => 1)); + + // nothing to show so we return TRUE to indicate the view was valid + if ($contents == FALSE) { + return TRUE; + } + + $show = ''; + foreach($contents as $cont){ + $show = $cont->description; + } + + if($show != ''){ + echo "
"; + + if($contents){ + foreach($contents as $c){ + echo $c->description; + } + }else{ + echo elgg_echo("expages:addcontent"); + } + echo "
"; + } + +?> \ No newline at end of file -- cgit v1.2.3