file bootstrap-panel.tpl.php

Default theme implementation to display a Bootstrap panel component.

@todo Fill out list of available variables.

  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to display a Bootstrap panel component.
  5. *
  6. * @todo Fill out list of available variables.
  7. *
  8. * @ingroup templates
  9. */
  10. ?>
  11. <fieldset <?php print $attributes; ?>>
  12. <?php if ($title): ?>
  13. <?php if ($collapsible): ?>
  14. <legend class="panel-heading">
  15. <a href="<?php print $target; ?>" class="panel-title fieldset-legend<?php print ($collapsed ? ' collapsed' : ''); ?>" data-toggle="collapse"><?php print $title; ?></a>
  16. </legend>
  17. <?php else: ?>
  18. <legend class="panel-heading">
  19. <span class="panel-title fieldset-legend"><?php print $title; ?></span>
  20. </legend>
  21. <?php endif; ?>
  22. <?php endif; ?>
  23. <div<?php print $body_attributes; ?>>
  24. <?php if ($description): ?><div class="help-block"><?php print $description; ?></div><?php
  25. endif; ?>
  26. <?php print $content; ?>
  27. </div>
  28. </fieldset>

Related topics