Welcome to mirror list, hosted at ThFree Co, Russian Federation.

marketplace.twig « templates « CorePluginsAdmin « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61f46f8cd219d978c17c58db91823d33fb049f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{% extends "admin.twig" %}
{% import '@CorePluginsAdmin/macros.twig' as pluginsMacro %}

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

{% block content %}

    <div class="marketplace" piwik-marketplace>

        <div piwik-content-intro>
            <h2 piwik-enriched-headline feature-name="{{ 'CorePluginsAdmin_Marketplace'|translate }}"
                >{{ title|e('html_attr') }}</h2>
            <p>
                {% if showThemes %}
                    {{ 'CorePluginsAdmin_ThemesDescription'|translate }}
                    {{ 'CorePluginsAdmin_InstallingNewPluginViaMarketplaceOrUpload'|translate('<a href="#" class="uploadPlugin">','</a>')|raw }}
                    <br/>
                    {{ 'CorePluginsAdmin_BeCarefulUsingThemes'|translate }}
                {% else %}
                    {{ 'CorePluginsAdmin_PluginsExtendPiwik'|translate }}
                    {{ 'CorePluginsAdmin_InstallingNewPluginViaMarketplaceOrUpload'|translate('<a href="#" class="uploadPlugin">','</a>')|raw }}
                    <br/>
                    {{ 'CorePluginsAdmin_BeCarefulUsingPlugins'|translate }}
                {% endif %}
            </p>

            {% if not isSuperUser %}
                <p>
                    {% if showThemes %}
                        {{ 'CorePluginsAdmin_NotAllowedToBrowseMarketplaceThemes'|translate }}
                    {% else %}
                        {{ 'CorePluginsAdmin_NotAllowedToBrowseMarketplacePlugins'|translate }}
                    {% endif %}
                </p>
            {% endif %}


            <div class="ui-confirm" id="installPluginByUpload">
                <h2>{{ 'CorePluginsAdmin_TeaserExtendPiwikByUpload'|translate }}</h2>

                <p class="description"> {{ 'CorePluginsAdmin_AllowedUploadFormats'|translate }} </p>

                <form enctype="multipart/form-data" method="post" id="uploadPluginForm"
                      action="{{ linkTo({'action':'uploadPlugin', 'nonce': installNonce}) }}">
                    <input type="file" name="pluginZip">
                    <br />
                    <input class="startUpload btn" type="submit" value="{{ 'CorePluginsAdmin_UploadZipFile'|translate }}">
                </form>
            </div>

            <div class="row marketplaceActions" ng-controller="PiwikMarketplaceController as marketplace">
                <div piwik-field uicontrol="select" name="plugin_type"
                     class="col s12 m4"
                     ng-model="marketplace.pluginType"
                     ng-change="marketplace.changePluginType()"
                     title="{{ 'Show'|translate|e('html_attr') }}"
                     value="{{ pluginType }}"
                     full-width="true"
                     options="{{ pluginTypeOptions|json_encode }}">
                </div>

                <div piwik-field uicontrol="select" name="plugin_sort"
                     title="{{ 'Sort'|translate|e('html_attr') }}"
                     value="{{ sort }}"
                     ng-model="marketplace.pluginSort"
                     ng-change="marketplace.changePluginSort()"
                     class="col s12 m4"
                     full-width="true"
                     options="{{ pluginSortOptions|json_encode }}">
                </div>

                {# Hide filters and search for themes because we don't have many of them #}
                {% if not showThemes %}
                    <div class="col s12 m4 ">
                        <form action="{{ linkTo({'sort': ''}) }}" method="post" class="plugin-search">
                            <div piwik-field uicontrol="text" name="query"
                                 title="{{ 'General_Search'|translate }} {{ plugins|length }} {{ 'General_Plugins'|translate|lcfirst }}..."
                                 value="{{ query }}"
                                 full-width="true">
                            </div>
                            <span class="icon-search" onclick="$('form.plugin-search').submit();"></span>
                        </form>
                    </div>
                {% endif %}
            </div>
        </div>

        {% include '@CorePluginsAdmin/marketplace/plugin-list.twig' %}

        <div class="footer-message">
            {% set marketplaceSellPluginSubject = 'CorePluginsAdmin_MarketplaceSellPluginSubject'|translate %}
            {{ 'CorePluginsAdmin_GetEarlyAccessForPaidPlugins'|translate("<a href='mailto:hello@piwik.org?subject=" ~ marketplaceSellPluginSubject ~ "'>", "</a>")|raw }}
            <br/>
            {{ 'CorePluginsAdmin_DevelopersLearnHowToDevelopPlugins'|translate('<a href="?module=Proxy&action=redirect&url=http://developer.piwik.org/plugins" target="_blank">', '</a>')|raw }}
        </div>

    </div>

{% endblock %}