blob: 6eb403bb53ad66ff95911155e9078bfaa2c73fe0 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
<?php
/**
* Elgg groups plugin full profile view.
*
* @package ElggGroups
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Marcus Povey
* @copyright Curverider Ltd 2008
* @link http://elgg.com/
*/
if ($vars['full'] == true) {
$iconsize = "large";
} else {
$iconsize = "medium";
}
?>
<table>
<tr>
<td>
<div id="groups_info_column_left">
<div id="groups_icon_wrapper">
<?php
echo elgg_view(
"groups/icon", array(
'entity' => $vars['entity'],
//'align' => "left",
'size' => $iconsize,
)
);
// display relevant links
echo elgg_view("groups/grouplinks", array("entity" => $vars['entity']));
?>
</div>
</div>
</td>
<td>
<div id="groups_info_column_right">
<?php
echo "<h2><a href=\"" . $vars['entity']->getURL() . "\">" . $vars['entity']->title . "</a></h2> <br />";
?>
<?php
if ($vars['full'] == true) {
if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0)
{
foreach($vars['config']->group as $shortname => $valtype) {
if ($shortname != "title") {
$value = $vars['entity']->$shortname;
if (!empty($value)) {
//This function controls the alternating class
$even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';
}
echo "<p class=\"{$even_odd}\">";
echo "<b>";
echo elgg_echo("groups:{$shortname}");
echo ": </b>";
echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname));
echo "</p>";
}
}
}
}
?>
<div id="groups_owner">
<?php
echo "<b>" . elgg_echo("groups:owner") . "</b>";
echo elgg_view(
"profile/icon", array(
'entity' => get_entity($vars['entity']->owner_guid),
//'align' => "left",
'size' => 'small',
)
);
?>
</div>
</div>
</td>
</tr>
</table>
<div id="groups_info_wide">
<p class="groups_info_edit_buttons">
<?php
if ($vars['entity']->canEdit())
{
?>
<a href="<?php echo $vars['url']; ?>mod/groups/edit.php?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("edit"); ?></a>
<?php
}
?>
</p>
</div>
|