mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
Improved accessibility in Search (labels)
HTML is now valid
This commit is contained in:
parent
de8af179a4
commit
1779170933
@ -5,9 +5,9 @@ if (!defined('e107_INIT')) { exit; }
|
||||
// Bootstrap
|
||||
|
||||
$SEARCH_TEMPLATE['form']['start'] = '
|
||||
<form class="form-horizontal" role="form" id="searchform" method="get" action="{SEARCH_FORM_URL}">
|
||||
<form class="form-horizontal" id="searchform" method="get" action="{SEARCH_FORM_URL}">
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-3 control-label">{LAN=199}</label>
|
||||
<label for="q" class="col-sm-3 control-label">{LAN=199}</label>
|
||||
<div class="col-sm-9">{SEARCH_MAIN}
|
||||
</div>
|
||||
</div>
|
||||
@ -18,7 +18,7 @@ $SEARCH_TEMPLATE['form']['start'] = '
|
||||
|
||||
$SEARCH_TEMPLATE['form']['advanced'] = '
|
||||
<div class="form-group">
|
||||
<label for="inputPassword3" class="col-sm-3 control-label">{SEARCH_ADV_A}</label>
|
||||
<label for="t" class="col-sm-3 control-label">{SEARCH_ADV_A}</label>
|
||||
<div class="col-sm-9">
|
||||
|
||||
{SEARCH_ADV_B}
|
||||
@ -30,7 +30,7 @@ $SEARCH_TEMPLATE['form']['advanced'] = '
|
||||
|
||||
$SEARCH_TEMPLATE['form']['enhanced'] = '
|
||||
<div id="{ENHANCED_DISPLAY_ID}" class="form-group">
|
||||
<label for="inputPassword3" class="col-sm-3 control-label">{ENHANCED_TEXT}</label>
|
||||
<label for="{ENHANCED_DISPLAY_FIELDNAME}" class="col-sm-3 control-label">{ENHANCED_TEXT}</label>
|
||||
<div class="col-sm-9">
|
||||
{ENHANCED_FIELD}
|
||||
</div>
|
||||
@ -49,7 +49,7 @@ $SEARCH_TEMPLATE['form']['type'] = '
|
||||
|
||||
$SEARCH_TEMPLATE['form']['category'] = '
|
||||
<div class="form-group">
|
||||
<label for="inputPassword3" class="col-sm-3 control-label">{LAN=SEARCH_19}</label>
|
||||
<label for="t" class="col-sm-3 control-label">{LAN=SEARCH_19}</label>
|
||||
<div class="col-sm-9">
|
||||
{SEARCH_MAIN_CHECKBOXES}{SEARCH_DROPDOWN}
|
||||
</div>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user