123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <?php
- ?>
- <?php
-
-
- drupal_add_css('./tripal-node-templates.css');
- ?>
- <?php if ($teaser) {
- include('tripal_stock/tripal_stock_teaser.tpl.php');
- } else { ?>
- <script type="text/javascript">
- if (Drupal.jsEnabled) {
- $(document).ready(function() {
-
- $(".tripal-info-box").hide();
-
-
-
- $(".tripal-info-box-title").each(function(){
- var parent = $(this).parent();
- var id = $(parent).attr('id');
- var title = $(this).text();
- $('#tripal_stock_toc_list').append('<li><a href="#'+id+'" class="tripal_stock_toc_item">'+title+'</a></li>');
- });
-
-
- $(".tripal_stock_toc_item").click(function(){
- $(".tripal-info-box").hide();
- href = $(this).attr('href');
- $(href).fadeIn('slow');
-
-
- $("#tripal_stock_toc").height($(href).parent().height());
- return false;
- });
-
-
- var block = window.location.href.match(/\?block=.*/);
- if(block != null){
- block_title = block.toString().replace(/\?block=/g,'');
- $("#tripal_stock-"+block_title+"-box").show();
- } else {
- $("#tripal_stock-base-box").show();
- }
- $("#tripal_stock_toc").height($("#tripal_stock-base-box").parent().height());
- });
- }
- </script>
- <style type="text/css">
-
-
- float: left;
- width: 20%;
- background-color:
- -moz-border-radius: 15px;
- border-radius: 15px;
- -moz-box-shadow: 3px 3px 4px
- -webkit-box-shadow: 3px 3px 4px
- box-shadow: 3px 3px 4px
- padding: 20px;
- min-height: 500px;
- border-style:solid;
- border-width:1px;
- }
-
- margin-left: 0px;
- margin-top: 5px;
- padding-left: 15px;
- }
-
- font-size: 1.5em;
- }
-
- font-style: italic;
- }
-
- float: left;
- width: 70%;
- background-color:
- -moz-border-radius: 15px;
- border-radius: 15px;
- -moz-box-shadow: 3px 3px 4px
- -webkit-box-shadow: 3px 3px 4px
- box-shadow: 3px 3px 4px
- padding: 20px;
- min-height: 500px;
- margin-right: 10px;
- border-style:solid;
- border-width:1px;
- }
-
- float: left;
- margin-bottom: 10px;
- }
-
- float: left;
- width: 400px;
- margin-left: 10px;
- margin-bottom: 10px;
- }
- </style>
- <div id="tripal_stock_details" class="tripal_details">
- <!-- Base Theme -->
- <?php include('tripal_stock/tripal_stock_base.tpl.php'); ?>
- <!-- Database References -->
- <?php include('tripal_stock/tripal_stock_references.tpl.php'); ?>
- <!-- Properties -->
- <?php include('tripal_stock/tripal_stock_properties.tpl.php'); ?>
- <!-- Synonyms -->
- <?php include('tripal_stock/tripal_stock_synonyms.tpl.php'); ?>
- <!-- Object Relationships -->
- <?php include('tripal_stock/tripal_stock_relationships_as_object.tpl.php'); ?>
- <!-- Subject Relationships -->
- <?php include('tripal_stock/tripal_stock_relationships_as_subject.tpl.php'); ?>
- </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">
- </ul>
- </div>
- <?php } ?>
|