diff options
author | Markus Cisler <m@kuchen.io> | 2013-09-05 18:40:06 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-09-22 16:30:56 +0200 |
commit | 36a1bb6770cb76ec7baf4e215c4379b070c60639 (patch) | |
tree | 9e8ec3bf58b1e9bd4b349a75cb2e5e369d406421 /application/views/header.php | |
parent | 3ec93bf546c4cfff82f1fb34eeae1f18319c59c1 (diff) |
almost migrated to bootstrap3
Diffstat (limited to 'application/views/header.php')
-rw-r--r-- | application/views/header.php | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/application/views/header.php b/application/views/header.php index ba6d6ae9d..c1844d674 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -14,7 +14,7 @@ if (is_cli_client() && !isset($force_full_html)) { <meta name="author" content=""> <link href="<?php echo link_with_mtime("/data/css/ui-lightness/jquery-ui-1.10.3.custom.min.css"); ?>" rel="stylesheet"> - <link href="<?php echo link_with_mtime("/data/css/bootstrap-2.3.2.min.css"); ?>" rel="stylesheet"> + <link href="<?php echo link_with_mtime("/data/css/bootstrap.min.css"); ?>" rel="stylesheet"> <link href="<?php echo link_with_mtime("/data/css/style.css"); ?>" rel="stylesheet"> <?php if (file_exists(FCPATH."data/local/style.css")) { @@ -33,9 +33,15 @@ if (is_cli_client() && !isset($force_full_html)) { include FCPATH."data/local/header.inc.php"; }?> <div class="navbar navbar-fixed-top navbar-inverse"> - <div class="navbar-inner"> + <div class="navbar-header"> <div class="container"> - <a class="brand" href="<?php echo site_url(); ?>"><?php + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="<?php echo site_url(); ?>"><?php if (file_exists(FCPATH."data/local/logo.svg")) { echo '<img src="'.link_with_mtime("/data/local/logo.svg").'" style="height: 20px"> FileBin'; } else { @@ -43,34 +49,37 @@ if (is_cli_client() && !isset($force_full_html)) { } ?> </a> + </div> + </div> <?php if(!isset($GLOBALS["is_error_page"])) { ?> - <ul class="nav pull-right"> + <div class="collapse navbar-collapse navbar-ex1-collapse"> + <ul class="nav navbar-nav navbar-right"> <?php if(user_logged_in()) { ?> - <li><a href="<?php echo site_url("/user/logout"); ?>">Logout</a></li> + <li><a class="navbar-link" href="<?php echo site_url("/user/logout"); ?>">Logout</a></li> <?php } else { ?> <li class="dropdown"> <a class="dropdown-toggle" href="#" data-toggle="dropdown">Login <b class="caret"></b></a> - <div class="dropdown-menu" style="padding: 15px;"> + <div class="dropdown-menu" style="padding: 5px;"> <?php if(auth_driver_function_implemented("can_reset_password")) { ?> <p><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p> <?php } ?> - <?php echo form_open("user/login"); ?> - <input type="text" name="username" placeholder="Username" class="input-medium"> - <input type="password" name="password" placeholder="Password" class="input-medium"> - <button type="submit" name="process" class="btn btn-primary pull-right">Login</button> + <?php echo form_open("user/login", array("class" => "form-signin")); ?> + <input type="text" name="username" placeholder="Username" class="form-control"> + <input type="password" name="password" placeholder="Password" class="form-control"> + <button type="submit" name="process" class="btn btn-default btn-block">Login</button> </form> </div> </li> <?php } ?> </ul> <?php }; ?> - <ul class="nav"> + <ul class="nav navbar-nav"> <?php if(user_logged_in()) { ?> - <li><a href="<?php echo site_url("file/index") ?>"><i class="icon-pencil icon-white"></i> New</a></li> - <li><a href="<?php echo site_url("file/upload_history") ?>"><i class="icon-book icon-white"></i> History</a></li> + <li><a href="<?php echo site_url("file/index") ?>"><span class="glyphicon glyphicon-pencil"></span> New</a></li> + <li><a href="<?php echo site_url("file/upload_history") ?>"><span class="glyphicon glyphicon-book"></span> History</a></li> <li class="dropdown"> <a href="<?php echo site_url("user/index"); ?>" class="dropdown-toggle" data-toggle="dropdown"> - <i class="icon-user icon-white"></i> Account <b class="caret"></b> + <span class="glyphicon glyphicon-user"></span> Account <b class="caret"></b> </a> <ul class="dropdown-menu"> <?php include "user/nav.php"; ?> @@ -78,7 +87,6 @@ if (is_cli_client() && !isset($force_full_html)) { </li> <?php } ?> </ul> - </div> </div> </div> <div id="navbar-height"></div> @@ -87,7 +95,7 @@ if (is_cli_client() && !isset($force_full_html)) { <?php if (isset($alerts)) { foreach ($alerts as $alert) { ?> - <div class="alert alert-block alert-<?php echo $alert["type"]; ?>" style="text-align: center"> + <div class="alert alert-dismissable alert-<?php echo $alert["type"]; ?>" style="text-align: center"> <button type="button" class="close" data-dismiss="alert">×</button> <?php echo $alert["message"]; ?> </div> |