Révision 7547bb19
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/themes/bootstrap/templates/bootstrap/bootstrap-modal.vars.php | ||
---|---|---|
24 | 24 |
$variables['attributes']['tabindex'] = -1; |
25 | 25 |
$variables['attributes']['role'] = 'dialog'; |
26 | 26 |
$variables['attributes']['aria-hidden'] = 'true'; |
27 |
|
|
28 |
$variables['heading'] = $variables['html_heading'] ? $variables['heading'] : check_plain($variables['heading']); |
|
29 | 27 |
$variables['dialog_attributes']['class'][] = 'modal-dialog'; |
30 | 28 |
|
31 | 29 |
if (!empty($variables['size'])) { |
... | ... | |
45 | 43 |
function bootstrap_process_bootstrap_modal(&$variables) { |
46 | 44 |
$variables['attributes'] = drupal_attributes($variables['attributes']); |
47 | 45 |
$variables['dialog_attributes'] = drupal_attributes($variables['dialog_attributes']); |
48 |
$variables['heading'] = _bootstrap_filter_xss(render($variables['heading'])); |
|
46 |
|
|
47 |
$html = !empty($variables['html_heading']); |
|
48 |
$heading = $html && is_scalar($variables['heading']) ? filter_xss_admin($variables['heading']) : render($variables['heading']); |
|
49 |
$variables['heading'] = $html ? $heading : check_plain($heading); |
|
50 |
|
|
49 | 51 |
$variables['body'] = render($variables['body']); |
50 | 52 |
$variables['footer'] = render($variables['footer']); |
51 | 53 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules