I got this d7 sidebar code from a theme and I am trying to make it work for d6..
Can someone help
Info file contains:
regions[sidebar_a] = 'Sidebar A'
regions[sidebar_b] = 'Sidebar B'
This is the code:
<?php
if(isset($variables) && isset($variables['sidebars'])):
if(isset($variables['sidebars']['left'])):
foreach($variables['sidebars']['left'] as $value):
if (!empty($page['sidebar_'.$value])): ?>
<div id="sidebar-<?php echo $value; ?>" class="col-<?php echo $value; ?> sidebar left tb-height-balance tb-region tb-scope tb-sidebar tb-left">
<?php print render($page['sidebar_'.$value]); ?>
</div>
<?php endif; endforeach; endif; ?>
<?php
if(isset($variables['sidebars']['right'])):
foreach($variables['sidebars']['right'] as $value):
if (!empty($page['sidebar_'.$value])): ?>
<div id="sidebar-<?php echo $value; ?>" class="col-<?php echo $value; ?> sidebar right tb-height-balance tb-region tb-scope tb-sidebar tb-right">
<?php print render($page['sidebar_'.$value]); ?>
</div>
<?php endif; endforeach; endif; ?>
<?php
if(isset($variables['sidebars']['hidden'])):
foreach($variables['sidebars']['hidden'] as $value):
if (!empty($page['sidebar_'.$value])): ?>
<div id="sidebar-<?php echo $value; ?>" class="col-<?php echo $value; ?> sidebar right tb-height-balance tb-region tb-scope tb-sidebar tb-right tb-hidden">
<?php print render($page['sidebar_'.$value]); ?>
</div>
<?php endif; endforeach; endif; endif; ?> <!-- end sidebars -->