Skip to: site menu |main content

Welcome to my personal site. If You have any question or suggestion please feel free to contact me from contact page.

Advertisements

Contact me to place your Ads Here..

Powered by Drupal, an open source content management system

Syndicate

Syndicate content

Block.tpl.php file variables for drupal 5x and 4x versions of drupal theme

Lays out content for blocks (left and/or right side of page). This template is optional, and can be overridden by copying the default template and modifying it.
Available variables

The $block object includes:

<?php
$block
->module
    The name of the module that generated the block
.
$block->delta
    The number of the block
for a particular module.
$block->subject
    The block title
.
?>

<?php
$block
->content
    The html content
for the block.
$block->status
    Status of block
(0 or 1).
$block->region
    Region name
, by default the available regions are 'left', 'right', 'header' and 'footer'.
$block->throttle:
   
Throttle setting.
?>

Other variables includes:
<?php
$directory
    The directory the theme is located in
, e.g. themes/garland or themes/garland/minelli.
$is_front
    True
if the front page is currently being displayed.
$id
    The sequential id of the block displayed
, ie: The first block is 1, the second block is 2 etc.
$block_id
    The same
as $id, but is reset for the left and right sidebars.
$zebra
    Alternates between
'odd' and 'even'. This is useful for creating 'zebra stripes' with your css.
$block_zebra
    The same
as $zebra, but is reset for the left and right sidebars.
?>

 

No bad post, write more

No bad post, write more

 

Back to top

Related Pictures

Tags for Block.tpl.php file variables for drupal 5x and 4x versions of drupal theme

Recent comments

InderSingh.com v1.2
(Sep 09, 2010)