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

Contents of /contributions/themes/basic/block.tpl.php

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Jul 22 19:15:17 2008 UTC (16 months ago) by couzinhub
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-7--1
Changes since 1.1: +34 -9 lines
File MIME type: text/x-php
commiting D7 code
1 <?php
2 // $Id$
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 echo $block->module .'-'. $block->delta ?>" class="block block-<?php echo $block->module .' '. $block_zebra .' '. $block->region ?>">
30
31 <?php if ($block->subject): ?>
32 <h3 class="title"><?php echo $block->subject ?></h3>
33 <?php endif; ?>
34
35 <div class="content">
36 <?php echo $block->content ?>
37 </div>
38
39 <?php echo $edit_links ?>
40
41 </div>

  ViewVC Help
Powered by ViewVC 1.1.2