tripal_analysis_teaser.tpl.php

  1. 2.x tripal_analysis/theme/templates/tripal_analysis_teaser.tpl.php
  2. 3.x legacy/tripal_analysis/theme/templates/tripal_analysis_teaser.tpl.php
1 theme call to tripal_analysis_teaser.tpl.php
tripal_analysis_node_view in tripal_analysis/includes/tripal_analysis.chado_node.inc
Implements hook_node_view(). Called for all node types.

File

tripal_analysis/theme/templates/tripal_analysis_teaser.tpl.php
View source
  1. <?php
  2. $node = $variables['node'];
  3. $analysis = $variables['node']->analysis;
  4. $analysis = chado_expand_var($analysis,'field','analysis.description'); ?>
  5. <div class="tripal_analysis_blast-teaser tripal-teaser">
  6. <div class="tripal-analysis-blast-teaser-title tripal-teaser-title"><?php
  7. print l($node->title, "node/$node->nid", array('html' => TRUE));?>
  8. </div>
  9. <div class="tripal-analysis-blast-teaser-text tripal-teaser-text"><?php
  10. print substr($analysis->description, 0, 650);
  11. if (strlen($analysis->description) > 650) {
  12. print "... " . l("[more]", "node/$node->nid");
  13. } ?>
  14. </div>
  15. </div>