Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SeanJA/3819185 to your computer and use it in GitHub Desktop.
Save SeanJA/3819185 to your computer and use it in GitHub Desktop.
I feel like we only needed one if($tabs) here
<?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">';
endif; ?>
<?php if ($tabs): ?>
<div id="drupal-control-bar">
<?php endif; ?>
<?php if ($tabs): print '<ul>' . $tabs . '</ul>';
endif; ?>
<?php if ($tabs2): print '<ul class="tabs secondary">' . $tabs2 . '</ul>';
endif; ?>
<?php if ($tabs): ?>
</div><!--/ #drupal-control-bar -->
<?php endif; ?>
<?php if ($tabs): print '</div><!--/ #tabs-wrapper -->';
endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment