web/drupal/modules/system/block.tpl.php
branchdrupal
changeset 74 0ff3ba646492
equal deleted inserted replaced
73:fcf75e232c5b 74:0ff3ba646492
       
     1 <?php
       
     2 // $Id: block.tpl.php,v 1.4 2007/09/01 05:42:48 dries Exp $
       
     3 
       
     4 /**
       
     5  * @file block.tpl.php
       
     6  *
       
     7  * Theme implementation to display a block.
       
     8  *
       
     9  * Available variables:
       
    10  * - $block->subject: Block title.
       
    11  * - $block->content: Block content.
       
    12  * - $block->module: Module that generated the block.
       
    13  * - $block->delta: This is a numeric id connected to each module.
       
    14  * - $block->region: The block region embedding the current block.
       
    15  *
       
    16  * Helper variables:
       
    17  * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
       
    18  * - $zebra: Same output as $block_zebra but independent of any block region.
       
    19  * - $block_id: Counter dependent on each block region.
       
    20  * - $id: Same output as $block_id but independent of any block region.
       
    21  * - $is_front: Flags true when presented in the front page.
       
    22  * - $logged_in: Flags true when the current user is a logged-in member.
       
    23  * - $is_admin: Flags true when the current user is an administrator.
       
    24  *
       
    25  * @see template_preprocess()
       
    26  * @see template_preprocess_block()
       
    27  */
       
    28 ?>
       
    29 <div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>">
       
    30 <?php if ($block->subject): ?>
       
    31   <h2><?php print $block->subject ?></h2>
       
    32 <?php endif;?>
       
    33 
       
    34   <div class="content">
       
    35     <?php print $block->content ?>
       
    36   </div>
       
    37 </div>