Juc1

/modules/views/theme/views-view-tpl.php

Apr 13th, 2015
232
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. kpr($variables['view']);
  4.  
  5. /**
  6. * @file
  7. * Main view template.
  8. *
  9. * Variables available:
  10. * - $classes_array: An array of classes determined in
  11. * template_preprocess_views_view(). Default classes are:
  12. * .view
  13. * .view-[css_name]
  14. * .view-id-[view_name]
  15. * .view-display-id-[display_name]
  16. * .view-dom-id-[dom_id]
  17. * - $classes: A string version of $classes_array for use in the class attribute
  18. * - $css_name: A css-safe version of the view name.
  19. * - $css_class: The user-specified classes names, if any
  20. * - $header: The view header
  21. * - $footer: The view footer
  22. * - $rows: The results of the view query, if any
  23. * - $empty: The empty text to display if the view is empty
  24. * - $pager: The pager next/prev links to display, if any
  25. * - $exposed: Exposed widget form/info to display
  26. * - $feed_icon: Feed icon to display, if any
  27. * - $more: A link to view more, if any
  28. *
  29. * @ingroup views_templates
  30. */
  31. ?>
  32. <div class="<?php print $classes; ?>">
  33. <?php print render($title_prefix); ?>
  34. <?php if ($title): ?>
  35. <?php print $title; ?>
  36. <?php endif; ?>
  37. <?php print render($title_suffix); ?>
  38. <?php if ($header): ?>
  39. <div class="view-header">
  40. <?php print $header; ?>
  41. </div>
  42. <?php endif; ?>
  43.  
  44. <?php if ($exposed): ?>
  45. <div class="view-filters">
  46. <?php print $exposed; ?>
  47. </div>
  48. <?php endif; ?>
  49.  
  50. <?php if ($attachment_before): ?>
  51. <div class="attachment attachment-before">
  52. <?php print $attachment_before; ?>
  53. </div>
  54. <?php endif; ?>
  55.  
  56. <?php if ($rows): ?>
  57. <div style="border:10px solid lime" 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.  
  66. <?php if ($pager): ?>
  67. <?php print $pager; ?>
  68. <?php endif; ?>
  69.  
  70. <?php if ($attachment_after): ?>
  71. <div class="attachment attachment-after">
  72. <?php print $attachment_after; ?>
  73. </div>
  74. <?php endif; ?>
  75.  
  76. <?php if ($more): ?>
  77. <?php print $more; ?>
  78. <?php endif; ?>
  79.  
  80. <?php if ($footer): ?>
  81. <div class="view-footer">
  82. <?php print $footer; ?>
  83. </div>
  84. <?php endif; ?>
  85.  
  86. <?php if ($feed_icon): ?>
  87. <div class="feed-icon">
  88. <?php print $feed_icon; ?>
  89. </div>
  90. <?php endif; ?>
  91.  
  92. </div><?php /* class view */ ?>
RAW Paste Data