node-chado_organism.tpl.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php if($teaser){ ?>
  2. <a href="<?php print $node_url?>"><?php print $title?></a>
  3. <?php } else { ?>
  4. <?php $features = $node->features ?>
  5. <?php $libraries = $node->libraries ?>
  6. <div class="node<?php if ($sticky) { print " sticky"; } ?>
  7. <?php if (!$status) { print " node-unpublished"; } ?>">
  8. <?php if ($picture) { print $picture; }?>
  9. <?php if ($page == 0) { ?>
  10. <h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2>
  11. <?php }; ?>
  12. <span class="taxonomy"><?php print $terms?></span>
  13. <div class="content">
  14. <div class="tripal_organism-image">
  15. <img src=<?php print file_create_url(file_directory_path() . "/tripal/tripal_organism/images/".$node->genus."_".$node->species.".jpg")?>>
  16. </div>
  17. <?php if ($submitted): ?>
  18. <div class="metanode"><p><?php print t('') .'<span class="author">'. theme('username', $node).'</span>' . t(' - Posted on ') . '<span class="date">'.format_date($node->created, 'custom', "d F Y").'</span>'; ?></p></div>
  19. <?php endif; ?>
  20. <div class="tripal_organism-details">
  21. <h3>Details</h3>
  22. <table class="tripal_table_vert">
  23. <tr>
  24. <th nowrap>Common Name</th>
  25. <td><?php print $node->common_name?></td>
  26. </tr>
  27. <tr>
  28. <th>Genus</th>
  29. <td><?php print $node->genus?></td>
  30. </tr>
  31. <tr>
  32. <th>Species</th>
  33. <td><?php print $node->species?></td>
  34. </tr>
  35. </table>
  36. <?php if($node->description){ ?>
  37. <b>Description</b>
  38. <p class="organism"><?php print $node->description?></p>
  39. <?php }; ?>
  40. </div>
  41. </div>
  42. <div class="content"><?php print $content ?></div>
  43. <?php if ($links) { ?>
  44. <div class="links"> <?php print $links?></div>
  45. <?php }; ?>
  46. </div>
  47. <?php }; ?>