aboutsummaryrefslogtreecommitdiffstats
path: root/mod/manage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-01 17:06:34 -0700
committerfriendica <info@friendica.com>2012-11-01 17:06:34 -0700
commit1021a4d4763974c3c40f40a0ca9682f1fcc3f6ee (patch)
tree9a068aa44d6566fa36c69dd1a30895facc1d96db /mod/manage.php
parent42ac706b9f9589b2c38aae45156b6e1e49f8ca8d (diff)
downloadvolse-hubzilla-1021a4d4763974c3c40f40a0ca9682f1fcc3f6ee.tar.gz
volse-hubzilla-1021a4d4763974c3c40f40a0ca9682f1fcc3f6ee.tar.bz2
volse-hubzilla-1021a4d4763974c3c40f40a0ca9682f1fcc3f6ee.zip
add current selection to channel manager
Diffstat (limited to 'mod/manage.php')
-rw-r--r--mod/manage.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/manage.php b/mod/manage.php
index d29830f90..ac4454567 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -37,20 +37,28 @@ function manage_content(&$a) {
intval(get_account_id())
);
+ $selected_channel = null;
+
if($r && count($r)) {
$channels = $r;
- for($x = 0; $x < count($channels); $x ++)
+ for($x = 0; $x < count($channels); $x ++) {
$channels[$x]['link'] = 'manage/' . intval($channels[$x]['channel_id']);
+ if($channels[$x]['channel_id'] == local_user())
+ $selected_channel = $channels[$x];
+ $channels[$x]['primary_links'] = '1';
+ }
}
}
$links = array(
- array( 'new_channel', t('Create a new channel'), t('New Channel'))
+ array( 'new_channel', t('Create a new channel'), t('Create a new channel'))
);
$o = replace_macros(get_markup_template('channels.tpl'), array(
'$header' => t('Channel Manager'),
+ '$msg_selected' => t('Current Channel'),
+ '$selected' => $selected_channel,
'$desc' => t('Attach to one of your channels by selecting it.'),
'$msg_primary' => t('Default Channel'),
'$msg_make_primary' => t('Make Default'),