Closed (duplicate)
Project:
Omega
Version:
7.x-3.0-rc5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2011 at 14:48 UTC
Updated:
5 Jan 2012 at 23:18 UTC
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
Comment #1
othermachines commentedDuplicate of #1332732: Empty <div> for $tabs
Comment #1.0
othermachines commentedfixed code formatting