tripal_organism_teaser.tpl.php
- 2.x tripal_organism/theme/templates/tripal_organism_teaser.tpl.php
- 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.phpView source
- <?php
- $organism = $variables['node']->organism;
- $image_url = tripal_get_organism_image_url($organism); ?>
-
- <div class="tripal_organism-teaser tripal-teaser">
- <div class="tripal-organism-teaser-title tripal-teaser-title"><?php
- print l("<i>$organism->genus $organism->species</i> ($organism->common_name)", "node/$node->nid", array('html' => TRUE));?>
- </div>
- <div class="tripal-organism-teaser-text tripal-teaser-text"><?php
- if ($image_url) { ?>
- <img class="tripal-teaser-img" src="<?php print $image_url ?>" ><?php
- }
- print substr($organism->comment, 0, 650);
- if (strlen($organism->comment) > 650) {
- print "... " . l("[more]", "node/$node->nid");
- } ?>
- </div>
- </div>
-