Simpletest Coverage - modules/block/block.tpl.php

1 <?php
2 // $Id: block.tpl.php,v 1.3 2009/06/12 09:02:55 dries Exp $
3
4 /**
5 * @file
6 * Default theme implementation to display a block.
7 *
8 * Available variables:
9 * - $block->subject: Block title.
10 * - $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 * - $classes: String of classes that can be used to style contextually through
15 * CSS. It can be manipulated through the variable $classes_array from
16 * preprocess functions. The default values can be one or more of the following:
17 * - block: The current template type, i.e., "theming hook".
18 * - block-[module]: The module generating the block. For example, the user module
19 * is responsible for handling the default user navigation block. In that case
20 * the class would be "block-user".
21 *
22 * Helper variables:
23 * - $classes_array: Array of html class attribute values. It is flattened
24 * into a string within the variable $classes.
25 * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
26 * - $zebra: Same output as $block_zebra but independent of any block region.
27 * - $block_id: Counter dependent on each block region.
28 * - $id: Same output as $block_id but independent of any block region.
29 * - $is_front: Flags true when presented in the front page.
30 * - $logged_in: Flags true when the current user is a logged-in member.
31 * - $is_admin: Flags true when the current user is an administrator.
32 *
33 * @see template_preprocess()
34 * @see template_preprocess_block()
35 * @see template_process()
36 */
37 ?>
38 <div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?>">
39 <?php if ($block->subject): ?>
40 <h2><?php print $block->subject ?></h2>
41 <?php endif;?>
42
43 <div class="content">
44 <?php print $content ?>
45 </div>
46 </div>
47

Legend

Missed
lines code that were not excersized during program execution.
Covered
lines code were excersized during program execution.
Comment/non executable
Comment or non-executable line of code.
Dead
lines of code that according to xdebug could not be executed. This is counted as coverage code because in almost all cases it is code that runnable.