[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/system/ -> block.tpl.php (source)

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


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7