captcha présentation sur une seule ligne

This commit is contained in:
Fred Tempez 2020-10-04 16:49:28 +02:00
parent 33aed39f83
commit c0564f705c
3 changed files with 10 additions and 7 deletions

View File

@ -61,10 +61,10 @@ class template {
copy ('core/vendor/zwiico/png/'.$letters[$firstNumber] . '.png', 'site/tmp/' . $firstLetter . '.png');
copy ('core/vendor/zwiico/png/'.$letters[$secondNumber] . '.png', 'site/tmp/' . $secondLetter . '.png');
// Début du wrapper
$html = '<div id="' . $attributes['id'] . 'Wrapper" class="inputWrapper ' . $attributes['classWrapper'] . '">';
$html = '<div class="captcha" id="' . $attributes['id'] . 'Wrapper" class="inputWrapper ' . $attributes['classWrapper'] . '">';
// Label
$html .= self::label($attributes['id'],
'<img class="captchaNumber" src="' . helper::baseUrl(false) . 'site/tmp/' . $firstLetter . '.png" /> + <img class="captchaNumber" src="' . helper::baseUrl(false) . 'site/tmp/' . $secondLetter . '.png" /> = en chiffres ?', [
'<img src="' . helper::baseUrl(false) . 'site/tmp/' . $firstLetter . '.png" />' . template::ico('plus') . '<img class="captchaNumber" src="' . helper::baseUrl(false) . 'site/tmp/' . $secondLetter . '.png" /> = en chiffres ?', [
'help' => $attributes['help']
]);
// Notice

View File

@ -1360,14 +1360,18 @@ th.col12 {
}
/* Captcha
* Taille des images
*/
.captchaNumber {
.captcha img{
height: 30px;
vertical-align: bottom;
vertical-align: middle;
padding-left: 10px;
padding-right: 10px;
}
.captcha input[type='text'] {
width: 4em;
text-align: center;
margin: auto auto auto 2em;
}
/*
* Couleur des icônes + et -

View File

@ -77,7 +77,7 @@
]); ?>
<?php if($this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?>
<div class="row">
<div class="col6">
<div class="col12">
<?php echo template::captcha('blogArticleCaptcha'); ?>
</div>
</div>
@ -85,7 +85,6 @@
<div class="row">
<div class="col2 offset8">
<?php echo template::button('blogArticleCommentHide', [
'class' => 'buttonGrey',
'value' => 'Annuler'
]); ?>
</div>