node-chado_stock.tpl.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. // Copyright 2010 University of Saskatchewan (Lacey-Anne Sanderson)
  3. //
  4. // Purpose: This template provides the layout of the stock node (page)
  5. // using the same templates used for the various stock content blocks.
  6. //
  7. // To Customize the Stock Node Page:
  8. // - This Template: customize basic layout and which elements are included
  9. // - Using Panels: Override the node page using Panels3 and place the blocks
  10. // of content as you please. This method requires no programming. See
  11. // the Tripal User Guide for more details
  12. // - Block Templates: customize the content/layout of each block of stock
  13. // content. These templates are found in the tripal_stock subdirectory
  14. //
  15. // Variables Available:
  16. // - $node: a standard object which contains all the fields associated with
  17. // nodes including nid, type, title, taxonomy. It also includes stock
  18. // specific fields such as stock_name, uniquename, stock_type, synonyms,
  19. // properties, db_references, object_relationships, subject_relationships,
  20. // organism, etc.
  21. // NOTE: For a full listing of fields available in the node object the
  22. // print_r $node line below or install the Drupal Devel module which
  23. // provides an extra tab at the top of the node page labelled Devel
  24. ?>
  25. <?php
  26. //uncomment this line to see a full listing of the fields avail. to $node
  27. //print '<pre>'.print_r($node,TRUE).'</pre>';
  28. ?>
  29. <!-- Base Theme -->
  30. <?php include('tripal_stock/tripal_stock_base.tpl.php'); ?>
  31. <?php if (!$teaser) { ?>
  32. <!-- Database References -->
  33. <?php include('tripal_stock/tripal_stock_references.tpl.php'); ?>
  34. <!-- Properties -->
  35. <?php include('tripal_stock/tripal_stock_properties.tpl.php'); ?>
  36. <!-- Synonyms -->
  37. <?php include('tripal_stock/tripal_stock_synonyms.tpl.php'); ?>
  38. <!-- Object Relationships -->
  39. <?php include('tripal_stock/tripal_stock_relationships_as_object.tpl.php'); ?>
  40. <!-- Subject Relationships -->
  41. <?php include('tripal_stock/tripal_stock_relationships_as_subject.tpl.php'); ?>
  42. <?php } ?>