aboutsummaryrefslogtreecommitdiff
path: root/views/default/export/relationship.php
blob: a91d381159eb6f773bd355c4ca69d40ef02942a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
	/**
	 * Elgg relationship export.
	 * Displays a relationship using the current view.
	 * 
	 * @package Elgg
	 * @subpackage Core
	 * @author Curverider Ltd
	 * @link http://elgg.org/
	 */

	$r = $vars['relationship'];
	
	$e1 = get_entity($r->guid_one);
	$e2 = get_entity($r->guid_two);

	
?>
<div>
	<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>