aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue/theme.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-25 03:18:21 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-03-25 03:18:21 -0400
commit84686a26986e4d57093e48523b444dcd4f17c392 (patch)
tree3d45d2fcf42e34412328f6878944bed9c0993662 /view/theme/diabook-blue/theme.php
parent1d56224b08fe9781a050143f14c45fd518c5ca93 (diff)
parent1b8ac30fae55ff842d7f34fa2d9086d42cc421f1 (diff)
downloadvolse-hubzilla-84686a26986e4d57093e48523b444dcd4f17c392.tar.gz
volse-hubzilla-84686a26986e4d57093e48523b444dcd4f17c392.tar.bz2
volse-hubzilla-84686a26986e4d57093e48523b444dcd4f17c392.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: move community_pages to right_aside, fixes in css improved the inivitations and added a bit of sales pitch. * master:
Diffstat (limited to 'view/theme/diabook-blue/theme.php')
-rwxr-xr-xview/theme/diabook-blue/theme.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/view/theme/diabook-blue/theme.php b/view/theme/diabook-blue/theme.php
index c2475e8bc..6149b12de 100755
--- a/view/theme/diabook-blue/theme.php
+++ b/view/theme/diabook-blue/theme.php
@@ -138,6 +138,41 @@ function diabook_community_info(){
else {a_funct()}})()" ;
$aside['$fostitJS'] = $fostitJS;
+
+ //Community Page
+ $page = '<div id="page-sidebar-right_aside" class="widget">
+ <div class="title tool">
+ <h3>'.t("Community Pages").'</h3></div>
+ <div id="sidebar-page-list"><ul>';
+
+ $pagelist = array();
+
+ $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact`
+ WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d",
+ 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;" title="' . $contact['url'] . '" class="label" target="external-link">'.
+ $contact["name"]."</a></li>";
+ }
+ $page .= '</ul></div></div>';
+ if (sizeof($contacts) > 0)
+
+ $aside['$page'] = $page;
+ //END Community Page
+
+
$url = $a->get_baseurl($ssl_state);
$aside['$url'] = $url;