views-view.tpl.php

  1. nittany7 modules/contrib/views/theme/views-view.tpl.php
  2. cis7 modules/contrib/views/theme/views-view.tpl.php
  3. mooc7 modules/contrib/views/theme/views-view.tpl.php

Main view template.

Variables available:

  • $classes_array: An array of classes determined in template_preprocess_views_view(). Default classes are: .view .view-[css_name] .view-id-[view_name] .view-display-id-[display_name] .view-dom-id-[dom_id]
  • $classes: A string version of $classes_array for use in the class attribute
  • $css_name: A css-safe version of the view name.
  • $css_class: The user-specified classes names, if any
  • $header: The view header
  • $footer: The view footer
  • $rows: The results of the view query, if any
  • $empty: The empty text to display if the view is empty
  • $pager: The pager next/prev links to display, if any
  • $exposed: Exposed widget form/info to display
  • $feed_icon: Feed icon to display, if any
  • $more: A link to view more, if any

File

modules/contrib/views/theme/views-view.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  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. <?php print $exposed; ?>
  43. </div>
  44. <?php endif; ?>
  45. <?php if ($attachment_before): ?>
  46. <div class="attachment attachment-before">
  47. <?php print $attachment_before; ?>
  48. </div>
  49. <?php endif; ?>
  50. <?php if ($rows): ?>
  51. <div class="view-content">
  52. <?php print $rows; ?>
  53. </div>
  54. <?php elseif ($empty): ?>
  55. <div class="view-empty">
  56. <?php print $empty; ?>
  57. </div>
  58. <?php endif; ?>
  59. <?php if ($pager): ?>
  60. <?php print $pager; ?>
  61. <?php endif; ?>
  62. <?php if ($attachment_after): ?>
  63. <div class="attachment attachment-after">
  64. <?php print $attachment_after; ?>
  65. </div>
  66. <?php endif; ?>
  67. <?php if ($more): ?>
  68. <?php print $more; ?>
  69. <?php endif; ?>
  70. <?php if ($footer): ?>
  71. <div class="view-footer">
  72. <?php print $footer; ?>
  73. </div>
  74. <?php endif; ?>
  75. <?php if ($feed_icon): ?>
  76. <div class="feed-icon">
  77. <?php print $feed_icon; ?>
  78. </div>
  79. <?php endif; ?>
  80. </div><?php /* class view */ ?>

Related topics