<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>StaticPHP Framework</title>

        {% if config.debug %}
            <link href="{{ base_url }}assets/vendor/bootstrap/css/bootstrap.css?{{ css_version }}" rel="stylesheet" type="text/css" />
            <link href="{{ base_url }}assets/base/css/style.css?{{ css_version }}" rel="stylesheet" type="text/css" />
        {% else %}
            <link href="{{ base_url }}assets/vendor/bootstrap/css/bootstrap.min.css?{{ css_version }}" rel="stylesheet" type="text/css" />
            <link href="{{ base_url }}assets/min/css/style.min.css?{{ css_version }}" rel="stylesheet" type="text/css" />
        {% endif %}

        {% block headers %}{% endblock %}
    </head>
    <body role="document">

        <!-- Fixed navbar -->
        <div class="navbar navbar-default navbar-static-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a href="{{ base_url }}" class="navbar-brand">StaticPHP</a>
                </div>
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li{{ method == 'index' ? ' class="active"' }}><a href="{{ base_url }}">Start page</a></li>
                        {% if config['debug'] == true %}
                        <li{{ method == 'help' ? ' class="active"' }}><a href="{{ base_url }}defaults/welcome/help">Help</a></li>
                        {% endif %}
                    </ul>
                </div><!--/.nav-collapse -->
            </div>
        </div>

        <div class="container" role="main">
            {% block content %}{% endblock%}
        </div>

        {% if config.debug %}
            <script src="{{ base_url }}assets/vendor/jquery/jquery.js?{{ js_version }}"></script>
            <script src="{{ base_url }}assets/vendor/bootstrap/js/bootstrap.js?{{ js_version }}"></script>
        {% else %}
            <script src="{{ base_url }}assets/min/js/main.min.js?{{ js_version }}"></script>
        {% endif %}

        {% block scripts %}{% endblock%}

        {% block footer %}
        <footer class="page-footer">StaticPHP 2014</footer>
        {% endblock%}

        {% if config['debug'] %}
        <pre style="margin: 0;"><strong>DEBUG</strong><br />{{ debugOutput()|raw }}</pre>
        {% endif %}
    </body>
</html>