aboutsummaryrefslogtreecommitdiff
path: root/views/foaf/user
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-01 18:35:37 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-01 18:35:37 +0000
commit813c841b2376b8c17641331407ddfed819fbfa79 (patch)
tree447a3c45de3a465970f9c5211ece896adc72a174 /views/foaf/user
parentf87725e1e0a2c096011cbfa6be6a44d07a629a0e (diff)
downloadelgg-813c841b2376b8c17641331407ddfed819fbfa79.tar.gz
elgg-813c841b2376b8c17641331407ddfed819fbfa79.tar.bz2
Fixed FOAF view
git-svn-id: https://code.elgg.org/elgg/trunk@1664 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/foaf/user')
-rw-r--r--views/foaf/user/default.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/foaf/user/default.php b/views/foaf/user/default.php
new file mode 100644
index 000000000..f063c1d9c
--- /dev/null
+++ b/views/foaf/user/default.php
@@ -0,0 +1,25 @@
+<?php
+
+ /**
+ * Elgg default user view
+ *
+ * @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/
+ */
+
+ $friend = $vars['entity'];
+
+?>
+
+ <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>