tripal_analysis_teaser.tpl.php
- 2.x tripal_analysis/theme/templates/tripal_analysis_teaser.tpl.php
- 3.x legacy/tripal_analysis/theme/templates/tripal_analysis_teaser.tpl.php
1 theme call to tripal_analysis_teaser.tpl.php
- tripal_analysis_node_view in tripal_analysis/
includes/ tripal_analysis.chado_node.inc - Implements hook_node_view(). Called for all node types.
File
tripal_analysis/theme/templates/tripal_analysis_teaser.tpl.phpView source
- <?php
- $node = $variables['node'];
- $analysis = $variables['node']->analysis;
- $analysis = chado_expand_var($analysis,'field','analysis.description'); ?>
-
- <div class="tripal_analysis_blast-teaser tripal-teaser">
- <div class="tripal-analysis-blast-teaser-title tripal-teaser-title"><?php
- print l($node->title, "node/$node->nid", array('html' => TRUE));?>
- </div>
- <div class="tripal-analysis-blast-teaser-text tripal-teaser-text"><?php
- print substr($analysis->description, 0, 650);
- if (strlen($analysis->description) > 650) {
- print "... " . l("[more]", "node/$node->nid");
- } ?>
- </div>
- </div>