root / drupal7 / sites / all / themes / bootstrap / theme / bootstrap / bootstrap-search-form-wrapper.func.php @ 87dbc3bf
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* bootstrap-search-form-wrapper.func.php
|
5 |
*/
|
6 |
|
7 |
/**
|
8 |
* Theme function implementation for bootstrap_search_form_wrapper.
|
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 |
// We can be sure that the font icons exist in CDN.
|
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 |
} |