aboutsummaryrefslogtreecommitdiff
path: root/mod/externalpages/views/default/expages/front_left.php
blob: 14d999ead24802f6d8bdedb17869297a7b9eaaed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

	/**
	 * Elgg Frontpage left
	 * 
	 * @package ElggExpages
	 * 
	 */

	 
	 //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>";
		}
		
?>