bootstrap-panel.tpl.php 1017 B

123456789101112131415161718192021222324252627282930313233
  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="#" class="panel-title fieldset-legend" data-toggle="collapse" data-target="<?php print $target; ?>"><?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. <?php if ($collapsible): ?>
  24. <div class="panel-collapse collapse fade<?php print (!$collapsed ? ' in' : ''); ?>">
  25. <?php endif; ?>
  26. <div class="panel-body">
  27. <?php if ($description): ?><div class="help-block"><?php print $description; ?></div><?php endif; ?>
  28. <?php print $content; ?>
  29. </div>
  30. <?php if ($collapsible): ?>
  31. </div>
  32. <?php endif; ?>
  33. </fieldset>