[OQRS] Changed to visitor header

pull/1886/head
Andreas 2022-12-31 00:01:34 +01:00
rodzic 457206f31a
commit c6aaf97c8a
2 zmienionych plików z 18 dodań i 10 usunięć

Wyświetl plik

@ -22,7 +22,7 @@ class Oqrs extends CI_Controller {
$data['stations'] = $this->oqrs_model->get_oqrs_stations();
$data['page_title'] = "Log Search & OQRS";
$this->load->view('interface_assets/header', $data);
$this->load->view('visitor/layout/header', $data);
$this->load->view('oqrs/index');
$this->load->view('interface_assets/footer');
}

Wyświetl plik

@ -39,24 +39,32 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light main-nav">
<div class="container">
<a class="navbar-brand" href="<?php echo site_url('visitor/'.$slug);?>">Cloudlog</a> <?php if(ENVIRONMENT == "development") { ?><span class="badge badge-danger">Developer Mode</span><?php } ?>
<?php
if (!empty($slug)) {
echo '<a class="navbar-brand" href="' . site_url('visitor/'.$slug) .'">Cloudlog</a>';
} else {
echo '<a class="navbar-brand" href="' . site_url() .'">Cloudlog</a>';
}
?>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<?php
if (!empty($slug)) { ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo site_url('visitor/satellites/'.$slug);?>">Gridsquares</a>
</li>
<?php
$this->CI =& get_instance();
if ($this->CI->oqrs_enabled($slug)) {
?>
<li class="nav-item">
<a class="nav-link" href="<?php echo site_url('oqrs');?>">OQRS</a>
</li>
<?php } ?>
$this->CI =& get_instance();
if ($this->CI->oqrs_enabled($slug)) {
?>
<li class="nav-item">
<a class="nav-link" href="<?php echo site_url('oqrs');?>">OQRS</a>
</li>
<?php }
}?>
<li class="nav-item">
<a class="btn btn-outline-primary" href="<?php echo site_url('user/login');?>">Login</a>
</li>