node-chado_library.tpl.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /*
  3. Copyright 2009 Clemson University
  4. */
  5. ?>
  6. <?php if ($picture) { print $picture; }?>
  7. <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
  8. <?php if ($page == 0) { ?><h2 class="nodeTitle"><a href="<?php print $node_url?>"><?php print $title?></a>
  9. <?php global $base_url;
  10. if ($sticky) { print '<img src="'.base_path(). drupal_get_path('theme','sanqreal').'/img/sticky.gif" alt="sticky icon" class="sticky" />'; } ?>
  11. </h2><?php }; ?>
  12. <?php if (!$teaser): ?>
  13. <?php if ($submitted): ?>
  14. <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>
  15. <?php endif;?>
  16. <div>
  17. <!-- tripal library theme -->
  18. <table>
  19. <tr><th>Unique Name</th><td><?php print $node->uniquename;?></td></tr>
  20. <tr><th>Organism</th><td><?php print $node->genus.' '.$node->species.' ('.$node->common_name.')';?></td></tr>
  21. <tr><th>Libraray Type</th><td><?php print $node->library_type?></td></tr>
  22. <!--<tr><th>Number of ESTs</th><td><?php print $node->sequence_num?></td></tr>-->
  23. <tr><th>Description</th><td><?php print $node->library_description?></td></tr>
  24. </table>
  25. <!-- End of tripal library theme-->
  26. </div>
  27. <?php endif; ?>
  28. <div class="content"><?php print $content?></div>
  29. <?php if (!$teaser): ?>
  30. <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>
  31. <?php endif; ?>
  32. <?php if ($teaser): ?>
  33. <?php if ($links) { ?><div class="linksteaser"><div class="links"><?php print $links?></div></div><?php }; ?>
  34. <?php endif; ?>
  35. <?php if (!$teaser): ?>
  36. <?php if ($terms) { ?><div class="taxonomy"><span><?php print t('tags') ?></span> <?php print $terms?></div><?php } ?>
  37. <?php endif; ?>
  38. </div>