tripal_organism_teaser.tpl.php

  1. 2.x tripal_organism/theme/templates/tripal_organism_teaser.tpl.php
  2. 3.x legacy/tripal_organism/theme/templates/tripal_organism_teaser.tpl.php
1 theme call to tripal_organism_teaser.tpl.php
tripal_organism_node_view in legacy/tripal_organism/includes/tripal_organism.chado_node.inc
Implements hook_node_view().

File

legacy/tripal_organism/theme/templates/tripal_organism_teaser.tpl.php
View source
  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>