1 |
87dbc3bf
|
Benjamin Luce
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
function bootstrap_bootstrap_search_form_wrapper($variables) {
|
11 |
|
|
$output = '<div class="input-group">';
|
12 |
|
|
$output .= $variables['element']['#children'];
|
13 |
|
|
$output .= '<span class="input-group-btn">';
|
14 |
|
|
$output .= '<button type="submit" class="btn btn-default">';
|
15 |
|
|
|
16 |
|
|
if (theme_get_setting('bootstrap_cdn')) {
|
17 |
|
|
$output .= _bootstrap_icon('search');
|
18 |
|
|
}
|
19 |
|
|
else {
|
20 |
|
|
$output .= t('Search');
|
21 |
|
|
}
|
22 |
|
|
$output .= '</button>';
|
23 |
|
|
$output .= '</span>';
|
24 |
|
|
$output .= '</div>';
|
25 |
|
|
return $output;
|
26 |
|
|
} |