jbrowse-instance--embedded.tpl.php 665 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Provides an embedded JBrowse instance.
  4. *
  5. * Variables:
  6. * - $url: the url of the JBrowse instance.
  7. * - $instance: an object describing the jbrowse instance.
  8. */
  9. ?>
  10. <?php if ($instance->analysis_id > 0) : ?>
  11. <h3>Sequence Assembly:
  12. <?php if ($instance->analysis->url) : ?>
  13. <a href="<?php print $instance->analysis->url; ?>"><?php print $instance->analysis->name; ?></a>
  14. <?php else: ?>
  15. <?php print $instance->analysis->name; ?>
  16. <?php endif; ?>
  17. </h3>
  18. <?php endif; ?>
  19. <p><?php print $instance->description; ?></p>
  20. <div id="JBrowseInstance">
  21. <iframe src="<?php print $url;?>" width="100%" height="100%">
  22. </iframe>
  23. </div>