64aaa9c241b9431aaa5934627957eef5749eec76
6 * Theme implementation to display a block.
9 * - $block->subject: Block title.
10 * - $block->content: Block content.
11 * - $block->module: Module that generated the block.
12 * - $block->delta: An ID for the block, unique within each module.
13 * - $block->region: The block region embedding the current block.
14 * - $edit_links: A list of contextual links for the block. It can be
15 * manipulated through the variable $edit_links_array from preprocess
17 * - $classes: String of classes that can be used to style contextually through
18 * CSS. It can be manipulated through the variable $classes_array from
19 * preprocess functions. The default values can be one or more of the
21 * - block: The current template type, i.e., "theming hook".
22 * - block-[module]: The module generating the block. For example, the user
23 * module is responsible for handling the default user navigation block. In
24 * that case the class would be "block-user".
25 * - region-count-[x]: The position of the block in the list of blocks in the
27 * - region-odd: An odd-numbered block of the list of blocks in the current
29 * - region-even: An even-numbered block of the list of blocks in the current
31 * - count-[x]: The position of the block in the list of blocks on the current
33 * - odd: An odd-numbered block of the list of blocks on the current page.
34 * - even: An even-numbered block of the list of blocks on the current page.
37 * - $classes_array: Array of html class attribute values. It is flattened
38 * into a string within the variable $classes.
39 * - $edit_links_array: An array of contextual links for the block.
40 * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
41 * - $zebra: Same output as $block_zebra but independent of any block region.
42 * - $block_id: Counter dependent on each block region.
43 * - $id: Same output as $block_id but independent of any block region.
44 * - $is_front: Flags true when presented in the front page.
45 * - $logged_in: Flags true when the current user is a logged-in member.
46 * - $is_admin: Flags true when the current user is an administrator.
48 * @see template_preprocess()
49 * @see zen_preprocess()
50 * @see template_preprocess_block()
51 * @see zen_preprocess_block()
55 <div id
="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?>"><div
class="block-inner">
57 <?php
if ($block->subject
): ?
>
58 <h2
class="title"><?php
print $block->subject
; ?
></h2
>
62 <?php
print $block->content
; ?
>
65 <?php
print $edit_links; ?
>
67 </div
></div
> <!-- /block
-inner
, /block
-->