/[drupal]/contributions/modules/topichubs/plugins/topichubs_most_recent/views-view-fields--topichub-most-recent.tpl.php
ViewVC logotype

Diff of /contributions/modules/topichubs/plugins/topichubs_most_recent/views-view-fields--topichub-most-recent.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Tue Mar 3 23:51:06 2009 UTC revision 1.1.2.1, Wed Sep 2 12:00:21 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: views-view-fields.tpl.php,v 1.6 2008/09/24 22:48:21 merlinofchaos Exp $  // $Id: views-view-fields--topichub-most-recent.tpl.php,v 1.1 2009/03/03 23:51:06 febbraro Exp $
3  /**  /**
4   * @file views-view-fields.tpl.php   * @file views-view-fields.tpl.php
5   * Default simple view template to all the fields as a row.   * Default simple view template to all the fields as a row.
6   *   *
7   * - $view: The view in use.   * - $view: The view in use.
8   * - $fields: an array of $field objects. Each one contains:   * - $fields: an array of $field objects. Each one contains:
9   *   - $field->content: The output of the field.   *   - $field->content: The output of the field.
10   *   - $field->raw: The raw data for the field, if it exists. This is NOT output safe.   *   - $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.   *   - $field->class: The safe class id to use.
12   *   - $field->handler: The Views field handler object controlling this field. Do not use   *   - $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.   *     var_export to dump this object, as it can't handle the recursion.
14   *   - $field->inline: Whether or not the field should be inline.   *   - $field->inline: Whether or not the field should be inline.
15   *   - $field->inline_html: either div or span based on the above flag.   *   - $field->inline_html: either div or span based on the above flag.
16   *   - $field->separator: an optional separator that may appear before a field.   *   - $field->separator: an optional separator that may appear before a field.
17   * - $row: The raw result object from the query, with all data it fetched.   * - $row: The raw result object from the query, with all data it fetched.
18   *   *
19   * @ingroup views_templates   * @ingroup views_templates
20   */   */
21  ?>  ?>
22  <?php foreach ($fields as $fid => $field): ?>  <?php foreach ($fields as $fid => $field): ?>
23    <?php if (!empty($field->separator)): ?>    <?php if (!empty($field->separator)): ?>
24      <?php print $field->separator; ?>      <?php print $field->separator; ?>
25    <?php endif; ?>    <?php endif; ?>
26    
27    <?php if( $id <= 5 || $fid != 'teaser') : ?>    <?php if( $id <= 5 || $fid != 'teaser') : ?>
28    <<?php print $field->inline_html;?> class="views-field-<?php print $field->class; ?>">    <<?php print $field->inline_html;?> class="views-field-<?php print $field->class; ?>">
29      <?php if ($field->label): ?>      <?php if ($field->label): ?>
30        <label class="views-label-<?php print $field->class; ?>">        <label class="views-label-<?php print $field->class; ?>">
31          <?php print $field->label; ?>:          <?php print $field->label; ?>:
32        </label>        </label>
33      <?php endif; ?>      <?php endif; ?>
34        <?php        <?php
35        // $field->element_type is either SPAN or DIV depending upon whether or not        // $field->element_type is either SPAN or DIV depending upon whether or not
36        // the field is a 'block' element type or 'inline' element type.        // the field is a 'block' element type or 'inline' element type.
37        ?>        ?>
38        <<?php print $field->element_type; ?> class="field-content"><?php print $field->content; ?></<?php print $field->element_type; ?>>        <<?php print $field->element_type; ?> class="field-content"><?php print $field->content; ?></<?php print $field->element_type; ?>>
39    </<?php print $field->inline_html;?>>    </<?php print $field->inline_html;?>>
40    <?php endif; ?>    <?php endif; ?>
41  <?php endforeach; ?>  <?php endforeach; ?>
42    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2