Skip to content
Snippets Groups Projects
Commit 6249a54e authored by Anthony Bretaudeau's avatar Anthony Bretaudeau
Browse files

dynamic go reports menu

parent 98a2f655
No related branches found
No related tags found
No related merge requests found
......@@ -126,13 +126,19 @@
</li>
<?php endif; ?>
<?php if (getenv('ENABLE_GO')): ?>
<?php
if (getenv('ENABLE_GO') == "1")
$url = '/organism/';
else
$url = getenv('ENABLE_GO');
?>
<li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-46"><a href="<?php echo $GLOBALS['base_url'].$url; ?>">GO Report</a></li>
<?php if (count($page['organisms']) > 1): ?>
<li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-46">
GO Reports
<ul class="sub-menu">
<?php endif; ?>
<?php foreach ($page['organisms'] as $org_id => $org): ?>
<li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-46"><a href="<?php $GLOBALS['base_url']."/organism/".str_replace(' ', '-', $org->genus)."/".str_replace(' ', '-', $org->species)."?pane=GO"; ?>"><?php echo $org->genus $org->species ?></a></li>
<?php endforeach; ?>
<?php if (count($page['organisms']) > 1): ?>
</ul>
</li>
<?php endif; ?>
<li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-46"><a href="<?php echo $GLOBALS['base_url'].$url; ?>">GO Reports</a></li>
<?php endif; ?>
<?php if (getenv('ENABLE_BLAST')): ?>
<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment