Projet

Général

Profil

Paste
Télécharger (2,41 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / templates / block / block.tpl.php @ 5024cef7

1
<?php
2

    
3
/**
4
 * @file
5
 * Default theme implementation to display a block.
6
 *
7
 * Available variables:
8
 * - $block->subject: Block title.
9
 * - $content: Block content.
10
 * - $block->module: Module that generated the block.
11
 * - $block->delta: An ID for the block, unique within each module.
12
 * - $block->region: The block region embedding the current block.
13
 * - $classes: String of classes that can be used to style contextually through
14
 *   CSS. It can be manipulated through the variable $classes_array from
15
 *   preprocess functions. The default values can be one or more of the
16
 *   following:
17
 *   - block: The current template type, i.e., "theming hook".
18
 *   - block-[module]: The module generating the block. For example, the user
19
 *     module is responsible for handling the default user navigation block. In
20
 *     that case the class would be 'block-user'.
21
 * - $title_prefix (array): An array containing additional output populated by
22
 *   modules, intended to be displayed in front of the main title tag that
23
 *   appears in the template.
24
 * - $title_suffix (array): An array containing additional output populated by
25
 *   modules, intended to be displayed after the main title tag that appears in
26
 *   the template.
27
 *
28
 * Helper variables:
29
 * - $classes_array: Array of html class attribute values. It is flattened
30
 *   into a string within the variable $classes.
31
 * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
32
 * - $zebra: Same output as $block_zebra but independent of any block region.
33
 * - $block_id: Counter dependent on each block region.
34
 * - $id: Same output as $block_id but independent of any block region.
35
 * - $is_front: Flags true when presented in the front page.
36
 * - $logged_in: Flags true when the current user is a logged-in member.
37
 * - $is_admin: Flags true when the current user is an administrator.
38
 * - $block_html_id: A valid HTML ID and guaranteed unique.
39
 *
40
 * @see bootstrap_preprocess_block()
41
 * @see template_preprocess()
42
 * @see template_preprocess_block()
43
 * @see bootstrap_process_block()
44
 * @see template_process()
45
 *
46
 * @ingroup templates
47
 */
48
?>
49
<section id="<?php print $block_html_id; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
50

    
51
  <?php print render($title_prefix); ?>
52
  <?php if ($title): ?>
53
    <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
54
  <?php endif;?>
55
  <?php print render($title_suffix); ?>
56

    
57
  <?php print $content ?>
58

    
59
</section>