2011-04-19 00:03:52 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ LANG }}" dir="{{ DIR }}">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
{% if not settings.ENGAGE_ROBOTS %}
|
|
|
|
<meta name="robots" content="noindex">
|
|
|
|
{% endif %}
|
|
|
|
{% block extrameta %}{% endblock %}
|
2012-08-20 19:37:01 +04:00
|
|
|
<title>{% block title %}{% if settings.APP_PREVIEW %}{{ _('Firefox Marketplace') }}{% else %}{{ _('Mozilla Add-ons') }}{% endif %}{% endblock %}</title>
|
2011-04-19 00:03:52 +04:00
|
|
|
|
|
|
|
<link rel="shortcut icon" type="image/x-icon"
|
|
|
|
href="{{ MEDIA_URL}}img/favicon.ico">
|
|
|
|
|
|
|
|
{% block rss_feed %}{% endblock %}
|
|
|
|
|
|
|
|
{# L10n: {0} is an application, like Firefox. #}
|
|
|
|
<link title="{{ _('{0} Add-ons')|f(APP.pretty) }}"
|
|
|
|
rel="search" type="application/opensearchdescription+xml"
|
|
|
|
href="{{ url('amo.opensearch') }}" />
|
|
|
|
|
|
|
|
{% block site_css %}
|
|
|
|
{{ css('zamboni/impala') }}
|
2011-06-30 03:01:41 +04:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="{{ media('js/lib/iepp.min.js') }}"></script>
|
|
|
|
<![endif]-->
|
2012-01-06 23:38:35 +04:00
|
|
|
<!--[if lte IE 9]>
|
|
|
|
<link rel="stylesheet" href="{{ media('css/legacy/ie9.css') }}">
|
|
|
|
<![endif]-->
|
2011-04-19 00:03:52 +04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extrahead %}{% endblock %}
|
2011-06-30 23:57:11 +04:00
|
|
|
<noscript><link rel="stylesheet" href="{{ media('css/impala/nojs.css') }}"></noscript>
|
2011-04-19 00:03:52 +04:00
|
|
|
|
2011-10-19 04:48:45 +04:00
|
|
|
{% include "mobile/head_debug.html" %}
|
2011-04-19 00:03:52 +04:00
|
|
|
|
2011-04-23 01:06:39 +04:00
|
|
|
{% if request.user.is_authenticated() %}
|
|
|
|
<meta name="csrf" content="{{ csrf_token }}">
|
|
|
|
{% endif %}
|
2011-11-30 05:54:45 +04:00
|
|
|
|
|
|
|
{{ js('preload') }}
|
2011-04-19 00:03:52 +04:00
|
|
|
</head>
|
2011-08-27 02:29:10 +04:00
|
|
|
<body class="html-{{ DIR }} {{ request.APP.short }} moz-header-slim {% block bodyclass %}{% endblock %} is-impala"
|
2011-04-19 00:03:52 +04:00
|
|
|
data-app="{{ request.APP.short }}"
|
|
|
|
data-appname="{{ request.APP.pretty }}"
|
|
|
|
data-appid="{{ request.APP.id }}"
|
|
|
|
data-min-beta-version="{{ settings.MIN_BETA_VERSION }}"
|
2012-11-27 23:19:27 +04:00
|
|
|
data-nightly-version="{{ amo.NIGHTLY_VERSION }}"
|
2011-04-19 00:03:52 +04:00
|
|
|
data-anonymous="{{ (not request.user.is_authenticated())|json }}"
|
|
|
|
data-readonly="{{ settings.READ_ONLY|json }}"
|
|
|
|
data-media-url="{{ MEDIA_URL }}"
|
2011-09-23 21:08:33 +04:00
|
|
|
{% if waffle.switch('marketplace') and request.amo_user %}
|
2011-09-23 21:52:29 +04:00
|
|
|
data-purchases="{{ request.amo_user.purchase_ids()|join(",") }}"
|
2011-09-23 21:08:33 +04:00
|
|
|
{% endif %}
|
2012-01-04 04:05:36 +04:00
|
|
|
data-collect-timings="{{ url('amo.timing.record') }}:{{ collect_timings_percent }}"
|
2011-04-19 00:03:52 +04:00
|
|
|
{% block bodyattrs %}{% endblock %}>
|
|
|
|
|
2011-10-26 03:30:19 +04:00
|
|
|
<div id="page" class="c">
|
2011-04-19 00:03:52 +04:00
|
|
|
{% block site_header %}
|
|
|
|
{# Well that's an awful tiny mozilla header #}
|
|
|
|
<div id="global-header-tab">
|
|
|
|
<a href="http://mozilla.org/"><img src="{{ media('img/zamboni/mozilla-tab.png') }}"></a>
|
|
|
|
</div>
|
|
|
|
<div class="amo-header">
|
2011-11-11 02:01:46 +04:00
|
|
|
<nav id="aux-nav" role="navigation" class="menu-nav c">
|
|
|
|
<ul>
|
2011-05-05 02:01:16 +04:00
|
|
|
{% if not settings.READ_ONLY %}
|
|
|
|
{% include "impala/user_login.html" %}
|
|
|
|
{% endif %}
|
|
|
|
{% block aux_nav %}
|
|
|
|
<li>
|
2011-07-28 22:31:27 +04:00
|
|
|
<a href="#" id="other-apps" title="{{ _('Find add-ons for other applications') }}">{{ _('Other Applications') }}</a>
|
2011-07-26 02:51:54 +04:00
|
|
|
<ul class="other-apps">
|
2011-05-05 02:01:16 +04:00
|
|
|
{% for app in amo.APP_USAGE %}
|
2012-12-26 17:41:03 +04:00
|
|
|
{% if app != request.APP and app != amo.MOBILE %}
|
2011-05-05 02:01:16 +04:00
|
|
|
<li id="app-{{ app.short }}" class="{{ app.short }}">
|
|
|
|
<a href="{{ locale_url(app.short) }}">{{ app.pretty }}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endblock aux_nav %}
|
2011-04-19 00:03:52 +04:00
|
|
|
</ul>
|
2011-05-05 02:01:16 +04:00
|
|
|
</nav>
|
2011-04-19 00:03:52 +04:00
|
|
|
<div class="header-search" role="search">
|
|
|
|
{% block search_form %}
|
2011-11-19 01:58:08 +04:00
|
|
|
{# Get this in scope. #}
|
2012-01-05 09:41:14 +04:00
|
|
|
{% with WEBAPPS=WEBAPPS, query_term=query_term %}
|
2011-11-19 01:58:08 +04:00
|
|
|
{% include 'impala/search.html' %}
|
|
|
|
{% endwith %}
|
2011-04-19 00:03:52 +04:00
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
<div id="masthead">
|
|
|
|
{% block site_header_title %}
|
|
|
|
{% include "impala/header_title.html" %}
|
|
|
|
{{ site_nav() }}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
2011-08-25 01:24:29 +04:00
|
|
|
{% if ADMIN_MESSAGE or settings.READ_ONLY %}
|
|
|
|
<div class="site-balloon" id="site-notice">
|
|
|
|
{% if ADMIN_MESSAGE %}
|
|
|
|
<p>{{ ADMIN_MESSAGE|safe }}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if settings.READ_ONLY %}
|
|
|
|
<p>{% trans %}
|
|
|
|
Some features are temporarily disabled while we perform
|
|
|
|
website maintenance. We'll be back to full capacity shortly.
|
|
|
|
{% endtrans %}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2011-10-22 06:25:52 +04:00
|
|
|
{% block amo_balloons %}
|
2011-11-24 10:26:19 +04:00
|
|
|
{% if WEBAPPS %}
|
2011-12-13 13:14:14 +04:00
|
|
|
<div class="site-tip" id="appruntime-pitch">
|
2011-11-17 03:54:23 +04:00
|
|
|
<p>
|
2011-12-13 13:14:14 +04:00
|
|
|
{% with url='https://addons.mozilla.org/en-US/firefox/addon/app-runtime/?src=apps-preview' %}
|
|
|
|
To easily install and manage Apps in Firefox with a
|
|
|
|
tightly integrated experience, check out the experimental
|
|
|
|
<a href="{{ url }}">App Runtime extension</a>.
|
|
|
|
{% endwith %}
|
2011-11-17 03:54:23 +04:00
|
|
|
</p>
|
2011-12-13 13:14:14 +04:00
|
|
|
<a href="#" class="close">{{ _('Close') }}</a>
|
2011-11-17 03:54:23 +04:00
|
|
|
</div>
|
2011-12-02 02:13:34 +04:00
|
|
|
<div class="site-balloon" id="site-nojs-apps">
|
2011-12-02 03:39:48 +04:00
|
|
|
<p>{{ loc('To use Apps, you must enable JavaScript.') }}</p>
|
2011-12-02 02:13:34 +04:00
|
|
|
</div>
|
2011-11-17 03:54:23 +04:00
|
|
|
{% else %}
|
2012-03-29 21:28:18 +04:00
|
|
|
{% if APP == amo.FIREFOX %}
|
|
|
|
<div class="site-balloon" id="site-nonfx">
|
|
|
|
<p>
|
|
|
|
{% trans url='http://mozilla.org/firefox/?src=amo' %}
|
|
|
|
To try the thousands of add-ons available here, download
|
|
|
|
<a href="{{ url }}">Mozilla Firefox</a>,
|
|
|
|
a fast, free way to surf the Web!
|
|
|
|
{% endtrans %}
|
|
|
|
</p>
|
|
|
|
<a href="#" class="close">{{ _('Close') }}</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2011-11-17 03:54:23 +04:00
|
|
|
<div class="site-balloon" id="site-welcome">
|
|
|
|
{# L10n: {0} is an application, such as Firefox. #}
|
|
|
|
<h3>{{ _('Welcome to {0} Add-ons.')|f(APP.pretty) }}</h3>
|
|
|
|
<p>
|
|
|
|
{% if APP == amo.FIREFOX %}
|
|
|
|
{% trans %}
|
|
|
|
Choose from thousands of extra features and styles to make
|
|
|
|
Firefox your own.
|
|
|
|
{% endtrans %}
|
|
|
|
{% else %}
|
|
|
|
{% trans app=APP.pretty %}
|
|
|
|
Add extra features and styles to make {{ app }} your own.
|
|
|
|
{% endtrans %}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
<a href="#" class="close">{{ _('Close') }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="site-balloon" id="mobile-banner">
|
|
|
|
<h3>{{ _('On the go?') }}</h3>
|
|
|
|
<p>
|
|
|
|
{% trans %}
|
|
|
|
Check out our
|
|
|
|
<a class="mobile-link" href="#">Mobile Add-ons site</a>.
|
|
|
|
{% endtrans %}
|
|
|
|
</p>
|
|
|
|
<a href="#" class="close">{{ _('Close') }}</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2011-10-21 00:49:32 +04:00
|
|
|
{% endblock %}
|
2011-04-19 00:03:52 +04:00
|
|
|
</div>
|
|
|
|
{% endblock site_header %}
|
|
|
|
|
|
|
|
{# Overridden in base_side_categories, which expands categories
|
|
|
|
on the side of the page. #}
|
|
|
|
{% block main_content %}
|
|
|
|
{% block navbar %}
|
|
|
|
{% endblock %}
|
|
|
|
{# outer_content is for something you want above content on every page. #}
|
2011-12-02 05:30:19 +04:00
|
|
|
{% block outer_content %}{% include "messages.html" %}{% endblock %}
|
2011-04-19 00:03:52 +04:00
|
|
|
{% block content %}{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
<div id="tooltip">
|
|
|
|
<span></span>
|
|
|
|
</div>
|
|
|
|
<div id="popup-staging">
|
2011-05-28 05:30:41 +04:00
|
|
|
{{ sharing_box() }}
|
|
|
|
<div id="add-to-collection" class="popup">
|
|
|
|
<div class="collection-add-login">
|
|
|
|
<p>{% trans %}
|
|
|
|
To create your own collections, you must have a Mozilla Add-ons account.
|
|
|
|
{% endtrans %}</p>
|
|
|
|
<p class="register-button">
|
|
|
|
<a class="button" href="{{ remora_url('users/register') }}">{{ _('Create an Add-ons Account') }}</a>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{% trans login=login_link() %}
|
|
|
|
or <a href="{{ login }}">log in to your current account</a>
|
|
|
|
{% endtrans %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-04-19 00:03:52 +04:00
|
|
|
{% block popups %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
{% block footer %}
|
|
|
|
<div id="footer" role="contentinfo">
|
|
|
|
<div class="section">
|
|
|
|
{% block footer_extras %}
|
|
|
|
<img class="footerlogo" src="{{ media('img/zamboni/footer-logo-med.png') }}" alt="">
|
|
|
|
{% endblock %}
|
2011-11-20 08:02:48 +04:00
|
|
|
{% with hide_mobile_link=hide_mobile_link %}
|
|
|
|
{% include 'footer.html' %}
|
|
|
|
{% endwith %}
|
2011-04-19 00:03:52 +04:00
|
|
|
</div> {# section #}
|
|
|
|
</div> {# footer #}
|
|
|
|
{% endblock %}
|
2011-10-27 03:06:06 +04:00
|
|
|
<div id="get-satisfaction"></div>
|
2011-10-26 03:30:19 +04:00
|
|
|
{# js #}
|
|
|
|
{% block site_js %}
|
|
|
|
<script src="{{ static(url('jsi18n')) }}"></script>
|
2011-11-16 23:44:15 +04:00
|
|
|
{% if settings.APP_PREVIEW %}
|
|
|
|
<script src="https://myapps.mozillalabs.com/jsapi/include.js"></script>
|
|
|
|
{% endif %}
|
2011-11-22 23:44:49 +04:00
|
|
|
{% if waffle.switch('browserid-login') %}
|
2012-11-15 00:20:50 +04:00
|
|
|
<script async defer src="{{ settings.BROWSERID_JS_URL }}"></script>
|
2011-11-22 23:44:49 +04:00
|
|
|
{% endif %}
|
2011-10-26 03:30:19 +04:00
|
|
|
{{ js('impala') }}
|
|
|
|
<script async defer src="{{ static(url('addons.buttons.js')) }}"></script>
|
|
|
|
<script async defer src="{{ settings.PAYPAL_JS_URL }}"></script>
|
|
|
|
{% endblock %}
|
|
|
|
{% block js %}{% endblock %}
|
2011-11-24 04:13:10 +04:00
|
|
|
{% block js_extras %}{% endblock %}
|
2011-04-19 00:03:52 +04:00
|
|
|
</body>
|
|
|
|
</html>
|