diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-27 12:37:58 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-27 12:37:58 +0000 |
commit | 05fc22277728b7d2e175df7f138d6b667ee318da (patch) | |
tree | 175c3c8caa2726fac84e14a264b49df6966a3af3 /mod/groups/views/default | |
parent | f9a543aad621b8a4d37928d457dee168f64e8e7f (diff) | |
download | elgg-05fc22277728b7d2e175df7f138d6b667ee318da.tar.gz elgg-05fc22277728b7d2e175df7f138d6b667ee318da.tar.bz2 |
Initital group members page commit (not working yet).
git-svn-id: https://code.elgg.org/elgg/trunk@2977 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r-- | mod/groups/views/default/groups/members.php | 2 | ||||
-rw-r--r-- | mod/groups/views/default/groups/membershiprequests.php | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/mod/groups/views/default/groups/members.php b/mod/groups/views/default/groups/members.php index e2673f967..62cb723ef 100644 --- a/mod/groups/views/default/groups/members.php +++ b/mod/groups/views/default/groups/members.php @@ -21,7 +21,7 @@ $members = $vars['entity']->getMembers(10);
foreach($members as $mem){
- echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $mem, 'size' => 'tiny', 'override' => 'true')) . "</div>";
+ echo "<div class=\"member_icon\"><a href=\"".$mem->getURL()."\">" . elgg_view("profile/icon",array('entity' => $mem, 'size' => 'tiny', 'override' => 'true')) . "</a></div>";
}
diff --git a/mod/groups/views/default/groups/membershiprequests.php b/mod/groups/views/default/groups/membershiprequests.php new file mode 100644 index 000000000..f442c1a93 --- /dev/null +++ b/mod/groups/views/default/groups/membershiprequests.php @@ -0,0 +1,30 @@ +<?php
+
+ if (!empty($vars['requests']) && is_array($vars['requests'])) {
+
+ foreach($vars['requests'] as $request)
+ if ($request instanceof ElggUser) {
+
+?>
+ <div class="reportedcontent_content active_report">
+ <p class="reportedcontent_detail">
+ <?php
+
+ echo $request->name;
+
+ ?>
+ </p>
+ </div>
+<?php
+
+ }
+
+ } else {
+
+ echo "<div class=\"contentWrapper\">";
+ echo "<p>" . elgg_echo('groups:requests:none') . "</p>";
+ echo "</div>";
+
+ }
+
+?>
\ No newline at end of file |