Mercurial > defr > drupal > core
annotate modules/system/block.tpl.php @ 3:165d43f946a8 6.1
Drupal 6.1
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:29:21 +0100 |
parents | c1f4ac30525a |
children |
rev | line source |
---|---|
webmaster@1 | 1 <?php |
webmaster@1 | 2 // $Id: block.tpl.php,v 1.4 2007/09/01 05:42:48 dries Exp $ |
webmaster@1 | 3 |
webmaster@1 | 4 /** |
webmaster@1 | 5 * @file block.tpl.php |
webmaster@1 | 6 * |
webmaster@1 | 7 * Theme implementation to display a block. |
webmaster@1 | 8 * |
webmaster@1 | 9 * Available variables: |
webmaster@1 | 10 * - $block->subject: Block title. |
webmaster@1 | 11 * - $block->content: Block content. |
webmaster@1 | 12 * - $block->module: Module that generated the block. |
webmaster@1 | 13 * - $block->delta: This is a numeric id connected to each module. |
webmaster@1 | 14 * - $block->region: The block region embedding the current block. |
webmaster@1 | 15 * |
webmaster@1 | 16 * Helper variables: |
webmaster@1 | 17 * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region. |
webmaster@1 | 18 * - $zebra: Same output as $block_zebra but independent of any block region. |
webmaster@1 | 19 * - $block_id: Counter dependent on each block region. |
webmaster@1 | 20 * - $id: Same output as $block_id but independent of any block region. |
webmaster@1 | 21 * - $is_front: Flags true when presented in the front page. |
webmaster@1 | 22 * - $logged_in: Flags true when the current user is a logged-in member. |
webmaster@1 | 23 * - $is_admin: Flags true when the current user is an administrator. |
webmaster@1 | 24 * |
webmaster@1 | 25 * @see template_preprocess() |
webmaster@1 | 26 * @see template_preprocess_block() |
webmaster@1 | 27 */ |
webmaster@1 | 28 ?> |
webmaster@1 | 29 <div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>"> |
webmaster@1 | 30 <?php if ($block->subject): ?> |
webmaster@1 | 31 <h2><?php print $block->subject ?></h2> |
webmaster@1 | 32 <?php endif;?> |
webmaster@1 | 33 |
webmaster@1 | 34 <div class="content"> |
webmaster@1 | 35 <?php print $block->content ?> |
webmaster@1 | 36 </div> |
webmaster@1 | 37 </div> |