{% extends inReportingMenu ? "empty.twig" : "admin.twig" %}

{% set title %}{{ 'Marketplace_Marketplace'|translate }}{% endset %}

{% block content %}

    <div class="marketplace">
        <div
            vue-entry="Marketplace.OverviewIntro"
            current-user-email="{{ currentUserEmail|default(false)|json_encode }}"
            in-reporting-menu="{{ inReportingMenu|default(false)|json_encode }}"
            is-valid-consumer="{{ isValidConsumer|default(false)|json_encode }}"
            is-super-user="{{ isSuperUser|default(false)|json_encode }}"
            is-auto-update-possible="{{ isAutoUpdatePossible|default(false)|json_encode }}"
            is-multi-server-environment="{{ isMultiServerEnvironment|default(false)|json_encode }}"
            is-plugins-admin-enabled="{{ isPluginsAdminEnabled|default(false)|json_encode }}"
            has-some-admin-access="{{  hasSomeAdminAccess|default(false)|json_encode }}"
            install-nonce="{{ installNonce|default(null)|json_encode }}"
            activate-nonce="{{ activateNonce|default(null)|json_encode }}"
            deactivate-nonce="{{ deactivateNonce|default(null)|json_encode }}"
            update-nonce="{{ updateNonce|default(null)|json_encode }}"
            is-plugin-upload-enabled="{{ isPluginUploadEnabled|default(null)|json_encode }}"
            upload-limit="{{ uploadLimit|default(null)|json_encode }}"
            plugin-type-options="{{ pluginTypeOptions|json_encode }}"
            default-sort="{{ defaultSort|json_encode }}"
            plugin-sort-options="{{ pluginSortOptions|json_encode }}"
            num-users="{{ numUsers|json_encode }}"
        ></div>

        <div class="footer-message center">
            {{ 'Marketplace_DevelopersLearnHowToDevelopPlugins'|translate(externallink('https://developer.matomo.org/develop'), '</a>')|raw }}
            <br />
            <br />
            <br />
            <a rel="noreferrer noopener" href="{{ 'https://shop.matomo.org/faq/'|trackmatomolink }}" target="_blank">FAQ</a> |
            <a rel="noreferrer noopener" href="{{ 'https://shop.matomo.org/terms-conditions/'|trackmatomolink }}" target="_blank">Terms</a> |
            <a rel="noreferrer noopener" href="{{ 'https://matomo.org/privacy-policy/'|trackmatomolink }}" target="_blank">Privacy</a> |
            <a rel="noreferrer noopener" href="{{ 'https://matomo.org/contact/'|trackmatomolink }}" target="_blank">Contact</a>
        </div>

    </div>

{% endblock %}
