blob: ab999f890b18018e6ac9355d6f3cabb73005253f (
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
36
|
<?php
/**
* Elgg Frontpage right
*
* @package ElggExpages
*
*/
//get frontpage right code
$contents = elgg_get_entities(array('type' => '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 "<div id=\"index_welcome\">";
if($contents){
foreach($contents as $c){
echo $c->description;
}
}else{
echo elgg_echo("expages:addcontent");
}
echo "</div>";
}
?>
|