The code in region--content.tpl.php check for empty tabs as follow :

<?php if ($tabs): ?><div class="tabs clearfix"><?php print render($tabs); ?></div><?php endif; ?>

which will always print the tabs div wrapper no matter if tabs is empty or not.

Fixed code :

    $tab_rendered = render($tabs);
   <?php if (!empty($tab_rendered)): ?><div class="tabs clearfix"><?php print $tab_rendered; ?></div><?php endif; ?>

which will check if the rendered tabs is actually empty or not before rendering the wrapper

Comments

othermachines’s picture

Status: Active » Closed (duplicate)
othermachines’s picture

Issue summary: View changes

fixed code formatting