Projet

Général

Profil

Paste
Télécharger (1,02 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / templates / bootstrap / bootstrap-modal.tpl.php @ 7547bb19

1
<?php
2
/**
3
 * @file
4
 * Default theme implementation to display a Bootstrap modal component.
5
 *
6
 * Markup for Bootstrap modals.
7
 *
8
 * Variables:
9
 * - $attributes: Attributes for the outer modal div.
10
 * - $dialog_attributes: Attributes for the inner modal div.
11
 * - $heading: Modal title.
12
 * - $body: The rendered body of the modal.
13
 * - $footer: The rendered footer of the modal.
14
 * - $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
 */
20
?>
21
<div<?php print $attributes; ?>>
22
  <div<?php print $dialog_attributes; ?>>
23
    <div class="modal-content">
24
      <div class="modal-header">
25
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</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>