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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<?php
/**
* Group profile summary
*
* Icon and profile fields
*
* @uses $vars['group']
*/
if (!isset($vars['entity']) || !$vars['entity']) {
echo elgg_echo('groups:notfound');
return true;
}
$group = $vars['entity'];
$owner = $group->getOwnerEntity();
if (!$owner) {
// not having an owner is very bad so we throw an exception
$msg = elgg_echo('InvalidParameterException:IdNotExistForGUID', array('group owner', $group->guid));
throw new InvalidParameterException($msg);
}
?>
<div class="groups-profile clearfix elgg-image-block">
<div class="elgg-image">
<div class="groups-profile-icon">
<?php
// we don't force icons to be square so don't set width/height
echo elgg_view_entity_icon($group, 'large', array(
'href' => '',
'width' => '',
'height' => '',
));
?>
</div>
<div class="groups-stats">
<p>
<b><?php echo elgg_echo("groups:owner"); ?>: </b>
<?php
echo elgg_view('output/url', array(
'text' => $owner->name,
'value' => $owner->getURL(),
'is_trusted' => true,
));
?>
</p>
<p>
<?php
echo elgg_echo('groups:members') . ": " . $group->getMembers(0, 0, TRUE);
?>
</p>
</div>
</div>
<div class="groups-profile-fields elgg-body">
<?php
echo elgg_view('groups/profile/fields', $vars);
?>
</div>
</div>
<?php
?>
|