1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Added new pref section GPDR and moved the "privacy policy" pref to this section

Added another pref for "terms and conditions"
This commit is contained in:
Achim Ennenbach
2018-08-28 12:28:41 +02:00
parent c0557966ec
commit 72897dcc17
2 changed files with 39 additions and 17 deletions

View File

@@ -517,14 +517,6 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
</td>
</tr>
<tr>
<td><label for='contact-privacypolicy'>".PRFLAN_277."</label></td>
<td>
".$frm->text('contact_privacypolicy', $pref['contact_privacypolicy'], 200, array('size'=>'xxlarge'))."
<div class='smalltext field-help'>".PRFLAN_278."</div>
</td>
</tr>
<tr>
<td><label for='contact-filter'>".PRFLAN_270."</label></td>
<td>
@@ -558,6 +550,39 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
</fieldset>";
// GDPR Settings -----------------------------
$text .= "
<fieldset class='e-hideme' id='core-prefs-gdpr'>
<legend>".PRFLAN_277."</legend>
<table class='table adminform'>
<colgroup>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tbody>
<tr>
<td><label for='gdpr-privacypolicy'>".PRFLAN_278."</label></td>
<td>
".$frm->text('gdpr_privacypolicy', $pref['gdpr_privacypolicy'], 200, array('size'=>'xxlarge'))."
<div class='smalltext field-help'>".PRFLAN_279."</div>
</td>
</tr>
<tr>
<td><label for='gdpr-termsandconditions'>".PRFLAN_280."</label></td>
<td>
".$frm->text('gdpr_termsandconditions', $pref['gdpr_termsandconditions'], 200, array('size'=>'xxlarge'))."
<div class='smalltext field-help'>".PRFLAN_281."</div>
</td>
</tr>
</tbody>
</table>
".pref_submit('display')."
</fieldset>
";
$text .= "
<fieldset class='e-hideme' id='core-prefs-display'>
<legend>".PRFLAN_13."</legend>
@@ -1122,13 +1147,6 @@ else
}
}
// add new pref contact_privacypolicy
if (!isset($pref['contact_privacypolicy']))
{
$pref['contact_privacypolicy'] = '';
$savePrefs = true;
}
if ($savePrefs) $core_pref->setPref($pref)->save(false, true);
@@ -2058,6 +2076,7 @@ function prefs_adminmenu()
$var['core-prefs-header1']['header'] = LAN_BASIC_OPTIONS;
$var['core-prefs-main']['text'] = PRFLAN_1;
$var['core-prefs-email']['text'] = PRFLAN_254;
$var['core-prefs-gdpr']['text'] = PRFLAN_277;
$var['core-prefs-registration']['text'] = PRFLAN_28;
$var['core-prefs-signup']['text'] = PRFLAN_19;
// $var['core-prefs-sociallogin']['text'] = "Social Options"; // Moved into plugin.