tripal_featuremap_teaser.tpl.php

  1. 2.x tripal_featuremap/theme/templates/tripal_featuremap_teaser.tpl.php
  2. 3.x legacy/tripal_featuremap/theme/templates/tripal_featuremap_teaser.tpl.php
1 theme call to tripal_featuremap_teaser.tpl.php
tripal_featuremap_node_view in tripal_featuremap/includes/tripal_featuremap.chado_node.inc
Implements hook_node_view(). Acts on all content types.

File

tripal_featuremap/theme/templates/tripal_featuremap_teaser.tpl.php
View source
  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>