<?php
header('Content-Type: text/html; charset=UTF-8');
?><!DOCTYPE html>
<html>
<head>
<title><?php echo (isset($title) ? $title . ' » ' : '')?><?php echo $_SERVER['HTTP_HOST']?></title>
<meta name="robots" content="noindex, nofollow" />
<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" />
<meta name="format-detection" content="telephone=no" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/united/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->url->getStatic('assets/css/custom.css')?>" />
<?php $this->assets->outputCss()?>
<?php if (APPLICATION_ENV == 'production') { ?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '<?php echo $this->config->ga->trackingId?>', 'auto');
ga('send', 'pageview');
</script>
<?php } ?>
</head>
<body class="login-page">
<div class="container">
    <?php echo $this->getContent()?>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=en"></script>
<script type="text/javascript">
$(function() {
    $(':submit').each(function(i, e) {
        var btn = $(e);
        btn.closest('form').submit(function() {
            setTimeout(function() {
                btn.prop('disabled', true);
            }, 100);
        });
    });
});
</script>
</body>
</html>