diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 19:26:37 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 19:26:37 +0000 |
commit | 8048313e87b9fd5ab6734e29a0e951524fa33e45 (patch) | |
tree | 556f70ba4a4c70cbd4890e1d90317d2a636e2d9e /views/default/export/entity.php | |
parent | 17c17807cc0b63d322d56acfae4f30399041cdb5 (diff) | |
download | elgg-8048313e87b9fd5ab6734e29a0e951524fa33e45.tar.gz elgg-8048313e87b9fd5ab6734e29a0e951524fa33e45.tar.bz2 |
Standardized more files.
git-svn-id: http://code.elgg.org/elgg/trunk@3554 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/export/entity.php')
-rw-r--r-- | views/default/export/entity.php | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/views/default/export/entity.php b/views/default/export/entity.php index 3bca680f8..0bbc9d079 100644 --- a/views/default/export/entity.php +++ b/views/default/export/entity.php @@ -1,22 +1,24 @@ <?php - /** - * Elgg Entity export. - * Displays an entity using the current view. - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - */ +/** + * Elgg Entity export. + * Displays an entity using the current view. + * + * @package Elgg + * @subpackage Core + * @author Curverider Ltd + * @link http://elgg.org/ + */ - $entity = $vars['entity']; - if (!$entity) throw new InvalidParameterException(elgg_echo('InvalidParameterException:NoEntityFound')); - - $metadata = get_metadata_for_entity($entity->guid); - $annotations = get_annotations($entity->guid); - $relationships = get_entity_relationships($entity->guid); - - $exportable_values = $entity->getExportableValues(); +$entity = $vars['entity']; +if (!$entity) { + throw new InvalidParameterException(elgg_echo('InvalidParameterException:NoEntityFound')); +} + +$metadata = get_metadata_for_entity($entity->guid); +$annotations = get_annotations($entity->guid); +$relationships = get_entity_relationships($entity->guid); + +$exportable_values = $entity->getExportableValues(); ?> <div class="contentWrapper"> <div> @@ -36,7 +38,7 @@ <?php if ($metadata) { ?> <div id="metadata"> -<h2><?php echo elgg_echo('metadata'); ?></h2> +<h2><?php echo elgg_echo('metadata'); ?></h2> <?php foreach ($metadata as $m) { @@ -47,13 +49,13 @@ <?php } ?> - + </div> <?php } ?> <?php if ($annotations) { ?> <div id="annotations"> -<h2><?php echo elgg_echo('annotations'); ?></h2> +<h2><?php echo elgg_echo('annotations'); ?></h2> <?php foreach ($annotations as $a) { @@ -71,7 +73,7 @@ <?php if ($relationships) { ?> <div id="relationship"> -<h2><?php echo elgg_echo('relationships'); ?></h2> +<h2><?php echo elgg_echo('relationships'); ?></h2> <?php foreach ($relationships as $r) { |