aboutsummaryrefslogtreecommitdiff
path: root/views/default/group/default.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/group/default.php')
-rw-r--r--views/default/group/default.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/views/default/group/default.php b/views/default/group/default.php
new file mode 100644
index 000000000..9c0356550
--- /dev/null
+++ b/views/default/group/default.php
@@ -0,0 +1,39 @@
+<?php
+/**
+ * Group entity view
+ *
+ * @package ElggGroups
+ */
+
+$group = $vars['entity'];
+
+$icon = elgg_view_entity_icon($group, 'tiny');
+
+$metadata = elgg_view_menu('entity', array(
+ 'entity' => $group,
+ 'handler' => 'groups',
+ 'sort_by' => 'priority',
+ 'class' => 'elgg-menu-hz',
+));
+
+if (elgg_in_context('owner_block') || elgg_in_context('widgets')) {
+ $metadata = '';
+}
+
+if (elgg_get_context() == 'gallery') {
+ echo $icon;
+} elseif ($vars['full_view']) {
+ echo elgg_view("groups/profile/profile_block", $vars);
+} else {
+ // brief view
+
+ $params = array(
+ 'entity' => $group,
+ 'metadata' => $metadata,
+ 'subtitle' => $group->briefdescription,
+ );
+ $params = $params + $vars;
+ $list_body = elgg_view('group/elements/summary', $params);
+
+ echo elgg_view_image_block($icon, $list_body, $vars);
+}