Projet

Général

Profil

Paste
Télécharger (1,44 ko) Statistiques
| Branche: | Révision:

root / htmltest / sites / all / modules / views / theme / views-view-fields.tpl.php @ a5572547

1
<?php
2

    
3
/**
4
 * @file
5
 * Default simple view template to all the fields as a row.
6
 *
7
 * - $view: The view in use.
8
 * - $fields: an array of $field objects. Each one contains:
9
 *   - $field->content: The output of the field.
10
 *   - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
11
 *   - $field->class: The safe class id to use.
12
 *   - $field->handler: The Views field handler object controlling this field. Do not use
13
 *     var_export to dump this object, as it can't handle the recursion.
14
 *   - $field->inline: Whether or not the field should be inline.
15
 *   - $field->inline_html: either div or span based on the above flag.
16
 *   - $field->wrapper_prefix: A complete wrapper containing the inline_html to use.
17
 *   - $field->wrapper_suffix: The closing tag for the wrapper.
18
 *   - $field->separator: an optional separator that may appear before a field.
19
 *   - $field->label: The wrap label text to use.
20
 *   - $field->label_html: The full HTML of the label to use including
21
 *     configured element type.
22
 * - $row: The raw result object from the query, with all data it fetched.
23
 *
24
 * @ingroup views_templates
25
 */
26
?>
27
<?php foreach ($fields as $id => $field): ?>
28
  <?php if (!empty($field->separator)): ?>
29
    <?php print $field->separator; ?>
30
  <?php endif; ?>
31

    
32
  <?php print $field->wrapper_prefix; ?>
33
    <?php print $field->label_html; ?>
34
    <?php print $field->content; ?>
35
  <?php print $field->wrapper_suffix; ?>
36
<?php endforeach; ?>