diff options
Diffstat (limited to 'views/foaf')
-rw-r--r-- | views/foaf/canvas/default.php | 36 | ||||
-rw-r--r-- | views/foaf/page_elements/contentwrapper.php | 8 | ||||
-rw-r--r-- | views/foaf/pageshells/pageshell.php | 64 | ||||
-rw-r--r-- | views/foaf/user/default.php | 46 |
4 files changed, 77 insertions, 77 deletions
diff --git a/views/foaf/canvas/default.php b/views/foaf/canvas/default.php index 34ff1984d..a5c30fe52 100644 --- a/views/foaf/canvas/default.php +++ b/views/foaf/canvas/default.php @@ -1,21 +1,21 @@ -<?php
-
- /**
- * Elgg default layout
- *
- * @package Elgg
- * @subpackage Core
+<?php - * @author Curverider Ltd
+ /** + * Elgg default layout + * + * @package Elgg + * @subpackage Core + + * @author Curverider Ltd + + * @link http://elgg.org/ + */ + + for ($i = 1; $i < 8; $i++) { + + if (isset($vars["area{$i}"])) + echo $vars["area{$i}"]; + + } - * @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/page_elements/contentwrapper.php b/views/foaf/page_elements/contentwrapper.php index 640dd8104..15397d552 100644 --- a/views/foaf/page_elements/contentwrapper.php +++ b/views/foaf/page_elements/contentwrapper.php @@ -1,5 +1,5 @@ -<?php
-
- echo $vars['body'];
-
+<?php + + echo $vars['body']; + ?>
\ No newline at end of file diff --git a/views/foaf/pageshells/pageshell.php b/views/foaf/pageshells/pageshell.php index 6c0461fc2..4b6701740 100644 --- a/views/foaf/pageshells/pageshell.php +++ b/views/foaf/pageshells/pageshell.php @@ -10,37 +10,37 @@ */ header("Content-Type: text/xml"); - // echo $vars['body'];
-
- echo "<?xml version='1.0'?>\n";
-
- if (!$owner = page_owner_entity()) {
- if (!isloggedin()) {
- exit;
- } else {
- $owner = $vars['user'];
- }
- }
+ // echo $vars['body']; -?>
-<rdf:RDF
- xml:lang="en"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
- xmlns:foaf="http://xmlns.com/foaf/0.1/"
- xmlns:ya="http://blogs.yandex.ru/schema/foaf/"
- xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
- xmlns:dc="http://purl.org/dc/elements/1.1/">
- <foaf:Person>
- <foaf:nick><?php echo $owner->username; ?></foaf:nick>
- <foaf:name><?php echo $owner->name; ?></foaf:name>
- <foaf:homepage rdf:resource="<?php echo $owner->getURL(); ?>" />
- <foaf:mbox_sha1sum><?php echo sha1("mailto:" . $owner->email); ?></foaf:mbox_sha1sum>
- <foaf:img rdf:resource="<?php echo $vars['url']; ?>pg/icon/<?php echo $owner->username; ?>/large/icon.jpg" />
- <?php
-
- echo $vars['body'];
-
- ?>
- </foaf:Person>
+ echo "<?xml version='1.0'?>\n"; + + if (!$owner = page_owner_entity()) { + if (!isloggedin()) { + exit; + } else { + $owner = $vars['user']; + } + } + +?> +<rdf:RDF + xml:lang="en" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:foaf="http://xmlns.com/foaf/0.1/" + xmlns:ya="http://blogs.yandex.ru/schema/foaf/" + xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + <foaf:Person> + <foaf:nick><?php echo $owner->username; ?></foaf:nick> + <foaf:name><?php echo $owner->name; ?></foaf:name> + <foaf:homepage rdf:resource="<?php echo $owner->getURL(); ?>" /> + <foaf:mbox_sha1sum><?php echo sha1("mailto:" . $owner->email); ?></foaf:mbox_sha1sum> + <foaf:img rdf:resource="<?php echo $vars['url']; ?>pg/icon/<?php echo $owner->username; ?>/large/icon.jpg" /> + <?php + + echo $vars['body']; + + ?> + </foaf:Person> </rdf:RDF>
\ No newline at end of file diff --git a/views/foaf/user/default.php b/views/foaf/user/default.php index 8a14e5f28..01b9298e3 100644 --- a/views/foaf/user/default.php +++ b/views/foaf/user/default.php @@ -1,26 +1,26 @@ -<?php
-
- /**
- * Elgg default user view
- *
- * @package Elgg
- * @subpackage Core
+<?php - * @author Curverider Ltd
+ /** + * Elgg default user view + * + * @package Elgg + * @subpackage Core - * @link http://elgg.org/
- */
-
- $friend = $vars['entity'];
-
-?>
-
- <foaf:knows>
- <foaf:Person>
- <foaf:nick><?php echo $friend->username; ?></foaf:nick>
+ * @author Curverider Ltd + + * @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> - <foaf:mbox_sha1sum><?php echo sha1("mailto:" . $friend->email); ?></foaf:mbox_sha1sum>
- <rdfs:seeAlso rdf:resource="<?php echo $vars['url'] . "pg/friends/" . $friend->username . "/?view=foaf" ?>" />
- <foaf:homepage rdf:resource="<?php echo $friend->getURL(); ?>?view=foaf"/>
- </foaf:Person>
- </foaf:knows>
+ <foaf:mbox_sha1sum><?php echo sha1("mailto:" . $friend->email); ?></foaf:mbox_sha1sum> + <rdfs:seeAlso rdf:resource="<?php echo $vars['url'] . "pg/friends/" . $friend->username . "/?view=foaf" ?>" /> + <foaf:homepage rdf:resource="<?php echo $friend->getURL(); ?>?view=foaf"/> + </foaf:Person> + </foaf:knows> |