Commit 451dbd17 authored by Dries's avatar Dries

- Patch #28784 by Neil: improved HTML/CSS of search form.

parent 16262e03
......@@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
$prompt = t('Enter your keywords');
}
$output = ' <div class="search-form">';
$box = '<div class="container-inline">';
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
$box .= form_submit(t('Search'));
$box .= '</div>';
$output .= form_item($prompt, $box);
$output .= '</div>';
return form($output, 'post', $action);
return form($output, 'post', $action, array('class' => 'search-form'));
}
/**
......
......@@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
$prompt = t('Enter your keywords');
}
$output = ' <div class="search-form">';
$box = '<div class="container-inline">';
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
$box .= form_submit(t('Search'));
$box .= '</div>';
$output .= form_item($prompt, $box);
$output .= '</div>';
return form($output, 'post', $action);
return form($output, 'post', $action, array('class' => 'search-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