tripal_analysis_teaser.tpl.php 617 B

12345678910111213141516
  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>