aboutsummaryrefslogtreecommitdiff
path: root/views/foaf/user/default.php
blob: dcba5556247a9e52e6a4deb78d4fb6d7076a3e05 (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 default user view
 *
 * @package Elgg
 * @subpackage Core
 */

// @todo update when get_user_friends is deprecated in 1.9
$friends = get_user_friends(elgg_get_page_owner_guid(), $subtype = "", $limit = 10000, $offset = 0);

foreach ($friends as $friend) {
?>

<foaf:knows>
<foaf:Person>
	<foaf:nick><?php echo $friend->username; ?></foaf:nick>
	<foaf:name><?php echo $friend->name; ?></foaf:name>
	<rdfs:seeAlso rdf:resource="<?php echo $friend->getURL() . "?view=foaf" ?>" />
</foaf:Person>
</foaf:knows>

<?php } ?>