tripal_featuremap_teaser.tpl.php
- 2.x tripal_featuremap/theme/templates/tripal_featuremap_teaser.tpl.php
- 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 legacy/
tripal_featuremap/ includes/ tripal_featuremap.chado_node.inc - Implements hook_node_view(). Acts on all content types.
File
legacy/tripal_featuremap/theme/templates/tripal_featuremap_teaser.tpl.phpView source
- <?php
- $node = $variables['node'];
- $featuremap = $variables['node']->featuremap;
- $featuremap = chado_expand_var($featuremap,'field','featuremap.description'); ?>
-
- <div class="tripal_featuremap-teaser tripal-teaser">
- <div class="tripal-featuremap-teaser-title tripal-teaser-title"><?php
- print l($node->title, "node/$node->nid", array('html' => TRUE));?>
- </div>
- <div class="tripal-featuremap-teaser-text tripal-teaser-text"><?php
- print substr($featuremap->description, 0, 650);
- if (strlen($featuremap->description) > 650) {
- print "... " . l("[more]", "node/$node->nid");
- } ?>
- </div>
- </div>