diff options
Diffstat (limited to 'mod/groups')
-rw-r--r-- | mod/groups/languages/en.php | 2 | ||||
-rw-r--r-- | mod/groups/views/default/river/group/create.php | 33 |
2 files changed, 22 insertions, 13 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index 3baf02e69..45872277e 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -179,8 +179,8 @@ or click below to view the group's join requests: Forum river items */ + 'groups:river:create' => 'created the group', 'groups:river:member' => '%s is now a member of', - 'groups:river:create' => '%s created a new group called', 'groupforum:river:updated' => '%s has updated', 'groupforum:river:update' => 'this discussion topic', 'groupforum:river:created' => '%s has created', diff --git a/mod/groups/views/default/river/group/create.php b/mod/groups/views/default/river/group/create.php index ae55df03b..a70f8b51d 100644 --- a/mod/groups/views/default/river/group/create.php +++ b/mod/groups/views/default/river/group/create.php @@ -1,16 +1,25 @@ <?php +/** + * Group creation river view. + */ - $performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject(); - $object = get_entity($vars['item']->object_guid); - $objecturl = $object->getURL(); +$object = $vars['item']->getObjectEntity(); +$excerpt = strip_tags($object->description); +$excerpt = elgg_get_excerpt($excerpt); - $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; - $string = elgg_echo("groups:river:create", array($url)) . " "; - $string .= " <a href=\"" . $object->getURL() . "\">" . $object->name . "</a>"; - $string .= " <span class='entity-subtext'>". elgg_view_friendly_time($object->time_created); - if (isloggedin()) { - $string .= elgg_view('forms/likes/link', array('entity' => $object)); - } - $string .= "</span>"; +$params = array( + 'href' => $object->getURL(), + 'text' => $object->name, +); +$link = elgg_view('output/url', $params); -echo $string;
\ No newline at end of file + +echo elgg_echo('groups:river:create'); + +echo " $link"; + +if ($excerpt) { + echo '<div class="elgg-river-content">'; + echo $excerpt; + echo '</div>'; +} |