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->params['siteName']."/images/icons/user-home2.png", [
"title" => "Home",
"height" => "30px"
] ),
'url' => Yii::$app->homeUrl
],
[
'label' => Html::img ( "/".Yii::$app->params['siteName']."/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->params['siteName']."/images/icons/kfm.png", [
"title" => "Repositories",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Members',
'url' => [
'/members/index'
]
],
'
',
[
'label' => 'Statistics',
'url' => [
'/stats/index'
]
]
]
],
[
'label' => Html::img ( "/".Yii::$app->params['siteName']."/images/icons/knotes.png", [
"title" => "Resources",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Downloads ',
'url' => 'http://wiki.ggbn.org/ggbn/Downloads',
],
'
',
[
'label' => 'Publications',
'url' => 'http://wiki.ggbn.org/ggbn/Publications',
]
]
],
[
'label' => Html::img ( "/".Yii::$app->params['siteName']."/images/icons/bookmark.png", [
"title" => "Library",
"height" => "30px"
] ),
'items' => [
['label' => 'Library',
'url' => 'http://wiki.ggbn.org/ggbn/Library',
]
]
]
,
[
'label' => Html::img ( "/".Yii::$app->params['siteName']."/images/icons/info2.png", [
"title" => "About",
"height" => "30px"
] ),
'items' => [
[
'label' => 'About',
'url' =>
'http://wiki.ggbn.org/ggbn/About_GGBN'
],
'
',
[
'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' => 'Data Architecture',
'url' =>
'http://wiki.ggbn.org/ggbn/Data_flow'
,
],
'
',
[
'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' => Html::img ( "/".Yii::$app->params['siteName']."/images/icons/emblem-people.png", [
"title" => "Meetings",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Meetings and Conferences',
'url' =>
'http://meetings.ggbn.org'
,
'linkOptions' => array (
'target' => '_blank'
)
],
'
',
[
'label' => 'GGBN 2016',
'url' =>
'https://meetings.ggbn.org/conference/ggbn/2016/'
,
'linkOptions' => array (
'target' => '_blank'
)
],
]
] ,
[
'label' => Html::img ( "/".Yii::$app->params['siteName']."/images/icons/butterflyshadow.png", [
"title" => "Join us",
"height" => "30px"
] ),
'items' => [
[
'label' => 'Join Us ',
'url' => 'http://wiki.ggbn.org/ggbn/Join_Us',
],
'
',
[
'label' => 'Membership ',
'url' => 'http://wiki.ggbn.org/ggbn/Membership',
],
'
',
[
'label' => 'Technical Requirements',
'url' => 'http://wiki.ggbn.org/ggbn/IT_requirements',
],
'
',
[
'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'] ) || in_array("all", Yii::$app->params['authorizedIPs'] ))) {
if (Yii::$app->user->isGuest) {
$menuItems [] = [
'label' => Html::img ( "/".Yii::$app->params['siteName']."/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->params['siteName']."/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'
]
],
]
];
}
$menuItems [] = [
'label' => Html::img ( "/".Yii::$app->params['siteName']."/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()?>