tripal_phylogeny_teaser.tpl.php 631 B

123456789101112131415161718
  1. <?php
  2. $node = $variables['node'];
  3. $phylotree = $variables['node']->phylotree;
  4. $phylotree = chado_expand_var($phylotree, 'field', 'phylotree.comment'); ?>
  5. <div class="tripal_phylogeny_blast-teaser tripal-teaser">
  6. <div class="tripal-phylotree-blast-teaser-title tripal-teaser-title"><?php
  7. print l($node->title, "node/$node->nid", ['html' => TRUE]); ?>
  8. </div>
  9. <div class="tripal-phylotree-blast-teaser-text tripal-teaser-text"><?php
  10. print substr($phylotree->comment, 0, 650);
  11. if (strlen($phylotree->comment) > 650) {
  12. print "... " . l("[more]", "node/$node->nid");
  13. } ?>
  14. </div>
  15. </div>