Browse Source

theming for default group selector

pull/302/merge
friendica 10 years ago
parent
commit
34b79b4f2b
  1. 5
      include/group.php
  2. 2
      mod/settings.php
  3. 5
      view/group_selection.tpl
  4. 1
      view/settings.tpl

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

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

5
view/group_selection.tpl

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

1
view/settings.tpl

@ -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…
Cancel
Save