X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=4afc5409c06b0be4692ab1008577efb2b091e55c;hb=0a5297970bc3c8e5dbcbadeb3463c2950ca40eef;hp=789ba1daf1cabdca0567eced5d4ac5f110a7e5b5;hpb=3b6d3d1aded212025c650830522c9005dde2a151;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 789ba1daf1..4afc5409c0 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -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');