Issue #1361592: Remove div.content from block.tpl
[project/zen.git] / templates / block.tpl.php
CommitLineData
76772d59 1<?php
76772d59 2/**
9c0eac90 3 * @file
53fa5964 4 * Zen theme's implementation to display a block.
76772d59
J
5 *
6 * Available variables:
c531ccf0
J
7 * - $title: Block title.
8 * - $content: Block content.
76772d59 9 * - $block->module: Module that generated the block.
9c0eac90 10 * - $block->delta: An ID for the block, unique within each module.
76772d59 11 * - $block->region: The block region embedding the current block.
9c0eac90
J
12 * - $classes: String of classes that can be used to style contextually through
13 * CSS. It can be manipulated through the variable $classes_array from
14 * preprocess functions. The default values can be one or more of the
15 * following:
16 * - block: The current template type, i.e., "theming hook".
17 * - block-[module]: The module generating the block. For example, the user
18 * module is responsible for handling the default user navigation block. In
19 * that case the class would be "block-user".
288001f7
J
20 * - first: The first block in the region.
21 * - last: The last block in the region.
0f98bf46
J
22 * - odd: An odd-numbered block in the region's list of blocks.
23 * - even: An even-numbered block in the region's list of blocks.
cae4a853
J
24 * - $title_prefix (array): An array containing additional output populated by
25 * modules, intended to be displayed in front of the main title tag that
26 * appears in the template.
27 * - $title_suffix (array): An array containing additional output populated by
28 * modules, intended to be displayed after the main title tag that appears in
29 * the template.
76772d59
J
30 *
31 * Helper variables:
9c0eac90
J
32 * - $classes_array: Array of html class attribute values. It is flattened
33 * into a string within the variable $classes.
76772d59
J
34 * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
35 * - $zebra: Same output as $block_zebra but independent of any block region.
36 * - $block_id: Counter dependent on each block region.
37 * - $id: Same output as $block_id but independent of any block region.
38 * - $is_front: Flags true when presented in the front page.
39 * - $logged_in: Flags true when the current user is a logged-in member.
40 * - $is_admin: Flags true when the current user is an administrator.
2c1837cb 41 * - $block_html_id: A valid HTML ID and guaranteed unique.
76772d59
J
42 *
43 * @see template_preprocess()
44 * @see template_preprocess_block()
9c0eac90 45 * @see zen_preprocess_block()
fb2d48c9 46 * @see template_process()
53fa5964 47 * @see zen_process_block()
76772d59
J
48 */
49?>
2c1837cb 50<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
3316ccb0 51
cae4a853 52 <?php print render($title_prefix); ?>
c531ccf0 53 <?php if ($title): ?>
cae4a853 54 <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
7c5fa196 55 <?php endif; ?>
cae4a853 56 <?php print render($title_suffix); ?>
7c5fa196 57
0db75c66 58 <?php print $content; ?>
7c5fa196 59
4f7d951a 60</div><!-- /.block -->