|
Revision 33, 1.1 kB
(checked in by hopsonro, 2 years ago)
|
Import Elgg 0.9.1 release.
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
global $page_owner; |
|---|
| 4 |
|
|---|
| 5 |
if ($page_owner != -1) { |
|---|
| 6 |
if (user_type($page_owner) == "person") { |
|---|
| 7 |
if ($result = get_records_select('users',"owner = ? AND user_type = ?",array($page_owner,'community'))) { |
|---|
| 8 |
$body = "<ul>"; |
|---|
| 9 |
foreach($result as $row) { |
|---|
| 10 |
$row->name = run("profile:display:name",$row->ident); |
|---|
| 11 |
$body .= "<li><a href=\"" . url . $row->username . "/\">" . $row->name . "</a></li>"; |
|---|
| 12 |
} |
|---|
| 13 |
$body .= "</ul>"; |
|---|
| 14 |
|
|---|
| 15 |
$run_result .= "<li id=\"community_owned\">"; |
|---|
| 16 |
$run_result .= templates_draw(array( |
|---|
| 17 |
'context' => 'sidebarholder', |
|---|
| 18 |
'title' => __gettext("Owned communities"), |
|---|
| 19 |
'body' => $body |
|---|
| 20 |
) |
|---|
| 21 |
); |
|---|
| 22 |
$run_result .= "</li>"; |
|---|
| 23 |
} else { |
|---|
| 24 |
$run_result .= ""; |
|---|
| 25 |
} |
|---|
| 26 |
} |
|---|
| 27 |
} |
|---|
| 28 |
|
|---|
| 29 |
?> |
|---|