diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-30 14:34:29 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-30 14:34:29 +0000 |
commit | f692235ef64cdf3d90cba3a0f3434983adb9e480 (patch) | |
tree | e14803dad5d9e029b30e97624b942422459fe2d9 /views/default/export | |
parent | e82f9f21b5094e303d70b33d380c2ee1e68e8b66 (diff) | |
download | elgg-f692235ef64cdf3d90cba3a0f3434983adb9e480.tar.gz elgg-f692235ef64cdf3d90cba3a0f3434983adb9e480.tar.bz2 |
Improved views
git-svn-id: https://code.elgg.org/elgg/trunk@1603 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/export')
-rw-r--r-- | views/default/export/metadata.php | 9 | ||||
-rw-r--r-- | views/default/export/relationship.php | 18 |
2 files changed, 14 insertions, 13 deletions
diff --git a/views/default/export/metadata.php b/views/default/export/metadata.php index 303c42e54..fc9c57da8 100644 --- a/views/default/export/metadata.php +++ b/views/default/export/metadata.php @@ -12,12 +12,9 @@ */ $m = $vars['metadata']; + $e = get_entity($m->entity_guid); ?> <div> - <table> - <tr> - <td><b><?php echo $m->name; ?></b></td> - <td><?php echo $m->value; ?></td> - </tr> - </table> + <p><?php if ($e) echo "<a href=\"" . $e->getURL() . "\">GUID:{$m->entity_guid}</a>"; else echo "GUID:".$m->entity_guid; + ?>: <b><?php echo $m->name; ?></b> <?php echo $m->value; ?></p> </div>
\ No newline at end of file diff --git a/views/default/export/relationship.php b/views/default/export/relationship.php index 8819a356a..1dd3b8b7e 100644 --- a/views/default/export/relationship.php +++ b/views/default/export/relationship.php @@ -13,13 +13,17 @@ $r = $vars['relationship']; + $e1 = get_entity($r->guid_one); + $e2 = get_entity($r->guid_two); + + ?> <div> - <table> - <tr> - <td><?php echo $r->guid_one; ?></td> - <td><b><?php echo $r->relationship; ?></b></td> - <td><?php echo $r->guid_two; ?></td> - </tr> - </table> + <p><?php + if ($e1) echo "<a href=\"" . $e1->getURL() . "\">GUID:" . $r->guid_one . "</a>"; else echo "GUID:".$r->guid_one; + ?> + <b><?php echo $r->relationship; ?></b> + <?php + if ($e2) echo "<a href=\"" . $e2->getURL() . "\">GUID:" . $r->guid_two . "</a>"; else echo "GUID:".$r->guid_two; + ?></p> </div>
\ No newline at end of file |