aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/views/default/sitepages/custom_frontpage.php
blob: 95310e1e5ebe9704db504ebebd856123f128741b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Custom front page.
 * This is in a view so we can parse it for keywords.
 *
 * @package SitePages
 */

$sitepage = sitepages_get_sitepage_object('front');

if ($sitepage) {
	if (elgg_get_logged_in_user_guid()) {
		echo $sitepage->logged_in_content;
	} else {
		echo $sitepage->logged_out_content;
	}
}