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

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

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


Revision 1.4 - (show annotations) (download) (as text)
Sun Mar 1 13:05:03 2009 UTC (8 months, 4 weeks ago) by shannonlucas
Branch: MAIN
CVS Tags: DRUPAL-6--3-2, DRUPAL-7--1-1, HEAD
Branch point for: DRUPAL-6--4
Changes since 1.3: +6 -2 lines
File MIME type: text/x-php
Fixes for [#387256]
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>

  ViewVC Help
Powered by ViewVC 1.1.2