blob: a9e4247c04918ba20c889ca8790a229eec0d92e3 (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
<?php
/**
* Elgg group icon
*
* @package ElggGroups
*
* @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
* @uses $vars['size'] The size - small, medium or large. If none specified, medium is assumed.
*/
$group = $vars['entity'];
if ($group instanceof ElggGroup) {
// Get size
if (!in_array($vars['size'],array('small','medium','large','tiny','master','topbar')))
$vars['size'] = "tiny";
// Get any align and js
if (!empty($vars['align'])) {
$align = " align=\"{$vars['align']}\" ";
} else {
$align = "";
}
if ($icontime = $vars['entity']->icontime) {
$icontime = "{$icontime}";
} else {
$icontime = "default";
}
?>
<div class="usericon">
<a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><img src="<?php echo $vars['entity']->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> title="<?php echo $name; ?>" <?php echo $vars['js']; ?> /></a>
</div>
<?php
}
?>
|