diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-01 10:08:20 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-01 10:08:20 +0100 |
commit | 70f0019905f8c44ed875379a9af65988e536b4f4 (patch) | |
tree | 7470fc4ee3199c585be3e9e023a135eda8e34b02 /mod/profiles.php | |
parent | 26069e6ca189533152c825a96755f7ef31cb28a8 (diff) | |
download | volse-hubzilla-70f0019905f8c44ed875379a9af65988e536b4f4.tar.gz volse-hubzilla-70f0019905f8c44ed875379a9af65988e536b4f4.tar.bz2 volse-hubzilla-70f0019905f8c44ed875379a9af65988e536b4f4.zip |
Checkboxify yesno-fields, but use CSS to show them as switches in Redbasic
Diffstat (limited to 'mod/profiles.php')
-rw-r--r-- | mod/profiles.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index f2695f332..6bdc7f11a 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -596,13 +596,12 @@ function profiles_content(&$a) { $opt_tpl = get_markup_template("profile_hide_friends.tpl"); - $hide_friends = replace_macros($opt_tpl,array( - '$desc' => t('Hide your contact/friend list from viewers of this profile?'), - '$yes_str' => t('Yes'), - '$no_str' => t('No'), - '$yes_selected' => (($r[0]['hide_friends']) ? " checked=\"checked\" " : ""), - '$no_selected' => (($r[0]['hide_friends'] == 0) ? " checked=\"checked\" " : "") - )); + $hide_friends = replace_macros($opt_tpl,array('$field' => array( + 'hide-friends', + t('Hide your contact/friend list from viewers of this profile?'), + $r[0]['hide_friends'], + '', + ))); $q = q("select * from profdef where true"); if($q) { |