22 lines
905 B
PHP
22 lines
905 B
PHP
<?php
|
|
$i18NCnList = $i18NCnList ?? [
|
|
'line1' => ['Vous devez accepter les cookies reCaptcha pour utiliser les formulaires.', 'You must accept reCaptcha cookies to use the forms.'],
|
|
'line2' => ['Acceptez ce cookie pour utiliser les formulaires', 'Accept this cookie to use the forms'],
|
|
'btn' => ['Autoriser', 'Authorize']
|
|
];
|
|
|
|
$i18n_cn = function ($key) use ($i18NCnList) {
|
|
return nl2br(ICL_LANGUAGE_CODE === 'fr' ? $i18NCnList[$key][0] : $i18NCnList[$key][1]);
|
|
};
|
|
$e_i18n_cn = function ($key) use ($i18NCnList, $i18n_cn) {
|
|
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
|
echo $i18n_cn($key);
|
|
};
|
|
?>
|
|
<span class="cn-cookie-activate" data-cookie-name="recaptcha">
|
|
<span>
|
|
<span><?php $e_i18n_cn('line1'); ?></span>
|
|
<small><?php $e_i18n_cn('line2'); ?></small>
|
|
</span>
|
|
<button class="btn btn-red"><?php $e_i18n_cn('btn'); ?></button>
|
|
</span>
|