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-inverse navbar-fixed-top' ,
'encodeLabels' => true
]
] );
} else {
NavBar::begin ( [
'brandLabel' => '
',
'brandUrl' => Yii::$app->homeUrl,
'options' => [
// 'class' => 'navbar-inverse navbar-fixed-top' ,
'encodeLabels' => true
]
] );
}
$menuItems = [
// [
// 'label' => 'This is currently a beta (ß) version',
// 'options' => [
// 'class' => 'info'
// ]
// ],
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/user-home2.png", [
"title" => "Home",
"height" => "30px"
] ),
'url' => Yii::$app->homeUrl
],
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/system-search.png", [
"title" => "Search",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Search form',
'url' => [
'/search/index'
]
],
'
',
[
'label' => 'Browse Tree of Life',
'url' => [
'/search/tree'
]
],
'
',
[
'label' => 'Browse Collections',
'url' => [
'/search/browse'
]
]
],
'url' => [
'/search/index'
],
'linkOptions' => [
"title" => 'Data portal'
]
],
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/kfm.png", [
"title" => "Repositories",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Members',
'url' => [
'/members/index'
]
],
'
',
[
'label' => 'Collection Statistics',
'url' => [
'/stats/index'
]
],
'
',
[
'label' => 'Portal Usage Statistics',
'url' => [
'/usagestats/index'
]
],
'
',
[
'label' => 'Registry',
'url' => 'http://www.ggbn.org/ncd/',
]
]
],
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/knotes.png", [
"title" => "Resources and Docs",
"height" => "30px"
] ),
'items' => [
[
'label' => 'ABS Facts and FAQ ',
'url' => 'http://wiki.ggbn.org/ggbn/ABS_Fact_Sheet_and_Answers_to_Frequently_Asked_Questions',
],
'
',
[
'label' => 'Documents ',
'url' => 'http://wiki.ggbn.org/ggbn/Documents',
],
'
',
[
'label' => 'Publications',
'url' => 'http://wiki.ggbn.org/ggbn/Publications',
],
'
',
[
'label' => 'GGBN Redmine',
'url' =>
'http://tic.bgbm.org/redmine/projects/ggbn'
,
],
'
',
[
'label' => 'GGBN Portal Software Doc',
'url' =>
'http://wiki.bgbm.org/gps/index.php/Main_Page'
,
],
'
',
[
'label' => 'Harvesting Software Doc',
'url' =>
'http://wiki.bgbm.org/bhit/index.php/Main_Page'
,
]
]
],
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/bookmark.png", [
"title" => "Library",
"height" => "30px"
] ),
'items' => [
['label' => 'GGBN Document Library',
'url' => 'https://library.ggbn.org/share/',
]
]
]
,
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/info2.png", [
"title" => "About",
"height" => "30px"
] ),
'items' => [
[
'label' => 'About',
'url' =>
'http://wiki.ggbn.org/ggbn/About_GGBN'
],
'
',
[
'label' => 'Join Us ',
'url' => 'http://wiki.ggbn.org/ggbn/Join_Us',
],
'
',
[
'label' => 'Membership ',
'url' => 'http://wiki.ggbn.org/ggbn/Membership',
],
'
',
[
'label' => 'Terms of Reference',
'url' =>
'http://wiki.ggbn.org/ggbn/Terms_of_reference'
,
],
'
',
[
'label' => 'Governance',
'url' =>
'http://wiki.ggbn.org/ggbn/Governance'
,
],
'
',
[
'label' => 'Members',
'url' => [
'/members/index'
]
,
],
'
',
[
'label' => 'Partners',
'url' =>
'http://wiki.ggbn.org/ggbn/Partners'
,
],
'
',
[
'label' => 'Contact Us',
'url' =>
'http://wiki.ggbn.org/ggbn/Contact_Us'
,
],
'
',
[
'label' => 'Technical Requirements',
'url' => 'http://wiki.ggbn.org/ggbn/IT_requirements',
],
'
',
[
'label' => 'Data Architecture',
'url' =>
'http://wiki.ggbn.org/ggbn/Data_Portal_Architecture'
,
],
'
',
[
'label' => 'DNA Module',
'url' =>
'http://wiki.ggbn.org/ggbn/DNA_Module'
,
],
'
',
[
'label' => 'GGBN Data Standard',
'url' =>
'http://wiki.ggbn.org/ggbn/GGBN_Data_Standard'
,
],
'
',
'
',
[
'label' => 'GGBN Portal API',
'url' =>
'http://www.ggbn.org/ggbn_portal/api/'
,
],
'
',
[
'label' => 'GGBN Portal Sandbox',
'url' =>
'http://sandbox.ggbn.org/ggbn_sandbox/'
,
],
]
],
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/emblem-people.png", [
"title" => "Meetings",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Meetings and Conferences',
'url' =>
'http://meetings.ggbn.org'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'COVID Symposium 2021',
'url' =>
'https://wiki.ggbn.org/ggbn/GGBN_Symposium:_Operating_a_Biobank_During_a_Pandemic,_Facing_Challenges_During_a_Period_of_Heightened_Relevance'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'GGBN 2018',
'url' =>
'https://meetings.ggbn.org/conference/ggbn/2018/'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'GGBN Asian Workshop 2017',
'url' =>
'https://meetings.ggbn.org/conference/ggbn/2017ws-as/'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'GGBN North American Workshop 2017',
'url' =>
'https://meetings.ggbn.org/conference/ggbn/2017ws-na/'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'GGBN 2016',
'url' =>
'https://meetings.ggbn.org/conference/ggbn/2016/'
,
'linkOptions' => array (
'target' => '_blank'
)
],
]
] ,
[
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/butterflyshadow.png", [
"title" => "News and Outreach",
"height" => "30px"
] ),
'items' => [
[
'label' => 'News',
'url' => 'http://wiki.ggbn.org/ggbn/News',
],
'
',
[
'label' => 'Newsletters ',
'url' => 'http://wiki.ggbn.org/ggbn/Newsletters',
],
'
',
[
'label' => 'Testimonials',
'url' => 'http://wiki.ggbn.org/ggbn/Testimonials',
],
'
',
[
'label' => 'Training and tools',
'url' => 'http://wiki.ggbn.org/ggbn/Training_Tools',
],
'
',
[
'label' => 'Outreach',
'url' => 'http://wiki.ggbn.org/ggbn/Outreach',
],
]
],
];
// [
// 'label' => 'Contact',
// 'url' => [
// '/site/contact'
// ]
// ]
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' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/preferences-desktop-user-password.png", [
"title" => "Login",
"height" => "30px"
] ),
'url' => [
'/site/login'
]
];
} else {
if (\Yii::$app->user->can ( 'validateUser' )) {
$menuItems [] = [
'label' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/gnome-keyring-manager.png", [
"title" => "Admin",
"height" => "30px"
] ),
'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' => Html::img ( "".Yii::$app->request->baseUrl."/images/icons/preferences-desktop-user-password.png", [
"title" => "Account",
"height" => "30px"
] ),
'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?>
render("/site/feedback",["model"=>new FeedbackForm()])?>
".Html::img ( "".Yii::$app->request->baseUrl."/images/youtube.png", [
"title" => "GGBN @ YouTube",
"width" => "30px"
] ).""; ?>
".Html::img ( "".Yii::$app->request->baseUrl."/images/Facebook_Logo.png", [
"title" => "Facebook",
"height" => "30px"
] ).""; ?>
".Html::img ( "".Yii::$app->request->baseUrl."/images/LinkedIn-Logo.png", [
"title" => "LinkedIn",
"height" => "30px"
] ).""; ?>
".Html::img ( "".Yii::$app->request->baseUrl."/images/GooglePlus-Logo.png", [
"title" => "Google+",
"height" => "30px"
] ).""; ?>