panels-pane.tpl.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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; ?> <?php print $attributes; ?>>
  24. <?php if ($admin_links): ?>
  25. <?php print $admin_links; ?>
  26. <?php endif; ?>
  27. <?php print render($title_prefix); ?>
  28. <?php if ($title): ?>
  29. <<?php print $title_heading; ?><?php print $title_attributes; ?>>
  30. <?php print $title; ?>
  31. </<?php print $title_heading; ?>>
  32. <?php endif; ?>
  33. <?php print render($title_suffix); ?>
  34. <?php if ($feeds): ?>
  35. <div class="feed">
  36. <?php print $feeds; ?>
  37. </div>
  38. <?php endif; ?>
  39. <div class="pane-content">
  40. <?php print render($content); ?>
  41. </div>
  42. <?php if ($links): ?>
  43. <div class="links">
  44. <?php print $links; ?>
  45. </div>
  46. <?php endif; ?>
  47. <?php if ($more): ?>
  48. <div class="more-link">
  49. <?php print $more; ?>
  50. </div>
  51. <?php endif; ?>
  52. </div>
  53. <?php if ($pane_suffix): ?>
  54. <?php print $pane_suffix; ?>
  55. <?php endif; ?>