| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: project-views-view-row-project-fields.tpl.php,v 1.1 2009/01/12 20:34:07 dww Exp $ 3 /** 4 * @file project-views-view-row-project-fields.tpl.php 5 * View template to display available project fields in 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->handler: The Views field handler object controlling this field. Do not use 12 * var_export to dump this object, as it can't handle the recursion. 13 * - $field->class: The safe class id to use. 14 * - $field->label: The label of the field. 15 * - $row: The raw result object from the query, with all data it fetched. 16 * 17 */ 18 ?> 19 <?php foreach ($fields as $id => $field): ?> 20 <div class="project-fields views-field-<?php print $field->class; ?>"> 21 <?php if ($field->label): ?> 22 <label class="views-label-<?php print $field->class; ?>"> 23 <?php print $field->label; ?>: 24 </label> 25 <?php endif; ?> 26 <span class="field-content"> 27 <?php if ($field->class == 'title'): ?> 28 <?php print '<h2>' . $field->content . '</h2>'; ?> 29 <?php else: ?> 30 <?php print $field->content; ?> 31 <?php endif; ?> 32 </span> 33 </div> 34 <?php endforeach; ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |