- //Community_Pages at right_aside
- if($close_pages != "1") {
- if(local_user()) {
- $page = '
- <h3 style="margin-top:0px;">'.t("Community Pages").'<a id="closeicon" href="#boxsettings" onClick="open_boxsettings(); return false;" style="text-decorat
-ion:none;" class="icon close_box" title="'.t("Settings").'"></a></h3>
- <div id=""><ul style="margin-left: 7px;margin-top: 0px;padding-left: 0px;padding-top: 0px;">';
-
- $pagelist = array();
-
- $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact`
- WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d
- ORDER BY `name` ASC",
- intval($a->user['uid'])
- );
-
- $pageD = array();
-
- // Look if the profile is a community page
- foreach($contacts as $contact) {
- $pageD[] = array("url"=>$contact["url"], "name"=>$contact["name"], "id"=>$contact["id"], "micro"=>$contact['micro']);
- };
-
-
- $contacts = $pageD;
-
- foreach($contacts as $contact) {
- $page .= '<li style="list-style-type: none;" class="tool"><img height="20" width="20" style="float: left; margin-right: 3px;" src="' . $contact['micro'] .'" alt="' . $contact['url'] . '" /> <a href="'.$a->get_baseurl().'/redir/'.$contact["id"].'" style="margin-top: 2px; word-wrap: break-word; width: 132px;" title="' . $contact['url'] . '" class="label" target="external-link">'.
- $contact["name"]."</a></li>";
- }
- $page .= '</ul></div>';
- //if (sizeof($contacts) > 0)
- $aside['$page'] = $page;
- }
- }
- //END Community Page
-