]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/theme.php
Merge develop into 0602_contact_profile
[friendica.git] / view / theme / vier / theme.php
index 789ba1daf1cabdca0567eced5d4ac5f110a7e5b5..c2669f5a931ae8030d88ba603d596b243ec894b9 100644 (file)
@@ -220,12 +220,15 @@ function vier_community_info() {
        //Community_Pages at right_aside
        if($show_pages AND local_user()) {
 
-               require_once('include/forums.php');
+               require_once('include/ForumManager.php');
+
+               if(x($_GET['cid']) && intval($_GET['cid']) != 0)
+                       $cid = $_GET['cid'];
 
                //sort by last updated item
                $lastitem = true;
 
-               $contacts = get_forumlist($a->user['uid'],true,$lastitem, true);
+               $contacts = ForumManager::get_list($a->user['uid'],true,$lastitem, true);
                $total = count($contacts);
                $visible_forums = 10;
 
@@ -235,11 +238,14 @@ function vier_community_info() {
 
                        foreach($contacts as $contact) {
 
+                               $selected = (($cid == $contact['id']) ? ' forum-selected' : '');
+
                                $entry = array(
-                                       'url' => $a->get_baseurl() . '/network?f=&cid=' . $contact['id'],
-                                       'external_url' => $a->get_baseurl() . '/redir/' . $contact['id'],
+                                       'url' => z_root() . '/network?f=&cid=' . $contact['id'],
+                                       'external_url' => z_root() . '/redir/' . $contact['id'],
                                        'name' => $contact['name'],
                                        'cid' => $contact['id'],
+                                       'selected'      => $selected,
                                        'micro' => proxy_url($contact['micro'], false, PROXY_SIZE_MICRO),
                                        'id' => ++$id,
                                );
@@ -358,10 +364,10 @@ function vier_community_info() {
                        $r[] = array("photo" => "images/twitter.png", "name" => "Twitter");
 
                if (plugin_enabled("wppost"))
-                       $r[] = array("photo" => "images/wordpress", "name" => "Wordpress");
+                       $r[] = array("photo" => "images/wordpress.png", "name" => "Wordpress");
 
                if(function_exists("imap_open") AND !get_config("system","imap_disabled") AND !get_config("system","dfrn_only"))
-                       $r[] = array("photo" => "images/mail", "name" => "E-Mail");
+                       $r[] = array("photo" => "images/mail.png", "name" => "E-Mail");
 
                $tpl = get_markup_template('ch_connectors.tpl');