| Línea 74... |
Línea 74... |
| 74 |
}
|
74 |
}
|
| 75 |
$input = html_writer::empty_tag('input', $inputattributes) . $feedbackimg;
|
75 |
$input = html_writer::empty_tag('input', $inputattributes) . $feedbackimg;
|
| Línea 76... |
Línea 76... |
| 76 |
|
76 |
|
| 77 |
if ($placeholder) {
|
77 |
if ($placeholder) {
|
| 78 |
$inputinplace = html_writer::tag('label', $options->add_question_identifier_to_label(get_string('answer')),
|
78 |
$inputinplace = html_writer::tag('label', $options->add_question_identifier_to_label(get_string('answer')),
|
| 79 |
array('for' => $inputattributes['id'], 'class' => 'sr-only'));
|
79 |
['for' => $inputattributes['id'], 'class' => 'visually-hidden']);
|
| 80 |
$inputinplace .= $input;
|
80 |
$inputinplace .= $input;
|
| 81 |
$questiontext = substr_replace($questiontext, $inputinplace,
|
81 |
$questiontext = substr_replace($questiontext, $inputinplace,
|
| 82 |
strpos($questiontext, $placeholder), strlen($placeholder));
|
82 |
strpos($questiontext, $placeholder), strlen($placeholder));
|