1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Improved accessibility in Search (labels)

HTML is now valid
This commit is contained in:
Moc
2021-12-21 11:53:29 +01:00
parent de8af179a4
commit 1779170933
2 changed files with 9 additions and 8 deletions

View File

@@ -353,9 +353,10 @@ class search_front extends e_shortcode
foreach ($this->enhancedTypes as $en_id => $ENHANCED_TEXT)
{
$var['ENHANCED_TEXT'] = $ENHANCED_TEXT;
$var['ENHANCED_DISPLAY_ID'] = "en_".$en_id;
$var['ENHANCED_FIELD'] = "<input class='tbox form-control' type='text' id='".$en_id."' name='".$en_id."' size='35' value='".$tp->post_toForm(varset($_GET[$en_id]))."' maxlength='50' />";
$var['ENHANCED_TEXT'] = $ENHANCED_TEXT;
$var['ENHANCED_DISPLAY_ID'] = "en_".$en_id;
$var['ENHANCED_DISPLAY_FIELDNAME'] = $en_id;
$var['ENHANCED_FIELD'] = "<input class='tbox form-control' type='text' id='".$en_id."' name='".$en_id."' size='35' value='".$tp->post_toForm(varset($_GET[$en_id]))."' maxlength='50' />";
$text .= $tp->simpleParse($this->template['enhanced'], $var);
}