views-view.tpl.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * @file views-view.tpl.php
  4. * Main view template
  5. *
  6. * Variables available:
  7. * - $classes_array: An array of classes determined in
  8. * template_preprocess_views_view(). Default classes are:
  9. * .view
  10. * .view-[css_name]
  11. * .view-id-[view_name]
  12. * .view-display-id-[display_name]
  13. * .view-dom-id-[dom_id]
  14. * - $classes: A string version of $classes_array for use in the class attribute
  15. * - $css_name: A css-safe version of the view name.
  16. * - $css_class: The user-specified classes names, if any
  17. * - $header: The view header
  18. * - $footer: The view footer
  19. * - $rows: The results of the view query, if any
  20. * - $empty: The empty text to display if the view is empty
  21. * - $pager: The pager next/prev links to display, if any
  22. * - $exposed: Exposed widget form/info to display
  23. * - $feed_icon: Feed icon to display, if any
  24. * - $more: A link to view more, if any
  25. *
  26. * @ingroup views_templates
  27. */
  28. ?>
  29. <div class="<?php print $classes; ?>">
  30. <?php print render($title_prefix); ?>
  31. <?php if ($title): ?>
  32. <?php print $title; ?>
  33. <?php endif; ?>
  34. <?php print render($title_suffix); ?>
  35. <?php if ($header): ?>
  36. <div class="view-header">
  37. <?php print $header; ?>
  38. </div>
  39. <?php endif; ?>
  40. <?php if ($exposed): ?>
  41. <div class="view-filters">
  42. <span class="title"><?php print t('Filters'); ?></span>
  43. <?php print $exposed; ?>
  44. </div>
  45. <?php endif; ?>
  46. <?php if ($pager): ?>
  47. <div class="pager">
  48. <?php print $pager; ?>
  49. </div>
  50. <?php endif; ?>
  51. <?php if ($attachment_before): ?>
  52. <div class="attachment attachment-before">
  53. <?php print $attachment_before; ?>
  54. </div>
  55. <?php endif; ?>
  56. <?php if ($rows): ?>
  57. <div class="view-content">
  58. <?php print $rows; ?>
  59. </div>
  60. <?php elseif ($empty): ?>
  61. <div class="view-empty">
  62. <?php print $empty; ?>
  63. </div>
  64. <?php endif; ?>
  65. <?php if ($pager): ?>
  66. <div class="pager">
  67. <?php print $pager; ?>
  68. </div>
  69. <?php endif; ?>
  70. <?php if ($attachment_after): ?>
  71. <div class="attachment attachment-after">
  72. <?php print $attachment_after; ?>
  73. </div>
  74. <?php endif; ?>
  75. <?php if ($more): ?>
  76. <?php print $more; ?>
  77. <?php endif; ?>
  78. <?php if ($footer): ?>
  79. <div class="view-footer">
  80. <?php print $footer; ?>
  81. </div>
  82. <?php endif; ?>
  83. <?php if ($feed_icon): ?>
  84. <div class="feed-icon">
  85. <?php print $feed_icon; ?>
  86. </div>
  87. <?php endif; ?>
  88. </div><?php /* class view */ ?>