tripal_feature_synonyms.tpl.php 665 B

12345678910111213141516171819
  1. <!-- theme_tripal_feature_feature_synonyms -->
  2. <?php
  3. $synonyms = $node->synonyms;
  4. if(count($synonyms) > 0){
  5. ?>
  6. <tr><th>Synonyms</th><td>
  7. <?php
  8. // iterate through each synonym
  9. if (is_array($synonyms)) {
  10. foreach ($synonyms as $result){
  11. print $result->name."<br>";
  12. }
  13. } else {
  14. print $synonyms;
  15. }
  16. ?>
  17. </td></tr>
  18. <?php } ?>
  19. <!-- End of theme_tripal_feature_feature_synonyms -->