diff options
author | RedMatrix <info@friendica.com> | 2015-01-02 12:10:08 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2015-01-02 12:10:08 +1100 |
commit | b54235234fdba83bc4505672e65ad94fbdbccb62 (patch) | |
tree | a7e9a9db526d5c25fd58882637fa696a4734960a /mod/profiles.php | |
parent | 93b94704878c1b66ee95987de2b24dc39163763a (diff) | |
parent | ef6680f7adfeacb0e7614c509e8861f08ff066e8 (diff) | |
download | volse-hubzilla-b54235234fdba83bc4505672e65ad94fbdbccb62.tar.gz volse-hubzilla-b54235234fdba83bc4505672e65ad94fbdbccb62.tar.bz2 volse-hubzilla-b54235234fdba83bc4505672e65ad94fbdbccb62.zip |
Merge pull request #803 from pafcu/checkboxes
Checkboxyfy settings, style checkboxes 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) { |