elgg_push_breadcrumb($group->name);
$sidebar = '';
- $content = elgg_view('groups/profile/profile_block', array('entity' => $group));
+ $content = elgg_view('groups/profile/summary', array('entity' => $group));
if (group_gatekeeper(false)) {
$content .= elgg_view('groups/profile/widgets', array('entity' => $group));
$sidebar = elgg_view('groups/sidebar/members', array('entity' => $group));
--- /dev/null
+<?php
+/**
+ * Group profile fields
+ */
+
+$group = $vars['entity'];
+
+$profile_fields = elgg_get_config('group');
+
+if (is_array($profile_fields) && count($profile_fields) > 0) {
+
+ $even_odd = 'odd';
+ foreach ($profile_fields as $key => $valtype) {
+ // do not show the name
+ if ($key == 'name') {
+ continue;
+ }
+
+ $value = $group->$key;
+ if (empty($value)) {
+ continue;
+ }
+
+ $options = array('value' => $group->$key);
+ if ($valtype == 'tags') {
+ $options['tag_names'] = $key;
+ }
+
+ echo "<p class=\"{$even_odd}\">";
+ echo "<b>";
+ echo elgg_echo("groups:$key");
+ echo ": </b>";
+ echo elgg_view("output/$valtype", $options);
+ echo "</p>";
+
+ $even_odd = ($even_odd == 'even') ? 'odd' : 'even';
+ }
+}
<?php
/**
- * Group profile
+ * Group profile summary
*
* Icon and profile fields
*
$group = $vars['entity'];
$owner = $group->getOwnerEntity();
-$profile_fields = elgg_get_config('group');
-
?>
<div class="groups-profile clearfix elgg-image-block">
<div class="elgg-image">
</div>
<div class="groups-profile-fields elgg-body">
-<?php
-if (is_array($profile_fields) && count($profile_fields) > 0) {
-
- $even_odd = 'odd';
- foreach ($profile_fields as $key => $valtype) {
- // do not show the name
- if ($key == 'name') {
- continue;
- }
-
- $value = $group->$key;
- if (empty($value)) {
- continue;
- }
-
- $options = array('value' => $group->$key);
- if ($valtype == 'tags') {
- $options['tag_names'] = $key;
- }
-
- echo "<p class=\"{$even_odd}\">";
- echo "<b>";
- echo elgg_echo("groups:$key");
- echo ": </b>";
- echo elgg_view("output/$valtype", $options);
- echo "</p>";
-
- $even_odd = ($even_odd == 'even') ? 'odd' : 'even';
- }
-}
-?>
+ <?php
+ echo elgg_view('groups/profile/fields', $vars);
+ ?>
</div>
</div>
+<?php
+?>
+