X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofiles.php;h=4bbfbb44cbc7f047854086b670b31065da4edc39;hb=2d83a1a9af0d6b132384aa770875f0be46b7914a;hp=26776ff606071018b3e0e32f2c457029e0cbbcbd;hpb=79725b28cf8cdcf97eaf61b2e1c23529f7a6e527;p=friendica.git diff --git a/mod/profiles.php b/mod/profiles.php index 26776ff606..4bbfbb44cb 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -278,6 +278,12 @@ function profiles_content(&$a) { '$no_selected' => (($r[0]['publish'] == 0) ? " checked=\"checked\" " : "") )); + $opt_tpl = file_get_contents("view/profile-hide-friends.tpl"); + $hide_friends = replace_macros($opt_tpl,array( + '$yes_selected' => (($r[0]['hide-friends']) ? " checked=\"checked\" " : ""), + '$no_selected' => (($r[0]['hide-friends'] == 0) ? " checked=\"checked\" " : "") + )); + $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); $a->page['htmlhead'] .= ""; @@ -292,10 +298,10 @@ function profiles_content(&$a) { '$baseurl' => $a->get_baseurl(), '$profile_id' => $r[0]['id'], '$profile_name' => $r[0]['profile-name'], - '$default' => (($is_default) ? "

This is your public profile.

" : ""), + '$default' => (($is_default) ? "

This is your public profile.
It may be visible to anybody using the internet.

" : ""), '$name' => $r[0]['name'], '$dob' => dob($r[0]['dob']), - '$hide_birth' => (($r[0]['dob_hide']) ? " checked=\"checked\" " : ""), + '$hide_friends' => $hide_friends, '$address' => $r[0]['address'], '$locality' => $r[0]['locality'], '$region' => $r[0]['region'],