I got this Drupal 7 code from a theme and I am trying to convert it to Drupal 6.
.info file
regions[sidebar_a] = 'Sidebar A' regions[sidebar_b] = 'Sidebar B'
Template file
<?php if(isset($variables) && isset($variables['sidebars'])): ?> <?php if (isset($variables['sidebars']['left'])): ?> <?php foreach($variables['sidebars']['left'] as $value): ?> <?php 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; ?> <?php endforeach; ?> <?php endif; ?> <?php if(isset($variables['sidebars']['right'])): ?> <?php foreach($variables['sidebars']['right'] as $value): ?> <?php 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; ?> <?php endforeach; ?> <?php endif; ?> <?php if(isset($variables['sidebars']['hidden'])): ?> <?php foreach($variables['sidebars']['hidden'] as $value): ?> <?php 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; ?> <?php endforeach; ?> <?php endif; ?> <?php endif; ?>