2013-04-25 00:22:36 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2014-08-22 06:50:01 +00:00
|
|
|
<title><?php echo Site::Appname(); ?></title>
|
2013-04-25 00:22:36 +00:00
|
|
|
<link rel="shortcut icon" href="<?php echo $meta->shortcut_icon ? $meta->shortcut_icon : '/favicon.ico' ?>" type="image/vnd.microsoft.icon" />
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<meta http-equiv="Content-Language" content="<?php echo $meta->language; ?>" />
|
|
|
|
|
|
|
|
<meta name="keywords" content="<?php echo $meta->keywords; ?>" />
|
|
|
|
<meta name="description" content="<?php echo $meta->description; ?>" />
|
|
|
|
<meta name="copyright" content="<?php echo Config::copywrite(); ?>" />
|
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
|
|
|
<?php
|
2013-05-14 13:55:30 +00:00
|
|
|
if (Kohana::$environment >= Kohana::TESTING OR Request::current()->secure()) {
|
2013-04-25 00:22:36 +00:00
|
|
|
echo HTML::style('media/theme/bootstrap/css/bootstrap.min.css');
|
|
|
|
echo HTML::style('media/vendor/font-awesome/css/font-awesome.min.css');
|
|
|
|
} else {
|
2014-09-08 13:42:05 +00:00
|
|
|
echo HTML::style(Site::Protocol('maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'));
|
|
|
|
echo HTML::style(Site::Protocol('maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'));
|
2013-04-25 00:22:36 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 06:50:01 +00:00
|
|
|
echo HTML::style(Site::Protocol('fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,800italic,400,600,800'));
|
2014-09-08 13:42:05 +00:00
|
|
|
echo HTML::style('media/theme/baseadmin/css/base-admin-3.css');
|
|
|
|
echo HTML::style('media/theme/baseadmin/css/base-admin-3-responsive.css');
|
2013-04-25 00:22:36 +00:00
|
|
|
echo HTML::style('media/theme/baseadmin/css/custom.css');
|
|
|
|
echo Style::factory()->render_all();
|
|
|
|
?>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<?php if (! empty($shownavbar)) : ?>
|
2014-09-08 13:42:05 +00:00
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
|
|
<div class="container">
|
2013-04-25 00:22:36 +00:00
|
|
|
|
2014-09-08 13:42:05 +00:00
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-top-collapse">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<i class="fa fa-cog"></i>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="<?php echo URL::site(); ?>"><?php echo Site::Appname(); ?></a>
|
|
|
|
</div> <!-- /navbar-header -->
|
2013-04-25 00:22:36 +00:00
|
|
|
|
2014-09-08 13:42:05 +00:00
|
|
|
<div class="collapse navbar-collapse navbar-top-collapse">
|
|
|
|
<?php echo $navbar; ?>
|
2013-04-25 00:22:36 +00:00
|
|
|
|
2014-09-08 13:42:05 +00:00
|
|
|
<?php if (class_exists('Controller_Search')) : ?>
|
|
|
|
<form class="navbar-form navbar-right" role="search">
|
|
|
|
<div class="navbar-search-addon form-group">
|
|
|
|
<i class="fa fa-search"></i>
|
|
|
|
<input type="text" class="form-control input-sm search-query" placeholder="Search">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<?php endif ?>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
</div> <!-- /.container -->
|
|
|
|
</nav>
|
2013-04-25 00:22:36 +00:00
|
|
|
|
|
|
|
<div class="subnavbar">
|
|
|
|
<div class="subnavbar-inner">
|
|
|
|
<div class="container">
|
2014-09-08 13:42:05 +00:00
|
|
|
<a href="javascript:;" class="subnav-toggle" data-toggle="collapse" data-target=".subnav-collapse"><span class="sr-only">Toggle navigation</span><i class="fa fa-reorder"></i></a>
|
2013-04-25 00:22:36 +00:00
|
|
|
|
2014-09-08 13:42:05 +00:00
|
|
|
<div class="collapse subnav-collapse">
|
2013-04-25 00:22:36 +00:00
|
|
|
<ul class="mainnav">
|
2014-09-08 13:42:05 +00:00
|
|
|
<li><a href="<?php echo array_key_exists('auth',Kohana::modules()) ? URL::link('user','welcome',TRUE) : URL::site('welcome'); ?>"><i class="fa fa-home"></i><span>Home</span></a></li>
|
|
|
|
|
|
|
|
<?php if (array_key_exists('auth',Kohana::modules()) AND ($ao = Auth::instance()->get_user()) AND $ao->isAdmin()) : ?>
|
|
|
|
<li><a href="<?php echo URL::link('admin','welcome',TRUE); ?>"><i class="fa fa-tasks"></i><span>Admin</span></a></li>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php foreach (Menu::mainnav() as $name => $attributes) : ?>
|
|
|
|
<li><a href="<?php echo Arr::get($attributes,'url'); ?>"><i class="fa <?php echo Arr::get($attributes,'icon','fa-asterisk'); ?>"></i><span><?php echo $name; ?></span></a></li>
|
|
|
|
<?php endforeach ?>
|
2013-04-25 00:22:36 +00:00
|
|
|
</ul>
|
|
|
|
</div> <!-- /.subnav-collapse -->
|
|
|
|
</div> <!-- /container -->
|
|
|
|
</div> <!-- /subnavbar-inner -->
|
|
|
|
</div> <!-- /subnavbar -->
|
2014-09-08 13:42:05 +00:00
|
|
|
<?php endif ?>
|
2013-04-25 00:22:36 +00:00
|
|
|
|
|
|
|
<div class="error_container">
|
|
|
|
<div class="error_details">
|
|
|
|
<div class="row">
|
2014-09-08 13:42:05 +00:00
|
|
|
<div class="col-md-8 col-md-offset-2">
|
2013-04-25 00:22:36 +00:00
|
|
|
<?php echo SystemMessage::factory()->render_all(); ?>
|
|
|
|
</div>
|
|
|
|
</div> <!-- /row -->
|
|
|
|
</div> <!-- /error_details -->
|
|
|
|
</div> <!-- /error_container -->
|
|
|
|
|
|
|
|
<div class="main">
|
|
|
|
<div class="container">
|
2013-05-28 11:40:44 +00:00
|
|
|
<div class="row">
|
2013-04-25 00:22:36 +00:00
|
|
|
<?php echo $content; ?>
|
2013-05-28 11:40:44 +00:00
|
|
|
</div> <!-- /row -->
|
2013-04-25 00:22:36 +00:00
|
|
|
</div> <!-- /container -->
|
|
|
|
</div> <!-- /main -->
|
|
|
|
|
2014-09-08 13:42:05 +00:00
|
|
|
<!--
|
|
|
|
<div class="extra">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<h4>About</h4>
|
|
|
|
<ul>
|
|
|
|
<li><a href="javascript:;">About Us</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<div class="footer">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div id="footer-copyright" class="col-md-6"><?php echo Config::Copywrite(TRUE); ?>. </div>
|
|
|
|
|
|
|
|
<div id="footer-terms" class="col-md-6">
|
|
|
|
All rights reserved
|
|
|
|
</div> <!-- /.span6 -->
|
|
|
|
</div> <!-- /row -->
|
|
|
|
</div> <!-- /container -->
|
|
|
|
</div> <!-- /footer -->
|
|
|
|
|
2013-04-25 00:22:36 +00:00
|
|
|
<?php
|
2013-05-14 13:55:30 +00:00
|
|
|
if (Kohana::$environment >= Kohana::TESTING OR Request::current()->secure()) {
|
2013-04-25 00:22:36 +00:00
|
|
|
echo HTML::script('media/js/jquery/jquery-1.9.1.min.js');
|
|
|
|
echo HTML::script('media/theme/bootstrap/js/bootstrap.min.js');
|
2013-05-08 09:42:55 +00:00
|
|
|
echo HTML::script('media/js/lodash/lodash-1.2.1.min.js');
|
2013-04-25 00:22:36 +00:00
|
|
|
} else {
|
2014-08-22 06:50:01 +00:00
|
|
|
echo HTML::script(Site::Protocol('code.jquery.com/jquery-1.9.1.min.js'));
|
2014-09-08 13:42:05 +00:00
|
|
|
echo HTML::script(Site::Protocol('maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'));
|
2014-08-22 06:50:01 +00:00
|
|
|
echo HTML::script(Site::Protocol('cdnjs.cloudflare.com/ajax/libs/lodash.js/1.2.1/lodash.min.js'));
|
2013-04-25 00:22:36 +00:00
|
|
|
}
|
|
|
|
|
2014-09-29 04:47:51 +00:00
|
|
|
echo HTML::script('media/theme/bootstrap/js/bootstrap.validator.js');
|
2013-05-08 09:42:55 +00:00
|
|
|
echo HTML::script('media/theme/baseadmin/js/backtotop.js');
|
2014-09-08 13:42:05 +00:00
|
|
|
echo HTML::script('media/js/typeahead.bundle.min.js');
|
2013-05-08 09:42:55 +00:00
|
|
|
echo HTML::script('media/js/search.js');
|
|
|
|
echo HTML::script('media/js/custom.js');
|
2013-04-25 00:22:36 +00:00
|
|
|
echo Script::factory()->render_all();
|
|
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|