captcha présentation sur une seule ligne
This commit is contained in:
parent
33aed39f83
commit
c0564f705c
@ -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
|
||||
|
@ -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 -
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user