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)); 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; return $o;
} }

View File

@ -991,7 +991,7 @@ function settings_content(&$a) {
'$suggestme' => $suggestme, '$suggestme' => $suggestme,
'$blockwall'=> $blockwall, // array('blockwall', t('Allow friends to post to your profile page:'), !$blockwall, ''), '$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, ''), '$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, '$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 }} {{ for $groups as $group }}
<option value="$group.id" {{ if $group.selected }}selected="selected"{{ endif }} >$group.name</option> <option value="$group.id" {{ if $group.selected }}selected="selected"{{ endif }} >$group.name</option>
{{ endfor }} {{ endfor }}
</select> </select>
</div>

View File

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