diff options
Diffstat (limited to 'views/foaf')
-rw-r--r-- | views/foaf/canvas/default.php | 21 | ||||
-rw-r--r-- | views/foaf/search/entity_list.php | 9 | ||||
-rw-r--r-- | views/foaf/user/default.php (renamed from views/foaf/friends/list.php) | 21 |
3 files changed, 33 insertions, 18 deletions
diff --git a/views/foaf/canvas/default.php b/views/foaf/canvas/default.php new file mode 100644 index 000000000..2d2707918 --- /dev/null +++ b/views/foaf/canvas/default.php @@ -0,0 +1,21 @@ +<?php
+
+ /**
+ * Elgg default layout
+ *
+ * @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/
+ */
+
+ for ($i = 1; $i < 8; $i++) {
+
+ if (isset($vars["area{$i}"]))
+ echo $vars["area{$i}"];
+
+ }
+
+?>
\ No newline at end of file diff --git a/views/foaf/search/entity_list.php b/views/foaf/search/entity_list.php new file mode 100644 index 000000000..8864b62da --- /dev/null +++ b/views/foaf/search/entity_list.php @@ -0,0 +1,9 @@ +<?php
+
+ $entities = $vars['entities'];
+ if (is_array($entities) && sizeof($entities) > 0) {
+ foreach($entities as $entity)
+ echo elgg_view_entity($entity);
+ }
+
+?>
\ No newline at end of file diff --git a/views/foaf/friends/list.php b/views/foaf/user/default.php index a76a4d508..f063c1d9c 100644 --- a/views/foaf/friends/list.php +++ b/views/foaf/user/default.php @@ -1,8 +1,7 @@ <?php
/**
- * Elgg friends list (FOAF)
- * Lists a user's friends
+ * Elgg default user view
*
* @package Elgg
* @subpackage Core
@@ -10,18 +9,13 @@ * @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) {
-
+ $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>
@@ -29,12 +23,3 @@ <foaf:homepage rdf:resource="<?php echo $friend->getURL(); ?>"/>
</foaf:Person>
</foaf:knows>
-
-
-<?php
-
- }
-
- }
-
-?>
\ No newline at end of file |