100 строки
3.6 KiB
HTML
100 строки
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ LANG }}" dir="{{ DIR }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, maximum-scale=1">
|
|
|
|
<title>{% block title %}{{ loc('Apps Developer Preview') if settings.APP_PREVIEW else loc('Mozilla Apps') }}{% endblock %}</title>
|
|
|
|
{% block rss_feed %}{% endblock %}
|
|
|
|
<link title="{{ loc('Apps') }}" href="{{ url('amo.opensearch') }}"
|
|
rel="search" type="application/opensearchdescription+xml">
|
|
|
|
{% block site_css %}
|
|
{{ css('zamboni/mobile') }}
|
|
{% endblock %}
|
|
|
|
{% include "mobile/head_debug.html" %}
|
|
|
|
{% block extrahead %}{% endblock %}
|
|
</head>
|
|
<body class="html-{{ DIR }} {{ request.APP.short }} lang-{{ LANG }} {% block bodyclass %}{% endblock %}"
|
|
data-app="{{ request.APP.short }}"
|
|
data-appname="{{ request.APP.pretty }}"
|
|
data-appid="{{ request.APP.id }}"
|
|
data-min-beta-version="{{ settings.MIN_BETA_VERSION }}"
|
|
data-anonymous="{{ (not request.user.is_authenticated())|json }}"
|
|
data-readonly="{{ settings.READ_ONLY|json }}"
|
|
data-media-url="{{ MEDIA_URL }}"
|
|
{% if waffle.switch('marketplace') and request.amo_user %}
|
|
data-purchases="{{ request.amo_user.purchase_ids()|join(',') }}"
|
|
{% endif %}
|
|
{% if request.ALLOWS_PJAX %}
|
|
data-use-pjax="1"
|
|
data-pjax-container="{{ settings.PJAX_SELECTOR }}"
|
|
{% endif %}
|
|
{% block bodyattrs %}{% endblock %}>
|
|
|
|
<div id="page">
|
|
{% block header %}
|
|
<header class="mini-header">
|
|
<hgroup>
|
|
<h1 class="site-title">
|
|
<a href="/" title="{{ _('Return to the Apps homepage') }}">
|
|
{{ _('Apps') }}
|
|
</a>
|
|
</h1>
|
|
</hgroup>
|
|
<nav>
|
|
<ul>
|
|
{% block back_link %}
|
|
<li><a href="/" id="home">
|
|
<svg width="18" height="16"><polygon fill="#447BC4" points="9,0 18,9 15,9 15,16 11,16 11,11 7,11 7,18 3,16 3,9 0,9"/></svg>
|
|
{{ loc('Home') }}</a></li>
|
|
{% endblock %}
|
|
</ul>
|
|
{% block aux_nav %}
|
|
{% include "mobile/header_auth.html" %}
|
|
{% endblock %}
|
|
</nav>
|
|
{% block search %}{% endblock %}
|
|
</header>
|
|
{% endblock %}
|
|
|
|
<section id="content" class="{% block contentclass %}{% endblock %}">
|
|
{% block page %}
|
|
{% endblock page %}
|
|
</section>
|
|
</div>
|
|
<footer id="footer">
|
|
{% if not settings.APP_PREVIEW %}
|
|
{# TODO(apps): When Marketplace is localized, show language switcher. #}
|
|
{% include "includes/lang_switcher.html" %}
|
|
{% endif %}
|
|
{% block footer %}
|
|
<a class="desktop-link" href="#">{{ _('View full site') }}</a>
|
|
<p id="footer-links">
|
|
<a href="http://mozilla.com/privacy-policy.html">{{ _('Privacy Policy') }}</a> |
|
|
<a href="http://mozilla.com/about/legal.html">{{ _('Legal Notices') }}</a>
|
|
</p>
|
|
{% endblock footer %}
|
|
</footer>
|
|
{% block staging %}
|
|
{% endblock %}
|
|
{# js #}
|
|
{% block site_js %}
|
|
<script src="{{ static(url('jsi18n')) }}"></script>
|
|
{% if settings.APP_PREVIEW %}
|
|
<script src="https://myapps.mozillalabs.com/jsapi/include.js"></script>
|
|
{% endif %}
|
|
{% if waffle.switch('browserid-login') %}
|
|
<script async defer src="{{ settings.BROWSERID_JS_URL }}"></script>
|
|
{% endif %}
|
|
{{ js('zamboni/mobile') }}
|
|
{% endblock %}
|
|
{% block js %}{% endblock %}
|
|
<script async defer src="{{ settings.PAYPAL_JS_URL }}"></script>
|
|
</body>
|
|
</html>
|