aboutsummaryrefslogtreecommitdiff
path: root/views/opendd
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 21:25:25 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 21:25:25 +0000
commit694781d190fba09437a37983f077d0381a56050b (patch)
tree788d5eeb369d7dc85bb35adf4fd1abe86f00b504 /views/opendd
parentd46162271a5ca3c3af690173d0abfcd1ab9f69a1 (diff)
downloadelgg-694781d190fba09437a37983f077d0381a56050b.tar.gz
elgg-694781d190fba09437a37983f077d0381a56050b.tar.bz2
Finished standardizing seconday views.
git-svn-id: http://code.elgg.org/elgg/trunk@3559 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/opendd')
-rw-r--r--views/opendd/canvas/default.php28
-rw-r--r--views/opendd/export/entity.php29
-rw-r--r--views/opendd/export/metadata.php37
-rw-r--r--views/opendd/export/relationship.php35
-rw-r--r--views/opendd/group/default.php25
-rw-r--r--views/opendd/messages/exceptions/exception.php39
-rw-r--r--views/opendd/object/default.php25
-rw-r--r--views/opendd/pageshells/pageshell.php24
-rw-r--r--views/opendd/search/entity_list.php18
-rw-r--r--views/opendd/site/default.php24
-rw-r--r--views/opendd/user/default.php25
11 files changed, 147 insertions, 162 deletions
diff --git a/views/opendd/canvas/default.php b/views/opendd/canvas/default.php
index a5cc56917..0cfa8b49a 100644
--- a/views/opendd/canvas/default.php
+++ b/views/opendd/canvas/default.php
@@ -1,19 +1,15 @@
<?php
+/**
+ * Elgg default layout
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * 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}"];
-
+for ($i = 1; $i < 8; $i++) {
+ if (isset($vars["area{$i}"])) {
+ echo $vars["area{$i}"];
}
-
-?> \ No newline at end of file
+} \ No newline at end of file
diff --git a/views/opendd/export/entity.php b/views/opendd/export/entity.php
index 60b6628ef..f564ef32a 100644
--- a/views/opendd/export/entity.php
+++ b/views/opendd/export/entity.php
@@ -1,17 +1,16 @@
<?php
- /**
- * Elgg Entity export.
- * Displays an entity as ODD
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+/**
+ * Elgg Entity export.
+ * Displays an entity as ODD
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- $entity = $vars['entity'];
- $serialised = exportAsArray($vars['entity']->guid);
- foreach ($serialised as $s)
- echo $s;
-
-?> \ No newline at end of file
+$entity = $vars['entity'];
+$serialised = exportAsArray($vars['entity']->guid);
+foreach ($serialised as $s) {
+ echo $s;
+} \ No newline at end of file
diff --git a/views/opendd/export/metadata.php b/views/opendd/export/metadata.php
index de29017dd..146f7742e 100644
--- a/views/opendd/export/metadata.php
+++ b/views/opendd/export/metadata.php
@@ -1,21 +1,20 @@
<?php
- /**
- * Elgg metadata export.
- * Displays a metadata item using the current view.
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+/**
+ * Elgg metadata export.
+ * Displays a metadata item using the current view.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- $m = $vars['metadata'];
- $uuid = $vars['uuid'];
-
- //$odd = new ODDDocument();
- //$odd->addElement($m->export());
-
- //echo $odd;
-
- echo $m->export();
-?> \ No newline at end of file
+$m = $vars['metadata'];
+$uuid = $vars['uuid'];
+
+//$odd = new ODDDocument();
+//$odd->addElement($m->export());
+
+//echo $odd;
+
+echo $m->export(); \ No newline at end of file
diff --git a/views/opendd/export/relationship.php b/views/opendd/export/relationship.php
index 39d7a163a..7cac7b0dd 100644
--- a/views/opendd/export/relationship.php
+++ b/views/opendd/export/relationship.php
@@ -1,20 +1,19 @@
<?php
- /**
- * Elgg relationship export.
- * Displays a relationship using ODD.
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+/**
+ * Elgg relationship export.
+ * Displays a relationship using ODD.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- $r = $vars['relationship'];
-
- //$odd = new ODDDocument();
- //$odd->addElement($r->export());
-
- //echo $odd;
-
- echo $r->export();
-?> \ No newline at end of file
+$r = $vars['relationship'];
+
+//$odd = new ODDDocument();
+//$odd->addElement($r->export());
+
+//echo $odd;
+
+echo $r->export();
diff --git a/views/opendd/group/default.php b/views/opendd/group/default.php
index 9b9f3169d..b5913689a 100644
--- a/views/opendd/group/default.php
+++ b/views/opendd/group/default.php
@@ -1,15 +1,14 @@
<?php
+/**
+ * Elgg default object view
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg default object view
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
-
- $serialised = exportAsArray($vars['entity']->guid);
- foreach ($serialised as $s)
- echo $s;
-?> \ No newline at end of file
+$serialised = exportAsArray($vars['entity']->guid);
+foreach ($serialised as $s) {
+ echo $s;
+} \ No newline at end of file
diff --git a/views/opendd/messages/exceptions/exception.php b/views/opendd/messages/exceptions/exception.php
index eae45f397..c020c0e04 100644
--- a/views/opendd/messages/exceptions/exception.php
+++ b/views/opendd/messages/exceptions/exception.php
@@ -1,31 +1,24 @@
<?php
+/**
+ * Elgg exception
+ * Displays a single exception
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ * @uses $vars['object'] An exception
+ */
- /**
- * Elgg exception
- * Displays a single exception
- *
- * @package Elgg
- * @subpackage Core
-
- * @author Curverider Ltd
-
- * @link http://elgg.org/
- *
- * @uses $vars['object'] An exception
- */
-
- global $CONFIG;
+global $CONFIG;
?>
-<!--
+<!--
<?php echo get_class($vars['object']); ?>: <?php echo autop($vars['object']->getMessage()); ?>
-
-
<?php if ($CONFIG->debug) { ?>
<?php
-
- echo print_r($vars['object'], true);
-
- ?>
+ echo print_r($vars['object'], true);
+?>
<?php } ?>
-
+
--> \ No newline at end of file
diff --git a/views/opendd/object/default.php b/views/opendd/object/default.php
index 9b9f3169d..b5913689a 100644
--- a/views/opendd/object/default.php
+++ b/views/opendd/object/default.php
@@ -1,15 +1,14 @@
<?php
+/**
+ * Elgg default object view
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg default object view
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
-
- $serialised = exportAsArray($vars['entity']->guid);
- foreach ($serialised as $s)
- echo $s;
-?> \ No newline at end of file
+$serialised = exportAsArray($vars['entity']->guid);
+foreach ($serialised as $s) {
+ echo $s;
+} \ No newline at end of file
diff --git a/views/opendd/pageshells/pageshell.php b/views/opendd/pageshells/pageshell.php
index 4778d0e13..617302dbf 100644
--- a/views/opendd/pageshells/pageshell.php
+++ b/views/opendd/pageshells/pageshell.php
@@ -1,20 +1,18 @@
<?php
- /**
- * Elgg XML output pageshell for ODD
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- *
- */
+/**
+ * Elgg XML output pageshell for ODD
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ */
- header("Content-Type: text/xml");
-
-
+header("Content-Type: text/xml");
?>
<odd>
-<?php
+<?php
echo $vars['body'];
?>
</odd> \ No newline at end of file
diff --git a/views/opendd/search/entity_list.php b/views/opendd/search/entity_list.php
index 8864b62da..3ea06f40f 100644
--- a/views/opendd/search/entity_list.php
+++ b/views/opendd/search/entity_list.php
@@ -1,9 +1,13 @@
<?php
-
- $entities = $vars['entities'];
- if (is_array($entities) && sizeof($entities) > 0) {
- foreach($entities as $entity)
- echo elgg_view_entity($entity);
+/**
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
+$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
+} \ No newline at end of file
diff --git a/views/opendd/site/default.php b/views/opendd/site/default.php
index 9b9f3169d..0ce66193b 100644
--- a/views/opendd/site/default.php
+++ b/views/opendd/site/default.php
@@ -1,15 +1,15 @@
<?php
- /**
- * Elgg default object view
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+/**
+ * Elgg default object view
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- $serialised = exportAsArray($vars['entity']->guid);
- foreach ($serialised as $s)
- echo $s;
-?> \ No newline at end of file
+$serialised = exportAsArray($vars['entity']->guid);
+foreach ($serialised as $s) {
+ echo $s;
+} \ No newline at end of file
diff --git a/views/opendd/user/default.php b/views/opendd/user/default.php
index 9b9f3169d..b5913689a 100644
--- a/views/opendd/user/default.php
+++ b/views/opendd/user/default.php
@@ -1,15 +1,14 @@
<?php
+/**
+ * Elgg default object view
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg default object view
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
-
- $serialised = exportAsArray($vars['entity']->guid);
- foreach ($serialised as $s)
- echo $s;
-?> \ No newline at end of file
+$serialised = exportAsArray($vars['entity']->guid);
+foreach ($serialised as $s) {
+ echo $s;
+} \ No newline at end of file