panels-pane.tpl.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * @file panels-pane.tpl.php
  4. * Main panel pane template
  5. *
  6. * Variables available:
  7. * - $pane->type: the content type inside this pane
  8. * - $pane->subtype: The subtype, if applicable. If a view it will be the
  9. * view name; if a node it will be the nid, etc.
  10. * - $title: The title of the content
  11. * - $content: The actual content
  12. * - $links: Any links associated with the content
  13. * - $more: An optional 'more' link (destination only)
  14. * - $admin_links: Administrative links associated with the content
  15. * - $feeds: Any feed icons or associated with the content
  16. * - $display: The complete panels display object containing all kinds of
  17. * data including the contexts and all of the other panes being displayed.
  18. */
  19. ?>
  20. <?php if ($pane_prefix): ?>
  21. <?php print $pane_prefix; ?>
  22. <?php endif; ?>
  23. <div class="<?php print $classes; ?>" <?php print $id; ?>>
  24. <?php if ($admin_links): ?>
  25. <?php print $admin_links; ?>
  26. <?php endif; ?>
  27. <?php print render($title_prefix); ?>
  28. <?php if ($title): ?>
  29. <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
  30. <?php endif; ?>
  31. <?php print render($title_suffix); ?>
  32. <?php if ($feeds): ?>
  33. <div class="feed">
  34. <?php print $feeds; ?>
  35. </div>
  36. <?php endif; ?>
  37. <div class="pane-content">
  38. <?php print render($content); ?>
  39. </div>
  40. <?php if ($links): ?>
  41. <div class="links">
  42. <?php print $links; ?>
  43. </div>
  44. <?php endif; ?>
  45. <?php if ($more): ?>
  46. <div class="more-link">
  47. <?php print $more; ?>
  48. </div>
  49. <?php endif; ?>
  50. </div>
  51. <?php if ($pane_suffix): ?>
  52. <?php print $pane_suffix; ?>
  53. <?php endif; ?>