root / drupal7 / sites / all / themes / bootstrap / templates / bootstrap / bootstrap-modal.tpl.php @ 7547bb19
1 | 87dbc3bf | Benjamin Luce | <?php
|
---|---|---|---|
2 | /**
|
||
3 | * @file
|
||
4 | caf16a48 | Assos Assos | * Default theme implementation to display a Bootstrap modal component.
|
5 | 87dbc3bf | Benjamin Luce | *
|
6 | * Markup for Bootstrap modals.
|
||
7 | *
|
||
8 | * Variables:
|
||
9 | * - $attributes: Attributes for the outer modal div.
|
||
10 | caf16a48 | Assos Assos | * - $dialog_attributes: Attributes for the inner modal div.
|
11 | 87dbc3bf | Benjamin Luce | * - $heading: Modal title.
|
12 | * - $body: The rendered body of the modal.
|
||
13 | * - $footer: The rendered footer of the modal.
|
||
14 | caf16a48 | Assos Assos | * - $size: The size of the modal. Can be empty, "sm" or "lg". This is
|
15 | * automatically added in the $dialog_attributes. See
|
||
16 | * bootstrap_preprocess_bootstrap_modal().
|
||
17 | *
|
||
18 | * @ingroup templates
|
||
19 | 87dbc3bf | Benjamin Luce | */
|
20 | ?>
|
||
21 | <div<?php print $attributes; ?>> |
||
22 | caf16a48 | Assos Assos | <div<?php print $dialog_attributes; ?>> |
23 | 87dbc3bf | Benjamin Luce | <div class="modal-content"> |
24 | <div class="modal-header"> |
||
25 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
||
26 | <h4 class="modal-title"><?php print $heading; ?></h4> |
||
27 | </div>
|
||
28 | <div class="modal-body"><?php print $body; ?></div> |
||
29 | <div class="modal-footer"><?php print $footer; ?></div> |
||
30 | </div>
|
||
31 | </div>
|
||
32 | </div> |