views-view--frontpage.tpl.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 if ($header): ?>
  31. <div class="view-header">
  32. <?php print $header; ?>
  33. </div>
  34. <?php endif; ?>
  35. <?php if ($exposed): ?>
  36. <div class="view-filters">
  37. <?php print $exposed; ?>
  38. </div>
  39. <?php endif; ?>
  40. <?php if ($attachment_before): ?>
  41. <div class="attachment attachment-before">
  42. <?php print $attachment_before; ?>
  43. </div>
  44. <?php endif; ?>
  45. <?php if ($rows): ?>
  46. <div class="view-content">
  47. <?php print $rows; ?>
  48. </div>
  49. <?php elseif ($empty): ?>
  50. <div class="view-empty">
  51. <?php print $empty; ?>
  52. </div>
  53. <?php endif; ?>
  54. <?php if ($pager): ?>
  55. <?php print $pager; ?>
  56. <?php endif; ?>
  57. <?php if ($attachment_after): ?>
  58. <div class="attachment attachment-after">
  59. <?php print $attachment_after; ?>
  60. </div>
  61. <?php endif; ?>
  62. <?php if ($more): ?>
  63. <?php print $more; ?>
  64. <?php endif; ?>
  65. <?php if ($footer): ?>
  66. <div class="view-footer">
  67. <?php print $footer; ?>
  68. </div>
  69. <?php endif; ?>
  70. <?php if ($feed_icon): ?>
  71. <div class="feed-icon">
  72. <?php print $feed_icon; ?>
  73. </div>
  74. <?php endif; ?>
  75. </div> <?php /* class view */ ?>