blob: 1c6c2442e1384576e149844882294ebf0bc6f2f2 (
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
|
<?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>";
}
?>
|