blob: ede0e49d10a89cb5d1cd94f64360d7f490c243a3 (
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
|
<?php
/**
* Page icon
*
* @package ElggPages
*
* @uses $vars['entity']
* @uses $vars['annotation']
*/
$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";
}
if (!empty($vars['align'])) {
$align = " align=\"{$vars['align']}\" ";
} else {
$align = "";
}
?>
<a href="<?php echo $annotation->getURL(); ?>">
<img src="<?php echo $entity->getIconURL($vars['size']); ?>" <?php echo $align; ?> />
</a>
|