1
2{% extends 'admin.twig' %}
3
4{% import '@CorePluginsAdmin/macros.twig' as plugins %}
5
6{% set title %}{{ 'CorePluginsAdmin_PluginsManagement'|translate }}{% endset %}
7
8{% block content %}
9
10    {% include '@Marketplace/uploadPluginDialog.twig' %}
11
12    <div piwik-content-intro>
13        <h2 piwik-enriched-headline>
14            {{ title|e('html_attr') }}
15        </h2>
16
17        <p>{{ 'CorePluginsAdmin_PluginsExtendPiwik'|translate }}
18            {{ 'CorePluginsAdmin_OncePluginIsInstalledYouMayActivateHere'|translate }}
19
20            {% if isMarketplaceEnabled or isPluginUploadEnabled %}
21                {{ 'CorePluginsAdmin_TeaserExtendPiwikByPlugin'|translate(
22                    '<a href="' ~ linkTo({'module':'Marketplace', 'action':'overview', 'sort': null, 'activated': null})|e('html_attr') ~ '">',
23                    '</a>',
24                    '<a href="#" class="uploadPlugin">',
25                    '</a>'
26                )|raw }}
27            {% endif %}
28
29            {% if not isPluginsAdminEnabled %}
30                <br/>{{ 'CorePluginsAdmin_DoMoreContactPiwikAdmins'|translate }}
31            {% endif %}
32
33            {{ 'CorePluginsAdmin_ChangeLookByManageThemes'|translate('<a href="' ~ linkTo({'action': 'themes', 'activated': null})|e('html_attr') ~'">', '</a>')|raw }}
34        </p>
35    </div>
36
37    {% if pluginsHavingUpdate|length %}
38        <div piwik-content-block content-title="{{ pluginsHavingUpdate|length }} Update(s) available">
39
40            <p>{{ 'CorePluginsAdmin_InfoPluginUpdateIsRecommended'|translate }}</p>
41
42            {{ plugins.tablePluginUpdates(pluginsHavingUpdate, updateNonce, isMultiServerEnvironment) }}
43        </div>
44    {% endif %}
45
46    <div piwik-content-block content-title="{{ 'CorePluginsAdmin_InstalledPlugins'|translate|e('html_attr') }}"
47         class="pluginsManagement"
48         piwik-plugin-management>
49
50        {{ plugins.pluginsFilter() }}
51
52        {{ plugins.tablePlugins(pluginsInfo, pluginNamesHavingSettings, activateNonce, deactivateNonce, uninstallNonce, false, marketplacePluginNames, isPluginsAdminEnabled) }}
53
54    </div>
55
56{% endblock %}
57