diff options
Diffstat (limited to 'views/default/export/relationship.php')
| -rw-r--r-- | views/default/export/relationship.php | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/views/default/export/relationship.php b/views/default/export/relationship.php index 8819a356a..d8cb3e4f4 100644 --- a/views/default/export/relationship.php +++ b/views/default/export/relationship.php @@ -1,25 +1,21 @@ <?php - /** - * Elgg relationship export. - * Displays a relationship using the current view. - * - * @package Elgg - * @subpackage Core - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey - * @copyright Curverider Ltd 2008 - * @link http://elgg.org/ - */ +/** + * Elgg relationship export. + * Displays a relationship using the current view. + * + * @package Elgg + * @subpackage Core + */ - $r = $vars['relationship']; - +$r = $vars['relationship']; + +$e1 = get_entity($r->guid_one); +$e2 = get_entity($r->guid_two); +?> +<p class="margin-none"><?php + if ($e1) echo "<a href=\"" . $e1->getURL() . "\">GUID:" . $r->guid_one . "</a>"; else echo "GUID:".$r->guid_one; ?> -<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> -</div>
\ No newline at end of file +<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> |
