[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/views/theme/ -> views-view.tpl.php (source)

   1  <?php
   2  /**
   3   * @file views-view.tpl.php
   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   * - $admin_links: A rendered list of administrative links
  26   * - $admin_links_raw: A list of administrative links suitable for theme('links')
  27   *
  28   * @ingroup views_templates
  29   */
  30  ?>
  31  <div class="<?php print $classes; ?>">
  32    <?php if ($admin_links): ?>
  33      <div class="views-admin-links views-hide">
  34        <?php print $admin_links; ?>
  35      </div>
  36    <?php endif; ?>
  37    <?php if ($header): ?>
  38      <div class="view-header">
  39        <?php print $header; ?>
  40      </div>
  41    <?php endif; ?>
  42  
  43    <?php if ($exposed): ?>
  44      <div class="view-filters">
  45        <?php print $exposed; ?>
  46      </div>
  47    <?php endif; ?>
  48  
  49    <?php if ($attachment_before): ?>
  50      <div class="attachment attachment-before">
  51        <?php print $attachment_before; ?>
  52      </div>
  53    <?php endif; ?>
  54  
  55    <?php if ($rows): ?>
  56      <div class="view-content">
  57        <?php print $rows; ?>
  58      </div>
  59    <?php elseif ($empty): ?>
  60      <div class="view-empty">
  61        <?php print $empty; ?>
  62      </div>
  63    <?php endif; ?>
  64  
  65    <?php if ($pager): ?>
  66      <?php print $pager; ?>
  67    <?php endif; ?>
  68  
  69    <?php if ($attachment_after): ?>
  70      <div class="attachment attachment-after">
  71        <?php print $attachment_after; ?>
  72      </div>
  73    <?php endif; ?>
  74  
  75    <?php if ($more): ?>
  76      <?php print $more; ?>
  77    <?php endif; ?>
  78  
  79    <?php if ($footer): ?>
  80      <div class="view-footer">
  81        <?php print $footer; ?>
  82      </div>
  83    <?php endif; ?>
  84  
  85    <?php if ($feed_icon): ?>
  86      <div class="feed-icon">
  87        <?php print $feed_icon; ?>
  88      </div>
  89    <?php endif; ?>
  90  
  91  </div> <?php /* class view */ ?>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7