first commit
[step2_drupal.git] / views / theme / views-view.tpl.php
blob28919841ef416e8300ae2caafcb66805e70078a2
1 <?php
2 // $Id: views-view.tpl.php,v 1.11 2008/12/02 18:35:50 merlinofchaos Exp $
3 /**
4 * @file views-view.tpl.php
5 * Main view template
7 * Variables available:
8 * - $css_name: A css-safe version of the view name.
9 * - $header: The view header
10 * - $footer: The view footer
11 * - $rows: The results of the view query, if any
12 * - $empty: The empty text to display if the view is empty
13 * - $pager: The pager next/prev links to display, if any
14 * - $exposed: Exposed widget form/info to display
15 * - $feed_icon: Feed icon to display, if any
16 * - $more: A link to view more, if any
17 * - $admin_links: A rendered list of administrative links
18 * - $admin_links_raw: A list of administrative links suitable for theme('links')
20 * @ingroup views_templates
23 <div class="view view-<?php print $css_name; ?> view-id-<?php print $name; ?> view-display-id-<?php print $display_id; ?> view-dom-id-<?php print $dom_id; ?>">
24 <?php if ($admin_links): ?>
25 <div class="views-admin-links views-hide">
26 <?php print $admin_links; ?>
27 </div>
28 <?php endif; ?>
29 <?php if ($header): ?>
30 <div class="view-header">
31 <?php print $header; ?>
32 </div>
33 <?php endif; ?>
35 <?php if ($exposed): ?>
36 <div class="view-filters">
37 <?php print $exposed; ?>
38 </div>
39 <?php endif; ?>
41 <?php if ($attachment_before): ?>
42 <div class="attachment-before">
43 <?php print $attachment_before; ?>
44 </div>
45 <?php endif; ?>
47 <?php if ($rows): ?>
48 <div class="view-content">
49 <?php print $rows; ?>
50 </div>
51 <?php elseif ($empty): ?>
52 <div class="view-empty">
53 <?php print $empty; ?>
54 </div>
55 <?php endif; ?>
57 <?php if ($pager): ?>
58 <?php print $pager; ?>
59 <?php endif; ?>
61 <?php if ($attachment_after): ?>
62 <div class="attachment-after">
63 <?php print $attachment_after; ?>
64 </div>
65 <?php endif; ?>
67 <?php if ($more): ?>
68 <?php print $more; ?>
69 <?php endif; ?>
71 <?php if ($footer): ?>
72 <div class="view-footer">
73 <?php print $footer; ?>
74 </div>
75 <?php endif; ?>
77 <?php if ($feed_icon): ?>
78 <div class="feed-icon">
79 <?php print $feed_icon; ?>
80 </div>
81 <?php endif; ?>
83 </div> <?php // class view ?>