<!DOCTYPE html>
<!-- Built on Frappe. https://frappe.io/ -->
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{% block title %} {{ title }} {% endblock %}</title>
	<meta name="generator" content="frappe">
    <link type="text/css" rel="stylesheet" href="/docs/assets/css/bootstrap.css">
    <link type="text/css" rel="stylesheet" href="/docs/assets/css/hljs.css">
    <link type="text/css" rel="stylesheet" href="/docs/assets/css/font-awesome.css">
    <link type="text/css" rel="stylesheet" href="/docs/assets/css/octicons/octicons.css">
    <link type="text/css" rel="stylesheet" href="/docs/assets/css/docs.css">

    {% block favicon %}
	<link rel="shortcut icon"
		href="{{ favicon or (docs_base_url + "/assets/img/favicon.png") }}"
		type="image/x-icon">
	<link rel="icon"
		href="{{ favicon or (docs_base_url + "/assets/img/favicon.png") }}"
		type="image/x-icon">
    {% endblock %}

	{%- block head -%}
		{% if meta_block is defined -%}
		{{ meta_block }}
		{%- endif %}

		{% if head_html is defined -%}
		{{ head_html or "" }}
		{%- endif %}

	    {%- block head_include %}{{ head_include or "" }}{% endblock -%}

		{%- block style %}{%- endblock -%}
	{%- endblock -%}
</head>
<body data-path="{{ path }}">
	<div class="main-section">
		<div>
			{%- block banner -%}
			{% include "templates/includes/banner_extension.html" ignore missing %}
				{% if banner_html -%}
				<header class="container">{{ banner_html or "" }}</header>
				{%- endif %}
			{%- endblock -%}

			{%- block navbar -%}
                {% include "templates/includes/navbar/navbar.html" %}
            {%- endblock -%}
            <div class="hero-and-content">
                <div data-html-block="hero">
				{%- block hero -%}{%- endblock -%}
                </div>
                <div class="container" data-html-block="content">
                {% block content %}{% endblock %}
				<!-- edit-link -->
                </div>
            </div>
			<footer class="docs-footer">
				<div class="container">
				{%- if footer is defined -%}{{ footer }}{%- endif -%}

                <div class="built-with-frappe text-center">
                    <img class="frappe-bird" src="/docs/assets/img/frappe-bird-grey.svg">
                    <h3>By {{ app.publisher }}</h3>
                </div>
                <div class="text-center">
                    <ul class="list-unstyled">
                        <li>
                            <a href="{{ app.source_link }}">
                            Source</a>
                        </li>
                        <li>
                            <a href="{{ app.source_link }}/issues">
                            Issues</a>
                        </li>
                        <li>
                            <a href="/docs/license.html">
                            License</a>
                        </li>
                        <li>
                            <a href="https://discuss.erpnext.com">
                            Forum</a>
                        </li>
                        <li>
                            <a href="https://community.erpnext.com/apps">
                            Frappe Apps</a>
                        </li>
                    </ul>
                </div>

            </div>
			</footer>
		</div>
	</div>

	<script type="text/javascript" src="/docs/assets/js/jquery.min.js"></script>
	<script type="text/javascript" src="/docs/assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/docs/assets/js/highlight.pack.js"></script>
	<script type="text/javascript" src="/docs/assets/js/docs.js"></script>

	<!-- js should be loaded in body! -->
	<script>
        window.docs_base_url = "/docs";
    </script>
	{%- block script %}{%- endblock %}

	{% if app.google_analytics_id %}
	<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', '{{ app.google_analytics_id }}', 'auto');
	  ga('send', 'pageview');

	</script>
	{% endif %}
	<!-- csrf_token -->
    {%- block body_include %}{{ body_include or "" }}{% endblock -%}
</body>
</html>
