Changeset 216
- Timestamp:
- 02/17/09 01:21:27 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
elgg/branches/20090118-r198/mod/community/lib/communities_owned.php
r33 r216 12 12 } 13 13 $body .= "</ul>"; 14 $body .= "<p><a href=\"" . url . $_SESSION['username'] . "/communities/owned#create_community\">[Create Communities]</a></p>"; 14 15 // $run_result .= $body; 15 16 $run_result .= "<li id=\"community_owned\">"; elgg/branches/20090118-r198/mod/community/lib/community_memberships.php
r33 r216 5 5 if ($page_owner != -1) { 6 6 if (user_type($page_owner) == "person" || user_type($page_owner) == "external") { 7 $body .= "<ul>"; 7 8 if ($result = run('community:membership:data',array($page_owner))) { 8 $body = "<ul>";9 9 foreach($result as $row) { 10 10 $row->name = run("profile:display:name",$row->ident); 11 11 $body .= "<li><a href=\"" . url . $row->username . "/\">" . $row->name . "</a></li>"; 12 12 } 13 $body .= "</ul>";14 $run_result .= "<li id=\"community_membership\">";15 $run_result .= templates_draw(array(16 'context' => 'sidebarholder',17 'title' => __gettext("Community memberships"),18 'body' => $body19 )20 );21 $run_result .= "</li>";22 } else {23 $run_result .= "";24 13 } 14 $body .= "</ul>"; 15 $body .= "<p><a href=\"" . url . "mod/browser/index.php?display=communities\">[View all Communities]</a></p>"; 16 $run_result .= "<li id=\"community_membership\">"; 17 $run_result .= templates_draw(array( 18 'context' => 'sidebarholder', 19 'title' => __gettext("Community memberships"), 20 'body' => $body 21 ) 22 ); 23 $run_result .= "</li>"; 25 24 } else if (user_type($page_owner) == "community") { 26 25 $friends = array(); elgg/branches/20090118-r198/mod/community/templates/community_create.html
r33 r216 1 1 <div class="community_create"> 2 <h2>{{title}}</h2> 2 <a name="create_community"></a> 3 <br /> 4 <h1>{{title}}</h1> 3 5 <form action="" method="post"> 4 6 {{form_fields}}

