node-chado_organism.tpl.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. //
  3. // Copyright 2009 Clemson University
  4. //
  5. ?>
  6. <?php if($teaser){ ?>
  7. <a href="<?php print $node_url?>"><?php print $title?></a>
  8. <?php } else { ?>
  9. <?php $features = $node->features ?>
  10. <?php $libraries = $node->libraries ?>
  11. <div class="node<?php if ($sticky) { print " sticky"; } ?>
  12. <?php if (!$status) { print " node-unpublished"; } ?>">
  13. <?php if ($picture) { print $picture; }?>
  14. <?php if ($page == 0) { ?>
  15. <h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2>
  16. <?php }; ?>
  17. <span class="taxonomy"><?php print $terms?></span>
  18. <div class="content">
  19. <div class="tripal_organism-image">
  20. <img src=<?php print file_create_url(file_directory_path() . "/tripal/tripal_organism/images/".$node->genus."_".$node->species.".jpg")?>>
  21. </div>
  22. <?php if ($submitted): ?>
  23. <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>
  24. <?php endif; ?>
  25. <div class="tripal_organism-details">
  26. <h3>Details</h3>
  27. <table class="tripal_table_vert">
  28. <tr>
  29. <th nowrap>Common Name</th>
  30. <td><?php print $node->common_name?></td>
  31. </tr>
  32. <tr>
  33. <th>Genus</th>
  34. <td><?php print $node->genus?></td>
  35. </tr>
  36. <tr>
  37. <th>Species</th>
  38. <td><?php print $node->species?></td>
  39. </tr>
  40. </table>
  41. <?php if($node->description){ ?>
  42. <b>Description</b>
  43. <p class="organism"><?php print $node->description?></p>
  44. <?php }; ?>
  45. </div>
  46. </div>
  47. <div class="content"><?php print $content ?></div>
  48. <?php if ($links) { ?>
  49. <div class="links"> <?php print $links?></div>
  50. <?php }; ?>
  51. </div>
  52. <?php }; ?>