Fix option PARTNERSHIP_BACKLINKS_TO_CHECK

This commit is contained in:
Laurent Destailleur 2023-03-01 11:08:38 +01:00
parent e9ad798431
commit 93953cd24c
2 changed files with 13 additions and 1 deletions

View File

@ -93,4 +93,5 @@ ReasonDeclineOrCancel=Reason for declining or canceling
NewPartnershipRequest=New partnership request
NewPartnershipRequestDesc=This form allows you to request to be part of one of our partnership program. If you need help to fill this form, please contact by email <b>%s</b>.
ThisUrlMustContainsAtLeastOneLinkToWebsite=This page must contains at least one link to one of the following domain: %s

View File

@ -617,7 +617,18 @@ print '<tr><td>'.$langs->trans("Email").' <span style="color:red;">*</span></td>
print '<input type="text" name="email" maxlength="255" class="minwidth200" value="'.dol_escape_htmltag(GETPOST('email')).'"></td></tr>'."\n";
// Url
print '<tr><td>'.$langs->trans("Url").' <span style="color:red;">*</span></td><td>';
print '<input type="text" name="url" maxlength="255" class="minwidth200" value="'.dol_escape_htmltag(GETPOST('url')).'"></td></tr>'."\n";
print '<input type="text" name="url" maxlength="255" class="minwidth200" value="'.dol_escape_htmltag(GETPOST('url')).'">';
if (getDolGlobalString('PARTNERSHIP_BACKLINKS_TO_CHECK')) {
$listofkeytocheck = explode('|', getDolGlobalString('PARTNERSHIP_BACKLINKS_TO_CHECK'));
$i = 0;
$s = '';
foreach ($listofkeytocheck as $val) {
$i++;
$s .= ($s ? ($i == count($listofkeytocheck) ? ' '.$langs->trans("or").' ' : ', ') : '').$val;
}
print '<br><span class="opacitymedium small">'.$langs->trans("ThisUrlMustContainsAtLeastOneLinkToWebsite", $s).'</small>';
}
print '</td></tr>'."\n";
// Address
print '<tr><td>'.$langs->trans("Address").'</td><td>'."\n";
print '<textarea name="address" id="address" wrap="soft" class="quatrevingtpercent" rows="'.ROWS_3.'">'.dol_escape_htmltag(GETPOST('address', 'restricthtml'), 0, 1).'</textarea></td></tr>'."\n";