summaryrefslogtreecommitdiff
path: root/block.tpl.php
blob: 7313cc2b6ea29b620951d1755b50b90870639bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php $region = $block->region;
$enabled_blockRegion = $region != 'content' && $region != 'Menu' && $region != 'vnavigation_left' && $region != 'vnavigation_right'
					&& $region != "banner1" && $region != "banner2" && $region != "banner3"
					&& $region != "banner4" && $region != "banner5" && $region != "banner6"
					&& $region != "extra1" && $region != "extra2" && $region != "footer_message";  ?>
<div class="<?php if (isset($classes)) print $classes; ?>" id="<?php print $block_html_id; ?>"<?php print $attributes; ?>>
<?php if ($enabled_blockRegion) :?>
<div class="b2-block">
      <div class="b2-block-body">
  
<?php endif;?>
    
<?php print render($title_prefix); ?>
	    <?php if (!empty($block->subject)): ?>
			
			<?php if ($enabled_blockRegion) :?>
<div class="b2-blockheader">
				    <div class="l"></div>
				    <div class="r"></div>
				    <h3 class="t subject"<?php print $title_attributes; ?>>
			<?php endif;?>
			
			<?php echo $block->subject; ?>
			
			<?php if ($enabled_blockRegion) :?>
</h3>
				</div>
				
			<?php endif;?>

	    <?php endif; ?>
<?php print render($title_suffix); ?>

	<?php if ($enabled_blockRegion) :?>
<div class="b2-blockcontent">
		    <div class="b2-blockcontent-body">
		<div class="content"<?php print $content_attributes; ?>>
		
	<?php endif;?>
		
<?php echo $content; ?>

	<?php if($enabled_blockRegion) :?>

		</div>
				<div class="cleared"></div>
		    </div>
		</div>
		

				<div class="cleared"></div>
		    </div>
		</div>
		
	<?php endif;?>
</div>