blob: a28b5748cc4660133402628d5cdc57ae0feef270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
/**
* Elgg Frontpage right
*
* @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));
$show = '';
foreach($contents as $cont){
$show = $cont->description;
}
if($show != ''){
echo "<div id=\"index_welcome\">";
if($contents){
foreach($contents as $c){
echo $c->description;
}
}else{
echo elgg_echo("expages:addcontent");
}
echo "</div>";
}
?>
|