tripal_featuremap_teaser.tpl.php 619 B

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