blob: 3e0195e5f308d381cf3fd7fd223439e1a1a5d8e7 (
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
28
29
30
31
32
|
<?php
/**
* Elgg Pages
*
* @package ElggPages
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008-2010
* @link http://elgg.com/
*/
$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>
|