kopia lustrzana https://github.com/magicbug/Cloudlog
[OQRS] Changed to visitor header
rodzic
457206f31a
commit
c6aaf97c8a
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Ładowanie…
Reference in New Issue