annotate block.tpl.php @ 2:3d467de87492 default tip

remove some first-child rules for headers in lists.
author root@drupal-mpiwg.rz-berlin.mpg.de
date Fri, 20 Jun 2014 12:12:17 +0200
parents 65b7937bab7b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
65b7937bab7b intertial
dwinter
parents:
diff changeset
1 <?php
65b7937bab7b intertial
dwinter
parents:
diff changeset
2
65b7937bab7b intertial
dwinter
parents:
diff changeset
3 /**
65b7937bab7b intertial
dwinter
parents:
diff changeset
4 * @file
65b7937bab7b intertial
dwinter
parents:
diff changeset
5 * Default theme implementation to display a block.
65b7937bab7b intertial
dwinter
parents:
diff changeset
6 *
65b7937bab7b intertial
dwinter
parents:
diff changeset
7 * Available variables:
65b7937bab7b intertial
dwinter
parents:
diff changeset
8 * - $block->subject: Block title.
65b7937bab7b intertial
dwinter
parents:
diff changeset
9 * - $content: Block content.
65b7937bab7b intertial
dwinter
parents:
diff changeset
10 * - $block->module: Module that generated the block.
65b7937bab7b intertial
dwinter
parents:
diff changeset
11 * - $block->delta: An ID for the block, unique within each module.
65b7937bab7b intertial
dwinter
parents:
diff changeset
12 * - $block->region: The block region embedding the current block.
65b7937bab7b intertial
dwinter
parents:
diff changeset
13 * - $classes: String of classes that can be used to style contextually through
65b7937bab7b intertial
dwinter
parents:
diff changeset
14 * CSS. It can be manipulated through the variable $classes_array from
65b7937bab7b intertial
dwinter
parents:
diff changeset
15 * preprocess functions. The default values can be one or more of the
65b7937bab7b intertial
dwinter
parents:
diff changeset
16 * following:
65b7937bab7b intertial
dwinter
parents:
diff changeset
17 * - block: The current template type, i.e., "theming hook".
65b7937bab7b intertial
dwinter
parents:
diff changeset
18 * - block-[module]: The module generating the block. For example, the user
65b7937bab7b intertial
dwinter
parents:
diff changeset
19 * module is responsible for handling the default user navigation block. In
65b7937bab7b intertial
dwinter
parents:
diff changeset
20 * that case the class would be 'block-user'.
65b7937bab7b intertial
dwinter
parents:
diff changeset
21 * - $title_prefix (array): An array containing additional output populated by
65b7937bab7b intertial
dwinter
parents:
diff changeset
22 * modules, intended to be displayed in front of the main title tag that
65b7937bab7b intertial
dwinter
parents:
diff changeset
23 * appears in the template.
65b7937bab7b intertial
dwinter
parents:
diff changeset
24 * - $title_suffix (array): An array containing additional output populated by
65b7937bab7b intertial
dwinter
parents:
diff changeset
25 * modules, intended to be displayed after the main title tag that appears in
65b7937bab7b intertial
dwinter
parents:
diff changeset
26 * the template.
65b7937bab7b intertial
dwinter
parents:
diff changeset
27 *
65b7937bab7b intertial
dwinter
parents:
diff changeset
28 * Helper variables:
65b7937bab7b intertial
dwinter
parents:
diff changeset
29 * - $classes_array: Array of html class attribute values. It is flattened
65b7937bab7b intertial
dwinter
parents:
diff changeset
30 * into a string within the variable $classes.
65b7937bab7b intertial
dwinter
parents:
diff changeset
31 * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
65b7937bab7b intertial
dwinter
parents:
diff changeset
32 * - $zebra: Same output as $block_zebra but independent of any block region.
65b7937bab7b intertial
dwinter
parents:
diff changeset
33 * - $block_id: Counter dependent on each block region.
65b7937bab7b intertial
dwinter
parents:
diff changeset
34 * - $id: Same output as $block_id but independent of any block region.
65b7937bab7b intertial
dwinter
parents:
diff changeset
35 * - $is_front: Flags true when presented in the front page.
65b7937bab7b intertial
dwinter
parents:
diff changeset
36 * - $logged_in: Flags true when the current user is a logged-in member.
65b7937bab7b intertial
dwinter
parents:
diff changeset
37 * - $is_admin: Flags true when the current user is an administrator.
65b7937bab7b intertial
dwinter
parents:
diff changeset
38 * - $block_html_id: A valid HTML ID and guaranteed unique.
65b7937bab7b intertial
dwinter
parents:
diff changeset
39 *
65b7937bab7b intertial
dwinter
parents:
diff changeset
40 * @see template_preprocess()
65b7937bab7b intertial
dwinter
parents:
diff changeset
41 * @see template_preprocess_block()
65b7937bab7b intertial
dwinter
parents:
diff changeset
42 * @see template_process()
65b7937bab7b intertial
dwinter
parents:
diff changeset
43 *
65b7937bab7b intertial
dwinter
parents:
diff changeset
44 * @ingroup themeable
65b7937bab7b intertial
dwinter
parents:
diff changeset
45 */
65b7937bab7b intertial
dwinter
parents:
diff changeset
46 ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
47 <div id="<?php print $block_html_id; ?>" class="side-block <?php print $classes; ?>"<?php print $attributes; ?>>
65b7937bab7b intertial
dwinter
parents:
diff changeset
48 <?php print render($title_prefix); ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
49 <?php if ($block->subject): ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
50 <h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
65b7937bab7b intertial
dwinter
parents:
diff changeset
51 <?php endif;?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
52 <?php print render($title_suffix); ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
53 <div <?php print $content_attributes; ?>>
65b7937bab7b intertial
dwinter
parents:
diff changeset
54 <?php print $content ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
55 </div>
65b7937bab7b intertial
dwinter
parents:
diff changeset
56 </div>