[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

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

   1  <?php
   2  // $Id: project-views-view-row-project-node.tpl.php,v 1.1 2009/01/12 20:34:07 dww Exp $
   3  /**
   4   * @file project-views-view-row-project-node.tpl.php
   5   * Default view template to display a single project node.
   6   *
   7   * The following variables are available:
   8   * - $options['project_teaser']: If set only the project node's teaser should be displayed.
   9   * - $options['project_term_links']: If set the project term links should be displayed.
  10   * - $options['project_release_download_table']: If set the release download table should be displayed.
  11   * - $options['project_release_download_link']: If set a link to directly download the most recent version should be displayed.
  12   * - $options['project_issue_issues_link']: If set a link to the project's issue queue should be displayed.
  13   *
  14   * - $project:  This is a version of the project node object with only a few selected fields, all of which have been sanitized.
  15   *     Note:  Several of these properties will not be set if the corresponding option was not set.
  16   *     The following properties are available:
  17   *       ->class: odd or even, useful for zebra striping.  Will always be present.
  18   *       ->terms: themed links to terms associated with the node.  May be absent.
  19   *       ->title: linked title of the project node.  Will always be present.
  20   *       ->changed: text to display to indicate the last time the node was changed/modified.
  21   *       ->body: the rendered project body (or, teaser, if $options['project_teaser'] is set).  Will always be present.
  22   *       ->download_table: the rendered release download table.  May be absent.
  23   *       ->issues_link: Link to the project's issue queue.  May be absent.
  24   *       ->new_date:  if set, the changed time of this project is different enough from the last
  25   *                    project that a header containing the date should be displayed.
  26   */
  27  ?>
  28  <?php if (!empty($project->new_date)) { ?>
  29    <h3><?php print format_date($project->new_date, 'custom', 'F j, Y'); ?></h3>  
  30  <?php } ?>
  31  
  32  <div class="<?php print $project->class; ?>">
  33    <h2><?php print $project->title; ?></h2>
  34    <?php if (!empty($project->changed)) { print '<p><small>' . $project->changed . '</small></p>'; } ?>
  35    <?php print $project->body; ?>
  36    <?php if (!empty($project_release->download_table)) { print $project_release->download_table; } ?>
  37    <?php if (!empty($project->terms)) { print $project->terms; } ?>
  38  </div>


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7