blob: ca1bc20547a2a8163ce2d964bd44d13f10850d04 (
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
|
<?php
/**
* Generic icon view.
*
* @package Elgg
* @subpackage Core
* @author Curverider Ltd
* @link http://elgg.org/
*/
$entity = $vars['entity'];
// 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="icon">
<?php if ($vars['link']) { ?><a href="<?php echo $vars['link'] ?>"><?php } ?>
<img src="<?php echo $entity->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> <?php echo $vars['js']; ?> />
<?php if ($vars['link']) { ?></a><?php } ?>
</div>
|