<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> 
<html class="no-js"> <!--<![endif]-->
    <head>
        <title><?php echo $template['title'] ?></title>
        <!-- meta -->
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta http-equiv="refresh" content="900">
        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
        <script>if (typeof module === 'object') { window.module = module; module = undefined;}</script>
        <?php echo $template['metadata'] ?>
        <?php if (!detectDevice()): ?>
            <link rel="stylesheet" href="<?php echo ASSETS_PUBLIC_PATH ?>plugins/revolution-slider/rs-plugin/css/settings.min.css" type="text/css" media="screen">
        <?php endif; ?>

        <?php if (isset($_SERVER['HTTPS']) || ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')): ?>
            <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Kreon:300,400,700'>
        <?php else: ?>
            <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Kreon:300,400,700'>
        <?php endif; ?>

    </head>
    <body data-spy="scroll" data-target="#navbar" data-offset="120" >
        <?php echo $template['partials']['header'] ?>
        <?php echo $template['body'] ?>
        <?php echo $template['partials']['footer'] ?>
        <?php if (!detectDevice()): ?>
            <script type="text/javascript" src="<?php echo ASSETS_PUBLIC_PATH ?>plugins/revolution-slider/rs-plugin/js/jquery.themepunch.tools.min.js"></script>
            <script type="text/javascript" src="<?php echo ASSETS_PUBLIC_PATH ?>plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
            <script type="text/javascript" src="<?php echo ASSETS_PUBLIC_PATH ?>plugins/revolution-slider/rs-plugin/js/revolution-slider.js"></script>
        <?php endif; ?>
        <script>if (window.module) module = window.module;</script>     
    </body>
</html>