/[drupal]/contributions/themes/scruffy/block.tpl.php
ViewVC logotype

Diff of /contributions/themes/scruffy/block.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by eaton, Wed Sep 24 14:56:36 2008 UTC revision 1.1.2.1 by eaton, Wed Sep 24 14:56:36 2008 UTC
# Line 0  Line 1 
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="widget block block-<?php print $block->module ?>">
30    <?php if ($block->subject): ?>
31      <h3><?php print $block->subject ?></h3>
32    <?php endif;?>
33    
34    <?php print $block->content ?>
35    <div class="widgetbottom"></div>
36    </div><!-- /widget -->

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.6