Only show connectors when not "hide wall" is enabled.
This commit is contained in:
parent
5616c58535
commit
acf1c3956c
|
@ -1043,13 +1043,18 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$a->user['hidewall']) {
|
||||||
if($mail_enabled) {
|
if($mail_enabled) {
|
||||||
$selected = (($pubmail_enabled) ? ' checked="checked" ' : '');
|
$selected = (($pubmail_enabled) ? ' checked="checked" ' : '');
|
||||||
$jotnets .= '<div class="profile-jot-net"><input type="checkbox" name="pubmail_enable"' . $selected . ' value="1" /> ' . t("Post to Email") . '</div>';
|
$jotnets .= '<div class="profile-jot-net"><input type="checkbox" name="pubmail_enable"' . $selected . ' value="1" /> ' . t("Post to Email") . '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
call_hooks('jot_tool', $jotplugins);
|
|
||||||
call_hooks('jot_networks', $jotnets);
|
call_hooks('jot_networks', $jotnets);
|
||||||
|
} else
|
||||||
|
$jotnets .= sprintf(t('Connectors disabled, since "%s" is enabled.'),
|
||||||
|
t('Hide your profile details from unknown viewers?'));
|
||||||
|
|
||||||
|
call_hooks('jot_tool', $jotplugins);
|
||||||
|
|
||||||
if($notes_cid)
|
if($notes_cid)
|
||||||
$jotnets .= '<input type="hidden" name="contact_allow[]" value="' . $notes_cid .'" />';
|
$jotnets .= '<input type="hidden" name="contact_allow[]" value="' . $notes_cid .'" />';
|
||||||
|
|
Loading…
Reference in a new issue