aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-18 01:38:11 -0700
committerfriendica <info@friendica.com>2012-05-18 01:38:11 -0700
commit34b79b4f2b8b9a563717ca60bc55ff868c29df1a (patch)
tree4c7941b832a162a77e1edf5aca7261aa4f8a1d0e
parent5ecaeb8e5c9fb01ee768df2a650d2187d971b105 (diff)
downloadvolse-hubzilla-34b79b4f2b8b9a563717ca60bc55ff868c29df1a.tar.gz
volse-hubzilla-34b79b4f2b8b9a563717ca60bc55ff868c29df1a.tar.bz2
volse-hubzilla-34b79b4f2b8b9a563717ca60bc55ff868c29df1a.zip
theming for default group selector
-rw-r--r--include/group.php5
-rw-r--r--mod/settings.php2
-rw-r--r--view/group_selection.tpl5
-rw-r--r--view/settings.tpl1
4 files changed, 9 insertions, 4 deletions
diff --git a/include/group.php b/include/group.php
index cc6540b31..854ac06a9 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 8c7b1c49c..40fa55eea 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 d09ba676d..3809cb994 100644
--- a/view/group_selection.tpl
+++ b/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>
diff --git a/view/settings.tpl b/view/settings.tpl
index e25d67463..556cd3ba3 100644
--- a/view/settings.tpl
+++ b/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