comparison sites/all/themes/mpiwgDev/block.tpl.php @ 0:015d06b10d37 default tip

initial
author dwinter
date Wed, 31 Jul 2013 13:49:13 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:015d06b10d37
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 template_preprocess()
41 * @see template_preprocess_block()
42 * @see template_process()
43 *
44 * @ingroup themeable
45 */
46 ?>
47 <div id="<?php print $block_html_id; ?>" class="side-block <?php print $classes; ?>"<?php print $attributes; ?>>
48 <?php print render($title_prefix); ?>
49 <?php if ($block->subject): ?>
50 <h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
51 <?php endif;?>
52 <?php print render($title_suffix); ?>
53 <div class="item"<?php print $content_attributes; ?>>
54 <?php print $content ?>
55 </div>
56 </div>