node-chado_library.tpl.php 1.9 KB

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