From 34b79b4f2b8b9a563717ca60bc55ff868c29df1a Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 18 May 2012 01:38:11 -0700 Subject: [PATCH] theming for default group selector --- include/group.php | 5 ++++- mod/settings.php | 2 +- view/group_selection.tpl | 5 ++++- view/settings.tpl | 1 - 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/group.php b/include/group.php index cc6540b31b..854ac06a9a 100644 --- a/include/group.php +++ b/include/group.php @@ -172,7 +172,10 @@ function mini_group_select($uid,$gid = 0) { } logger('groups: ' . print_r($grps,true)); - $o = replace_macros(get_markup_template('group_selection.tpl'), array('$groups' => $grps )); + $o = replace_macros(get_markup_template('group_selection.tpl'), array( + '$label' => t('Default privacy group for new contacts'), + '$groups' => $grps + )); return $o; } diff --git a/mod/settings.php b/mod/settings.php index 8c7b1c49c5..40fa55eeaa 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -991,7 +991,7 @@ function settings_content(&$a) { '$suggestme' => $suggestme, '$blockwall'=> $blockwall, // array('blockwall', t('Allow friends to post to your profile page:'), !$blockwall, ''), '$blocktags'=> $blocktags, // array('blocktags', t('Allow friends to tag your posts:'), !$blocktags, ''), - '$group_lbl_select' => t('Default privacy group for new contacts'), + '$group_select' => $group_select, diff --git a/view/group_selection.tpl b/view/group_selection.tpl index d09ba676d4..3809cb9946 100644 --- a/view/group_selection.tpl +++ b/view/group_selection.tpl @@ -1,5 +1,8 @@ - {{ for $groups as $group }} {{ endfor }} + diff --git a/view/settings.tpl b/view/settings.tpl index e25d67463d..556cd3ba37 100644 --- a/view/settings.tpl +++ b/view/settings.tpl @@ -93,7 +93,6 @@ $unkmail
- $group_select -- 2.39.5