Commit 01979d43 authored by Dries's avatar Dries

- Accessibility improvement: made the search box use the alt-tag.
parent 54a74aba
......@@ -121,7 +121,8 @@ function xtemplate_header() {
$xtemplate->template->assign(array(
//"search" => search_form(),
"search_url" => url("search"),
"search_button_text" => t("Search")
"search_button_text" => t("Search"),
"search_description" => t("Enter the terms you wish to search for.")
));
$xtemplate->template->parse("header.search_box");
}
......
......@@ -21,7 +21,7 @@
<!-- BEGIN: search_box -->
<form action="{search_url}" method="post">
<div id="search">
<input class="form-text" type="text" size="15" value="" name="keys" />
<input class="form-text" type="text" size="15" value="" name="keys" alt="{search_description}" />
<input class="form-submit" type="submit" value="{search_button_text}" />
</div>
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment