root / drupal7 / sites / all / modules / views / theme / views-view.tpl.php @ 384fc62a
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 print render($title_prefix); ?> |
32 |
<?php if ($title): ?> |
33 |
<?php print $title; ?> |
34 |
<?php endif; ?> |
35 |
<?php print render($title_suffix); ?> |
36 |
<?php if ($header): ?> |
37 |
<div class="view-header"> |
38 |
<?php print $header; ?> |
39 |
</div>
|
40 |
<?php endif; ?> |
41 |
|
42 |
<?php if ($exposed): ?> |
43 |
<div class="view-filters"> |
44 |
<?php print $exposed; ?> |
45 |
</div>
|
46 |
<?php endif; ?> |
47 |
|
48 |
<?php if ($attachment_before): ?> |
49 |
<div class="attachment attachment-before"> |
50 |
<?php print $attachment_before; ?> |
51 |
</div>
|
52 |
<?php endif; ?> |
53 |
|
54 |
<?php if ($rows): ?> |
55 |
<div class="view-content"> |
56 |
<?php print $rows; ?> |
57 |
</div>
|
58 |
<?php elseif ($empty): ?> |
59 |
<div class="view-empty"> |
60 |
<?php print $empty; ?> |
61 |
</div>
|
62 |
<?php endif; ?> |
63 |
|
64 |
<?php if ($pager): ?> |
65 |
<?php print $pager; ?> |
66 |
<?php endif; ?> |
67 |
|
68 |
<?php if ($attachment_after): ?> |
69 |
<div class="attachment attachment-after"> |
70 |
<?php print $attachment_after; ?> |
71 |
</div>
|
72 |
<?php endif; ?> |
73 |
|
74 |
<?php if ($more): ?> |
75 |
<?php print $more; ?> |
76 |
<?php endif; ?> |
77 |
|
78 |
<?php if ($footer): ?> |
79 |
<div class="view-footer"> |
80 |
<?php print $footer; ?> |
81 |
</div>
|
82 |
<?php endif; ?> |
83 |
|
84 |
<?php if ($feed_icon): ?> |
85 |
<div class="feed-icon"> |
86 |
<?php print $feed_icon; ?> |
87 |
</div>
|
88 |
<?php endif; ?> |
89 |
|
90 |
</div><?php /* class view */ ?> |