aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views/default/ecml/keywords/entity.php
blob: 73491f6a3a1dc02ceefe7c9730e5f7d7f04cc4ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * ECML Generic Object GUID
 *
 * @package ECML
 */

$guid = $vars['guid'];

if ($entity = get_entity($guid)) {
	echo elgg_view('output/url', array(
		'href' => $entity->getURL(),
		'title' => $entity->title,
		'text' => $entity->title,
		'class' => "embeded_file link",
		// abusing the js attribute
		'js' => "style=\"background-image:url({$entity->getIcon('tiny')})\""

	));
} else {
	echo elgg_echo('ecml:entity:invalid');
}