aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default/annotation/icon.php
blob: 42d32b02156e9dba8625b973039c7ac4cd10d882 (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
<?php
/**
 * @todo What is this doing here?
 *
 * @package ElggPages
 */

$annotation = $vars['annotation'];
$entity = get_entity($annotation->entity_guid);

// Get size
if (!in_array($vars['size'],array('small','medium','large','tiny','master','topbar')))
	$vars['size'] = "medium";

// Get any align and js
if (!empty($vars['align'])) {
	$align = " align=\"{$vars['align']}\" ";
} else {
	$align = "";
}

?>

<div class="groupicon">
<a href="<?php echo $entity->getURL() . "?rev=" . $annotation->id; ?>"><img src="<?php echo $entity->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> <?php echo $vars['js']; ?> /></a>
</div>