tripal_contact_teaser.tpl.php 613 B

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