blob: a76a4d5082370c5bb457f05d964e0f25cd91e326 (
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
37
38
39
40
|
<?php
/**
* Elgg friends list (FOAF)
* Lists a user's friends
*
* @package Elgg
* @subpackage Core
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*
* @uses $vars['friends'] The array of ElggUser objects
*/
if (is_array($vars['friends']) && sizeof($vars['friends']) > 0) {
foreach($vars['friends'] as $friend) {
?>
<foaf:knows>
<foaf:Person>
<foaf:nick><?php echo $friend->username; ?></foaf:nick>
<foaf:member_name><?php echo $friend->name; ?></foaf:member_name>
<rdfs:seeAlso rdf:resource="<?php echo $vars['url'] . "friends/" . $friend->username . "/?view=foaf" ?>" />
<foaf:homepage rdf:resource="<?php echo $friend->getURL(); ?>"/>
</foaf:Person>
</foaf:knows>
<?php
}
}
?>
|