1
1
Fork 0

theming for default group selector

This commit is contained in:
friendica 2012-05-18 01:38:11 -07:00
parent 5ecaeb8e5c
commit 34b79b4f2b
4 changed files with 9 additions and 4 deletions

View file

@ -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;
}

View file

@ -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,

View file

@ -1,5 +1,8 @@
<select name="group-selection" id="group-selection">
<div class="field custom">
<label for="group-selection" id="group-selection-lbl">$label</label>
<select name="group-selection" id="group-selection" >
{{ for $groups as $group }}
<option value="$group.id" {{ if $group.selected }}selected="selected"{{ endif }} >$group.name</option>
{{ endfor }}
</select>
</div>

View file

@ -93,7 +93,6 @@ $unkmail
<br/>
<div id="settings-default-perms-end"></div>
<label name="group-selection-lbl" for="group-selection">$group_lbl_select</label>
$group_select