Project

General

Profile

Paste
Download (2.05 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / views / test_templates / views-view--frontpage.tpl.php @ d719f12f

1
<?php
2

    
3
/**
4
 * @file
5
 * Main view template.
6
 *
7
 * Variables available:
8
 * - $classes_array: An array of classes determined in
9
 *   template_preprocess_views_view(). Default classes are:
10
 *     .view
11
 *     .view-[css_name]
12
 *     .view-id-[view_name]
13
 *     .view-display-id-[display_name]
14
 *     .view-dom-id-[dom_id]
15
 * - $classes: A string version of $classes_array for use in the class attribute
16
 * - $css_name: A css-safe version of the view name.
17
 * - $css_class: The user-specified classes names, if any
18
 * - $header: The view header
19
 * - $footer: The view footer
20
 * - $rows: The results of the view query, if any
21
 * - $empty: The empty text to display if the view is empty
22
 * - $pager: The pager next/prev links to display, if any
23
 * - $exposed: Exposed widget form/info to display
24
 * - $feed_icon: Feed icon to display, if any
25
 * - $more: A link to view more, if any
26
 *
27
 * @ingroup views_templates
28
 */
29
?>
30
<div class="<?php print $classes; ?>">
31
  <?php if ($header): ?>
32
    <div class="view-header">
33
      <?php print $header; ?>
34
    </div>
35
  <?php endif; ?>
36

    
37
  <?php if ($exposed): ?>
38
    <div class="view-filters">
39
      <?php print $exposed; ?>
40
    </div>
41
  <?php endif; ?>
42

    
43
  <?php if ($attachment_before): ?>
44
    <div class="attachment attachment-before">
45
      <?php print $attachment_before; ?>
46
    </div>
47
  <?php endif; ?>
48

    
49
  <?php if ($rows): ?>
50
    <div class="view-content">
51
      <?php print $rows; ?>
52
    </div>
53
  <?php elseif ($empty): ?>
54
    <div class="view-empty">
55
      <?php print $empty; ?>
56
    </div>
57
  <?php endif; ?>
58

    
59
  <?php if ($pager): ?>
60
    <?php print $pager; ?>
61
  <?php endif; ?>
62

    
63
  <?php if ($attachment_after): ?>
64
    <div class="attachment attachment-after">
65
      <?php print $attachment_after; ?>
66
    </div>
67
  <?php endif; ?>
68

    
69
  <?php if ($more): ?>
70
    <?php print $more; ?>
71
  <?php endif; ?>
72

    
73
  <?php if ($footer): ?>
74
    <div class="view-footer">
75
      <?php print $footer; ?>
76
    </div>
77
  <?php endif; ?>
78

    
79
  <?php if ($feed_icon): ?>
80
    <div class="feed-icon">
81
      <?php print $feed_icon; ?>
82
    </div>
83
  <?php endif; ?>
84

    
85
</div> <?php /* class view */ ?>