mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Add link to privacy policy into the leaving message form
This commit is contained in:
parent
bc99761b7a
commit
d41db57211
@ -178,6 +178,12 @@ function setup_leavemessage($name, $email, $group_id, $info, $referrer)
|
|||||||
'title' => $data['page.title']
|
'title' => $data['page.title']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Set privacy policy link (if needed)
|
||||||
|
if (Settings::get('enableprivacypolicy')
|
||||||
|
&& strcmp('', Settings::get('privacypolicy'))) {
|
||||||
|
$data['leaveMessage']['leaveMessageForm']['privacyPolicyUrl'] = Settings::get('privacypolicy');
|
||||||
|
}
|
||||||
|
|
||||||
if (Settings::get('enablegroups') == '1') {
|
if (Settings::get('enablegroups') == '1') {
|
||||||
$data['leaveMessage']['leaveMessageForm']['groups']
|
$data['leaveMessage']['leaveMessageForm']['groups']
|
||||||
= prepare_groups_select($group_id);
|
= prepare_groups_select($group_id);
|
||||||
|
@ -45,6 +45,11 @@
|
|||||||
<td><input type="text" name="captcha" size="50" maxlength="15" value="" class="username"/></td>
|
<td><input type="text" name="captcha" size="50" maxlength="15" value="" class="username"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{#if privacyPolicyUrl}}
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><strong>{{{l10n "Please note that by leaving the message you're explicitly agree with the <a href=\"{0}\" target=\"_blank\">Privacy Policy</a>" privacyPolicyUrl}}}</strong></td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
</table>
|
</table>
|
||||||
<a href="javascript:void(0);" class="but" id="send-message">{{l10n "Send"}}</a>
|
<a href="javascript:void(0);" class="but" id="send-message">{{l10n "Send"}}</a>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
Loading…
Reference in New Issue
Block a user