theming for default group selector
This commit is contained in:
parent
5ecaeb8e5c
commit
34b79b4f2b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user