<!DOCTYPE html>

{% block html_attribs %}
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
{% endblock %}
{% block html %}
  <head>
    {% block head %}
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>{% block title %}{{title}}{% endblock %}</title>
    {% block meta %}
    <meta name="viewport" content="width=device-width" /><meta charset="utf-8">
    {% endblock %}
  
    {% block foundation_styles %}
    {% if config['FOUNDATION_USE_MINIFIED'] %}
      <link rel="stylesheet" href="{{ url_for('foundation.static', filename='css/foundation.min.css') }}">
    {% else %}
      <link rel="stylesheet" href="{{ url_for('foundation.static', filename='css/foundation.css') }}">
    {% endif %}

    <link rel="stylesheet" href="{{ url_for('foundation.static', filename='css/app.css') }}">
    {% endblock %}
    
    {% block styles %}
    {% endblock %}

    {% if config['FOUNDATION_USE_CDN'] %}
      <script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
    {% else %}
      <script src="{{ url_for('foundation.static', filename='js/modernizr.foundation.js') }}"></script>
    {% endif %}

    {% if config['FOUNDATION_HTML5_SHIM'] %}
      {% block foundation_html5_shim %}
      <!-- IE Fix for HTML5 Tags -->
      <!--[if lt IE 9]>
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
      <![endif]-->
      {% endblock %}
    {% endif %}

    {% endblock %}
  </head>
  <body>
  {% block body %}
    {% block body_content %}
    {% endblock %}

    {% block foundation_js_bottom %}
    {% if config['FOUNDATION_USE_CDN'] %}
      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.{% if config['FOUNDATION_USE_MINIFIED'] %}min.{% endif %}js"></script>
    {% else %}
      <script src="{{ url_for('foundation.static', filename='js/jquery.js') }}"></script>
    {% endif %}

    {% if config['FOUNDATION_USE_MINIFIED'] %}
      <script src="{{ url_for('foundation.static', filename='js/foundation.min.js') }}"></script>
    {% else %}
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.mediaQueryToggle.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.forms.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.reveal.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.orbit.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.navigation.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.buttons.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.tabs.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.tooltips.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.accordion.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.placeholder.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.alerts.js') }}"></script>
      <script src="{{ url_for('foundation.static', filename='js/jquery.foundation.topbar.js') }}"></script>
    {% endif %}

    <script src="{{ url_for('foundation.static', filename='js/app.js') }}"></script>
    {% endblock %}
    
    {% block scripts %}
    {% endblock %}
  {% endblock %}
  </body>
{% endblock %}
</html>
