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 ( "/ggbn_new/images/icons/user-home2.png", [
"title" => "Home",
"height" => "30px"
] ),
'url' => Yii::$app->homeUrl
],
[
'label' => Html::img ( "/ggbn_new/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 ( "/ggbn_new/images/icons/stock_internet.png", [
"title" => "Repositories",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Registry',
'url' => 'http://registry.ggbn.org/',
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Statistics (ß)',
'url' => [
'/stats/index'
]
]
]
],
[
'label' => Html::img ( "/ggbn_new/images/icons/knotes.png", [
"title" => "Resources",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Downloads ',
// 'url' => 'http://library.ggbn.org/',
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Library',
'url' => 'http://library.ggbn.org/',
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Publication',
// 'url' => 'http://library.ggbn.org/',
'linkOptions' => array (
'target' => '_blank'
)
]
]
],
[
'label' => Html::img ( "/ggbn_new/images/icons/info2.png", [
"title" => "About",
"height" => "30px"
] ),
'items' => [
[
'label' => 'About',
'url' => [
'/site/about'
]
],
'
',
[
'label' => 'Terms of Reference',
'url' =>
'http://www.ggbn.org/ggbnOrg.html'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Members',
'url' =>
'http://www.ggbn.org/ggbnCollaborators.html'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Partners',
'url' =>
'http://www.ggbn.org/ggbnBioCollInits.html'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Data architecture',
'url' =>
'http://wiki.bgbm.org/dnabankwiki/index.php/Data_flow'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'DNA Module',
'url' =>
'http://wiki.bgbm.org/dnabankwiki/index.php/DNA_Module'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'GGBN Data Standard',
'url' =>
'http://terms.tdwg.org/wiki/GGBN_Data_Standard'
,
'linkOptions' => array (
'target' => '_blank'
)
],
]
],
[
'label' => Html::img ( "/ggbn_new/images/icons/emblem-people.png", [
"title" => "Meetings",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Upcoming meetings',
'url' =>
'http://meetings.ggbn.org'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Past meetings',
'url' =>
'http://meetings.ggbn.org/past/index'
,
'linkOptions' => array (
'target' => '_blank'
)
],
]
] ,
[
'label' => Html::img ( "/ggbn_new/images/icons/butterflyshadow.png", [
"title" => "Join us",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Membership ',
'url' => 'http://www.ggbn.org/ggbnMembership.html',
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Technical Requirements',
'url' => 'http://wiki.bgbm.org/dnabankwiki/index.php/IT_requirements',
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'LinkedIn Group',
'url' => 'http://www.linkedin.com/groups?gid=5089879',
'linkOptions' => array (
'target' => '_blank'
)
]
]
],
];
// [
// 'label' => 'Contact',
// 'url' => [
// '/site/contact'
// ]
// ]
if (Yii::$app->params ['useLogin'] && in_array ( Yii::$app->request->userIP, Yii::$app->params ['authorizedIPs'] )) {
if (Yii::$app->user->isGuest) {
$menuItems [] = [
'label' => Html::img ( "/ggbn_new/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 ( "/ggbn_new/images/icons/gnome-keyring-manager.png", [
"title" => "Admin",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Validation',
'url' => [
'/validation/validation?token'
],
'linkOptions' => [
'data-method' => 'post'
]
],
'
',
[
'label' => 'User profiles',
'url' => [
'/account/admin'
]
],
'
',
[
'label' => 'Admin panel',
'url' => [
'/validation/adminpanel'
]
]
]
];
}
$menuItems [] = [
'label' => Html::img ( "/ggbn_new/images/icons/preferences-desktop-user-password.png", [
"title" => "Account (Cart)",
"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' => 'Shopping Cart',
'url' => [
'/cart/cart'
] ,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'Recent orders',
'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(), "current"=>Yii::$app->request->url])?>
endBody()?>