tripal_organism_teaser.tpl.php 710 B

123456789101112131415161718
  1. <?php
  2. $organism = $variables['node']->organism;
  3. $image_url = tripal_get_organism_image_url($organism); ?>
  4. <div class="tripal_organism-teaser tripal-teaser">
  5. <div class="tripal-organism-teaser-title tripal-teaser-title"><?php
  6. print l("<i>$organism->genus $organism->species</i> ($organism->common_name)", "node/$node->nid", array('html' => TRUE));?>
  7. </div>
  8. <div class="tripal-organism-teaser-text tripal-teaser-text"><?php
  9. if ($image_url) { ?>
  10. <img class="tripal-teaser-img" src="<?php print $image_url ?>" ><?php
  11. }
  12. print substr($organism->comment, 0, 650);
  13. if (strlen($organism->comment) > 650) {
  14. print "... " . l("[more]", "node/$node->nid");
  15. } ?>
  16. </div>
  17. </div>