relationship.php 562 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Elgg relationship export.
  4. * Displays a relationship using the current view.
  5. *
  6. * @package Elgg
  7. * @subpackage Core
  8. * @deprecated 1.9
  9. */
  10. $r = $vars['relationship'];
  11. $e1 = get_entity($r->guid_one);
  12. $e2 = get_entity($r->guid_two);
  13. ?>
  14. <p class="margin-none"><?php
  15. if ($e1) echo "<a href=\"" . $e1->getURL() . "\">GUID:" . $r->guid_one . "</a>"; else echo "GUID:".$r->guid_one;
  16. ?>
  17. <b><?php echo $r->relationship; ?></b>
  18. <?php
  19. if ($e2) echo "<a href=\"" . $e2->getURL() . "\">GUID:" . $r->guid_two . "</a>"; else echo "GUID:".$r->guid_two;
  20. ?></p>