aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/groups/groupprofile.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default/groups/groupprofile.php')
-rw-r--r--mod/groups/views/default/groups/groupprofile.php106
1 files changed, 104 insertions, 2 deletions
diff --git a/mod/groups/views/default/groups/groupprofile.php b/mod/groups/views/default/groups/groupprofile.php
index bf0945c63..6eb403bb5 100644
--- a/mod/groups/views/default/groups/groupprofile.php
+++ b/mod/groups/views/default/groups/groupprofile.php
@@ -15,8 +15,110 @@
$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
+
+ }
+?>
- // join / leave (if can join & leave)
-?> \ No newline at end of file
+ </p>
+</div> \ No newline at end of file