From: friendica Date: Fri, 18 May 2012 08:38:11 +0000 (-0700) Subject: theming for default group selector X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34b79b4f2b8b9a563717ca60bc55ff868c29df1a;p=friendica.git theming for default group selector --- 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