beginPage()?> params['useLogin'] && ( in_array ( Yii::$app->request->userIP, Yii::$app->params ['authorizedIPs'] ) || in_array("all", Yii::$app->params['authorizedIPs'] )) && !Yii::$app->user->isGuest) { echo " "; } ?> <?= Html::encode($this->title) ?> head()?> beginBody()?>
homeUrl || strpos ( BaseUrl::current (), 'site/index' )) { NavBar::begin ( [ 'brandLabel' => '"World Flora Online Specimens', // 'brandUrl' => Yii::$app->homeUrl, 'brandUrl' => 'http://www.worldfloraonline.org/', 'options' => [ // 'class' => 'navbar-inverse navbar-fixed-top' , 'encodeLabels' => true ] ] ); } else { NavBar::begin ( [ 'brandLabel' => 'World Flora Online Specimens', // 'brandUrl' => Yii::$app->homeUrl, 'brandUrl' => 'http://www.worldfloraonline.org/', 'options' => [ // 'class' => 'navbar-inverse navbar-fixed-top' , 'encodeLabels' => true ] ] ); } $menuItems = [ [ 'label' => 'This is currently a beta (ß) version', 'options'=>['class'=>'info'], ], [ 'label' => 'Home', 'url' => Yii::$app->homeUrl ], [ 'label' => 'Search', 'url' => ['/search/index'] // 'items' => [ // ['label' => 'Search form', 'url' => ['/search/index']], // // '
  • ', // // ['label' => 'Browse (ß)', 'url' => ['/search/browse']], // ], // 'url' => [ // '/search/index' // ], // 'linkOptions' => [ // "title" => 'Data portal' // ] ], // [ // 'label' => 'Repositories', // 'items' => [ // ['label' => 'Registry', 'url' => 'http://registry.ggbn.org/','linkOptions' => array( // 'target' => '_blank' // ),], // '
  • ', // ['label' => 'Statistics (ß)', 'url' => ['/stats/index']], // ], // ], // [ // 'label' => 'Library', // 'url' => 'http://library.ggbn.org/', // 'linkOptions' => array( // 'target' => '_blank' // ), // ], [ 'label' => 'About', 'url' => [ '/site/about' ], ], // [ // 'label' => 'Meetings', // 'url' => 'http://meetings.ggbn.org', // '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' => 'Login', 'url' => [ '/site/login' ] ]; } else { if(\Yii::$app->user->can('validateUser')){ $menuItems [] = [ 'label' => 'Admin', 'items'=>[ ['label' => 'Validation', 'url' => ['/validation/validation?token'],'linkOptions' => ['data-method' => 'post']], '
  • ', ['label' => 'User profiles', 'url' =>['/account/admin']], '
  • ', ['label' => 'New Institution', 'url' =>['/validation/new']], '
  • ', ['label' => 'New Contact', 'url' =>['/validation/contactperson']] ] ]; } $menuItems [] = [ 'label' => 'Account (Cart)', 'items' => [ ['label' => 'Profile', 'url' => ['/account/profile']], '
  • ', ['label' => 'Settings', 'url' => ['/account/settings']], '
  • ', ['label' => 'Searches', 'url' => ['/account/searches']], '
  • ', ['label' => 'Shopping Cart', 'url' => ['/cart/cart']], '
  • ', ['label' => 'Recent orders', 'url' => ['/account/orders']], '
  • ', ['label' => 'Logout', 'url' => ['/site/logout'],'linkOptions' => [ 'data-method' => 'post' ]] ], ]; } } echo Nav::widget ( [ 'options' => [ 'class' => 'navbar-nav navbar-right' ], 'items' => $menuItems ] ); NavBar::end (); ?> isset ( $this->params ['breadcrumbs'] ) ? $this->params ['breadcrumbs'] : [ ] ] )?> render("/site/feedback",["model"=>new FeedbackForm(), "current"=>Yii::$app->request->url])?> endBody()?>
    endPage()?>