Small-caps CAPTCHA in newsletter form and error message

This commit is contained in:
Alex Cabal 2022-06-20 11:49:29 -05:00
parent 93771ab1bc
commit 3b26e49509
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ else{
<ul class="error"> <ul class="error">
<? foreach($exceptions as $ex){ ?> <? foreach($exceptions as $ex){ ?>
<li> <li>
<p><? $message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?><?= Formatter::ToPlainText($message) ?></p> <p><? $message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?><?= str_replace('CAPTCHA', '<abbr class="acronym">CAPTCHA</abbr>', Formatter::ToPlainText($message)) ?></p>
</li> </li>
<? } ?> <? } ?>
</ul> </ul>

View file

@ -37,7 +37,7 @@ if($exception){
<input type="email" name="email" value="<?= Formatter::ToPlainText($subscriber->Email) ?>" maxlength="80" required="required" /> <input type="email" name="email" value="<?= Formatter::ToPlainText($subscriber->Email) ?>" maxlength="80" required="required" />
</label> </label>
<label class="captcha"> <label class="captcha">
Type the letters in the image Type the letters in the <abbr class="acronym">CAPTCHA</abbr> image
<div> <div>
<input type="text" name="captcha" required="required" /> <input type="text" name="captcha" required="required" />
<img src="/images/captcha" alt="A visual CAPTCHA." height="<?= CAPTCHA_IMAGE_HEIGHT ?>" width="<?= CAPTCHA_IMAGE_WIDTH ?>" /> <img src="/images/captcha" alt="A visual CAPTCHA." height="<?= CAPTCHA_IMAGE_HEIGHT ?>" width="<?= CAPTCHA_IMAGE_WIDTH ?>" />