blob: d3b749eb81ce9b2f5e5f8bb0d13c2bfb25a9975f (
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
|
<?php
/**
* Page icon
*
* Uses a separate icon view due to dependency on annotation
*
* @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";
}
?>
<a href="<?php echo $annotation->getURL(); ?>">
<img src="<?php echo $entity->getIconURL($vars['size']); ?>" />
</a>
|