12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- if ($teaser) {
- print render($content);
- }
- else {
- $node_type = $node->type; ?>
- <script type="text/javascript">
-
-
-
- jQuery(document).ready(function($){
-
- $(".tripal-data-pane").hide().filter(":first-child").show();
-
-
- $(".tripal_toc_list_item_link").click(function(){
- var id = $(this).attr('id') + "-tripal-data-pane";
- $(".tripal-data-pane").hide().filter("#"+ id).fadeIn('fast');
- return false;
- });
-
-
-
-
- var pane;
- pane = window.location.href.match(/[\?|\&]pane=(.+?)[\&|\
- if (pane == null) {
- pane = window.location.href.match(/[\?|\&]pane=(.+)/)
- }
-
- if (pane == null) {
- pane = window.location.href.match(/[\?|\&]block=(.+?)[\&|\
- if (pane == null) {
- pane = window.location.href.match(/[\?|\&]block=(.+)/)
- }
- }
- if(pane != null){
- $(".tripal-data-pane").hide().filter("#" + pane[1] + "-tripal-data-pane").show();
- }
-
-
- $("a.active").removeClass('active');
- });
- </script>
- <div id="tripal_<?php print $node_type?>_contents" class="tripal-contents">
- <table id ="tripal-<?php print $node_type?>-contents-table" class="tripal-contents-table">
- <tr class="tripal-contents-table-tr">
- <td nowrap class="tripal-contents-table-td tripal-contents-table-td-toc" align="left"><?php
- // print the table of contents. It's found in the content array
- if (array_key_exists('tripal_toc', $content)) {
- print $content['tripal_toc']['#markup'];
-
-
-
-
- unset($content['tripal_toc']);
- unset($content['links']);
- } ?>
- </td>
- <td class="tripal-contents-table-td-data" align="left" width="100%"> <?php
- // print the rendered content
- print render($content); ?>
- </td>
- </tr>
- </table>
- </div> <?php
- }
|