mirror of
https://github.com/e107inc/e107.git
synced 2025-04-14 09:32:17 +02:00
Added new pref for a privacy policy url in contact forms (incl. Lans)
This commit is contained in:
parent
c176389f34
commit
c165fad9f0
@ -516,7 +516,16 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
|
||||
<div class='smalltext field-help'>".PRFLAN_274."</div>
|
||||
</td>
|
||||
</tr>
|
||||
<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>
|
||||
".$frm->textarea('contact_filter', $pref['contact_filter'], 5, 59, array('size'=>'xxlarge'))."
|
||||
@ -526,7 +535,6 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><label for='contact-emailcopy'>".PRFLAN_164."</label></td>
|
||||
<td>";
|
||||
@ -1114,6 +1122,13 @@ 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);
|
||||
|
||||
|
||||
|
@ -295,3 +295,6 @@ define("PRFLAN_273", "Lifetime in seconds. 0 = until the browser is closed. ");
|
||||
define("PRFLAN_274", "Contact form will only be visible to this userclass group.");
|
||||
define("PRFLAN_275", "View this page using https (SSL) to modify this option");
|
||||
define("PRFLAN_276", "PHP Default (Preferred)");
|
||||
|
||||
define("PRFLAN_277", "URL to the Privacy Policy");
|
||||
define("PRFLAN_278", "Make sure the url exists! It's best to use an absolute url.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user