123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- $stock = $variables['node']->stock;
- $template_settings = theme_get_setting('tripal');
- $no_sidebar = 0;
- if (is_array($template_settings['tripal_no_sidebar']) and
- $template_settings['tripal_no_sidebar']['stock']) {
- $no_sidebar = 1;
- }
- if ($teaser) {
-
- }
- else { ?>
- <div id="tripal_stock_details" class="tripal_details">
- <!-- Base Theme -->
- <?php //print theme('tripal_stock_base',$node); ?>
- <!-- Cross References -->
- <?php //print theme('tripal_stock_references',$node); ?>
- <!-- Properties -->
- <?php //print theme('tripal_stock_properties',$node); ?>
- <!-- Synonyms -->
- <?php //print theme('tripal_stock_synonyms',$node); ?>
- <!-- Relationships -->
- <?php //print theme('tripal_stock_relationships',$node); ?>
- <!-- Stock Collections -->
- <?php //print theme('tripal_stock_collections',$node); ?>
- <!-- Stock Genotypes -->
- <?php //print theme('tripal_stock_genotypes',$node); ?>
- <!-- Resource Blocks CCK elements --><?php
- /**
- for($i = 0; $i < count($node->field_resource_titles); $i++){
- if($node->field_resource_titles[$i]['value']){ ?>
- <div id="tripal_stock-resource_<?php print $i?>-box" class="tripal_stock-info-box tripal-info-box">
- <div class="tripal_stock-info-box-title tripal-info-box-title"><?php print $node->field_resource_titles[$i]['value'] ?></div>
- <?php print $node->field_resource_blocks[$i]['value']; ?>
- </div><?php
- }
- }*/?>
- <!-- Let modules add more content -->
- <?php print $content; ?>
- </div>
- <!-- Table of contents -->
- <div id="tripal_stock_toc" class="tripal_toc">
- <div id="tripal_stock_toc_title" class="tripal_toc_title">Resources</div>
- <span id="tripal_stock_toc_desc" class="tripal_toc_desc"></span>
- <ul id="tripal_stock_toc_list" class="tripal_toc_list">
- <!-- Resource Links CCK elements --><?php
- /**
- for($i = 0; $i < count($node->field_resource_links); $i++){
- if($node->field_resource_links[$i]['value']){
- $matches = preg_split("/\|/",$node->field_resource_links[$i]['value']);?>
- <li><a href="<?php print $matches[1] ?>" target="_blank"><?php print $matches[0] ?></a></li><?php
- }
- }*/?>
- <?php
- </ul>
- </div>
- <?php } ?>
|