]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/theme.php
Merge pull request #2321 from fabrixxm/mobile_acl_dialog
[friendica.git] / view / theme / vier / theme.php
index 789ba1daf1cabdca0567eced5d4ac5f110a7e5b5..4afc5409c06b0be4692ab1008577efb2b091e55c 100644 (file)
@@ -222,6 +222,9 @@ function vier_community_info() {
 
                require_once('include/forums.php');
 
+               if(x($_GET['cid']) && intval($_GET['cid']) != 0)
+                       $cid = $_GET['cid'];
+
                //sort by last updated item
                $lastitem = true;
 
@@ -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');