From d629314bf802040b85e9a5ffd5de2489ce3267cf Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 29 May 2008 16:12:32 +0000 Subject: Added FOAF git-svn-id: https://code.elgg.org/elgg/trunk@760 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/foaf/friends/list.php | 40 +++++++++++++++++++++++++++++++++++++ views/foaf/pageshells/pageshell.php | 36 +++++++++++++++++++++++++++++++-- 2 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 views/foaf/friends/list.php (limited to 'views/foaf') diff --git a/views/foaf/friends/list.php b/views/foaf/friends/list.php new file mode 100644 index 000000000..a76a4d508 --- /dev/null +++ b/views/foaf/friends/list.php @@ -0,0 +1,40 @@ + 0) { + + foreach($vars['friends'] as $friend) { + +?> + + + + + username; ?> + name; ?> + username . "/?view=foaf" ?>" /> + + + + + + \ No newline at end of file diff --git a/views/foaf/pageshells/pageshell.php b/views/foaf/pageshells/pageshell.php index f5c7a4ce0..a5f73db2d 100644 --- a/views/foaf/pageshells/pageshell.php +++ b/views/foaf/pageshells/pageshell.php @@ -12,5 +12,37 @@ */ header("Content-Type: text/xml"); - echo $vars['body']; -?> \ No newline at end of file + // echo $vars['body']; + + echo "\n"; + + if (!$owner = page_owner_entity()) { + if (!isloggedin()) { + exit; + } else { + $owner = $vars['user']; + } + } + +?> + + + username; ?> + name; ?> + + email); ?> + + + + \ No newline at end of file -- cgit v1.2.3