| 1 |
<?php
|
| 2 |
// $Id: block.tpl.php,v 1.3 2008/12/12 20:28:43 shannonlucas Exp $
|
| 3 |
$block_class = 'block block-' . $block->module . ' block-' . $block->region;
|
| 4 |
|
| 5 |
if (function_exists('block_class')) {
|
| 6 |
$block_class = $block_class . ' ' . block_class($block);
|
| 7 |
}
|
| 8 |
|
| 9 |
$block_uniq = 'block-' . $block->module .'-'. $block->delta;
|
| 10 |
|
| 11 |
// -------------------------------------------------------------------------
|
| 12 |
// The 'bottom' region requires the first and fourth block to receive an
|
| 13 |
// extra class.
|
| 14 |
if ($block->region == 'bottom') {
|
| 15 |
if (($block_id == 1) OR ($block_id % 5) == 0) {
|
| 16 |
$block_class .= ' bottom-row-start';
|
| 17 |
}
|
| 18 |
else if (($block_id % 4) == 0) {
|
| 19 |
$block_class .= ' bottom-row-end';
|
| 20 |
}
|
| 21 |
}
|
| 22 |
?>
|
| 23 |
<div id="<?php print $block_uniq; ?>" class="<?php print $block_class; ?>">
|
| 24 |
<?php if (!empty($block->subject)): ?>
|
| 25 |
<?php if (($block->region == 'header') || ($block->region == 'masthead')): ?>
|
| 26 |
<h2><?php print $block->subject ?></h2>
|
| 27 |
<?php else: ?>
|
| 28 |
<h3><?php print $block->subject ?></h3>
|
| 29 |
<?php endif; ?>
|
| 30 |
<?php endif;?>
|
| 31 |
<?php print $block->content ?>
|
| 32 |
</div>
|