diff options
Diffstat (limited to 'views/default/group')
-rw-r--r-- | views/default/group/default.php | 9 | ||||
-rw-r--r-- | views/default/group/default/river.php | 23 | ||||
-rw-r--r-- | views/default/group/elements/summary.php | 13 | ||||
-rw-r--r-- | views/default/group/search/finishblurb.php | 18 | ||||
-rw-r--r-- | views/default/group/search/startblurb.php | 14 |
5 files changed, 54 insertions, 23 deletions
diff --git a/views/default/group/default.php b/views/default/group/default.php new file mode 100644 index 000000000..383a25c49 --- /dev/null +++ b/views/default/group/default.php @@ -0,0 +1,9 @@ +<?php +/** + * ElggGroup default view. + * + * @package Elgg + * @subpackage Core + */ + +echo elgg_view('object/default', $vars); diff --git a/views/default/group/default/river.php b/views/default/group/default/river.php deleted file mode 100644 index e87331fec..000000000 --- a/views/default/group/default/river.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php - -$group = $vars['entity']; - -$image = elgg_view_entity_icon($group, 'tiny'); - -$title = elgg_view('output/url', array( - 'href' => $group->getURL(), - 'text' => $group->name, - 'encode_text' => true, -)); - - -$subtitle = elgg_view('output/text', array('value' => $group->briefdescription)); - -$description = elgg_get_excerpt($group->description, 350); - -echo elgg_view('river/elements/attachment', array( - 'icon' => $image, - 'title' => $title, - 'subtitle' => $subtitle, - 'description' => $description, -));
\ No newline at end of file diff --git a/views/default/group/elements/summary.php b/views/default/group/elements/summary.php new file mode 100644 index 000000000..395ed5292 --- /dev/null +++ b/views/default/group/elements/summary.php @@ -0,0 +1,13 @@ +<?php +/** + * Group summary + * + * @uses $vars['entity'] ElggEntity + * @uses $vars['title'] Title link (optional) false = no title, '' = default + * @uses $vars['metadata'] HTML for entity metadata and actions (optional) + * @uses $vars['subtitle'] HTML for the subtitle (optional) + * @uses $vars['tags'] HTML for the tags (optional) + * @uses $vars['content'] HTML for the entity content (optional) + */ + +echo elgg_view('object/elements/summary', $vars); diff --git a/views/default/group/search/finishblurb.php b/views/default/group/search/finishblurb.php new file mode 100644 index 000000000..ceaeb0ff0 --- /dev/null +++ b/views/default/group/search/finishblurb.php @@ -0,0 +1,18 @@ +<?php +/** + * @package Elgg + * @subpackage Core + * @deprecated 1.7 + */ +elgg_deprecated_notice('view groups/search/finishblurb was deprecated.', 1.7); + +if ($vars['count'] > $vars['threshold']) { + +?> +<div class="contentWrapper"><a href="<?php echo elgg_get_site_url(); ?>search/groups?tag=<?php echo urlencode($vars['tag']); ?>"> + <?php + echo elgg_echo("group:search:finishblurb"); + ?></a> +</div> +<?php +} diff --git a/views/default/group/search/startblurb.php b/views/default/group/search/startblurb.php new file mode 100644 index 000000000..92256d1db --- /dev/null +++ b/views/default/group/search/startblurb.php @@ -0,0 +1,14 @@ +<?php +/** + * @package Elgg + * @subpackage Core + * @deprecated 1.7 + */ +elgg_deprecated_notice('view groups/search/startblurb was deprecated.', 1.7); +?> + +<div class="contentWrapper"> + <?php + echo elgg_echo("group:search:startblurb", array($vars['tag'])); + ?> +</div> |