params['sandbox']) echo '
';
if(Yii::$app->params['maintenance']) echo '
'.
Yii::$app->params['maintenanceMessage']
.'
';
if (BaseUrl::current () === Yii::$app->homeUrl || strpos ( BaseUrl::current (), 'site/index' )) {
NavBar::begin ( [
'brandLabel' => '
',
'brandUrl' => Yii::$app->homeUrl,
'options' => [
'class' => 'navbar-default navbar-fixed-top',
'encodeLabels' => true
]
] );
} else {
NavBar::begin ( [
'brandLabel' => '
',
'brandUrl' => Yii::$app->homeUrl,
'options' => [
'class' => 'navbar-default navbar-fixed-top',
'encodeLabels' => true
]
] );
}
$menuItems = [
[ 'label' => 'Search', 'url' => ['/search/index']],
[
'label' => 'How-to',
'items' => [
'',
['label' => 'How to search for samples', 'url' => ['/site/wf?p=GGBN_Data_Portal_Explanations']],
['label' => 'How to request samples', 'url' => ['/site/wf?p=How_to_request_samples']],
['label' => 'Search Samples', 'url' => ['/search/index']],
['label' => 'Collection Statistics', 'url' => ['/stats/index']],
'
',
'',
'',
['label' => 'Technical Requirements', 'url' => ['/site/wf?p=IT_requirements']] ,
['label' => 'Software Tools', 'url' => ['/site/wf?p=Software_Tools']],
['label' => 'Tutorials', 'url' => ['/site/wf?p=Data_Tutorials']],
'
',
'',
['label' => 'Tutorials', 'url' => ['/site/wf?p=Collecting_Tutorials']],
'
',
['label' => 'FAQs', 'url' => ['/site/wf?p=FAQs']],
]
],
[
'label' => 'Resources',
'items' => [
['label' => 'ABS & Nagoya Protocol', 'url' => ['/site/wf?p=ABS_and_Nagoya_Protocol']],
'
',
['label' => 'GGBN Document Library', 'url' => 'https://library.ggbn.org/share/'],
'
',
['label' => 'Meeting and Conferences', 'url' => 'http://meetings.ggbn.org'],
'
',
['label' => 'News', 'url' => ['/site/wf?p=News']],
'
',
['label' => 'GGBN Data Standard', 'url' => ['/site/wf?p=GGBN_Data_Standard']]
]
],
[
'label' => 'Members',
'items' => [
'',
['label' => 'How to become a partner', 'url' => ['/site/wf?p=Partners']],
'
',
'',
['label' => 'How to become a member', 'url' => ['/site/wf?p=Membership']],
['label' => 'List of Members', 'url' => ['/members/table']],
['label' => 'Portal Usage Statistics', 'url' => ['/usagestats/index']],
['label' => 'Interactive Map', 'url' => ['/members/index']]
]
],
[
'label' => 'About',
'items' => [
['label' => 'What is GGBN', 'url' => ['/site/wf?p=About_GGBN']],
'
',
'',
['label' => 'Executive Committee', 'url' => ['/site/wf?p=Terms_of_Reference']],
['label' => 'Executive Committee', 'url' => ['/site/wf?p=Governance']],
['label' => 'Data Standard Task Force', 'url' => ['/site/wf?p=Task_Force_Data_Standards_and_Data_Access']],
['label' => 'Policies Task Force', 'url' => ['/site/wf?p=Task_Force_Policies']],
['label' => 'Biobank Procedures Task Force', 'url' => ['/site/wf?p=Task_Force_Biobank_Procedures']],
['label' => 'Document Library Task Force', 'url' => ['/site/wf?p=Task_Force_Document_Library']],
['label' => 'Communications & Outreach Task Force', 'url' => ['/site/wf?p=Task_Force_Communications_and_Outreach']],
'
',
['label' => 'GGBN Publications', 'url' => ['/site/wf?p=Publications']],
]
],
];
if (Yii::$app->params ['useLogin'] && ( in_array ( Yii::$app->request->userIP, Yii::$app->params ['authorizedIPs'] ) || in_array("all", Yii::$app->params['authorizedIPs'] ))) {
if (Yii::$app->user->isGuest or (User::getCookie() != Yii::$app->params['siteName'])) {
$menuItems [] = [
'label' => "Login",
'url' => [
'/site/login'
]
];
} else {
if (\Yii::$app->user->can ( 'validateUser' )) {
$menuItems [] = [
'label' => "Admin",
'items' => [
[
'label' => 'Admin panel',
'url' => [
'/validation/adminpanel'
]
],
'
',
[
'label' => 'Validation',
'url' => [
'/validation/validation?token'
],
'linkOptions' => [
'data-method' => 'post'
]
],
'
',
[
'label' => 'User profiles',
'url' => [
'/account/admin'
]
],
'
',
[
'label' => 'Creating maps',
'url' => [
'/maps/index'
]
],
]
];
}
$menuItems [] = [
'label' => "Account",
'items' => [
[
'label' => 'Profile',
'url' => [
'/account/profile'
]
],
'
',
[
'label' => 'Settings',
'url' => [
'/account/settings'
] ,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Searches',
'url' => [
'/account/searches'
] ,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Unsubmitted requests',
'url' => [
'/cart/cart'
] ,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Submitted requests',
'url' => [
'/account/orders'
] ,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Logout',
'url' => [
'/site/logout'
],
'linkOptions' => [
'data-method' => 'post'
]
]
]
];
}
}
echo Nav::widget ( [
'options' => [
'class' => 'navbar-nav navbar-right'
],
'items' => $menuItems,
'encodeLabels' => false
] );
NavBar::end ();
?>
=Breadcrumbs::widget ( [ 'links' => isset ( $this->params ['breadcrumbs'] ) ? $this->params ['breadcrumbs'] : [ ] ] )?>
= Alert::widget()?>
= $content?>
endBody()?>