/
browseThemes.twig
63 lines (50 loc) · 2.33 KB
/
browseThemes.twig
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
{% extends 'admin.twig' %}
{% block content %}
<div class="pluginslistActionBar">
<h2>Enjoy another look & feel by installing a new theme</h2>
<div class="infoBox">
Piwik is not the owner of these Themes and did not review them.
</div>
<div>
<a href="{{ linkTo({'sort': 'popular', 'query': ''}) }}">popular</a>
|
<a href="{{ linkTo({'sort': 'newest', 'query': ''}) }}">newest</a>
|
<a href="{{ linkTo({'sort': 'alpha', 'query': ''}) }}">alpha</a>
|
<form action="{{ linkTo({'sort': ''}) }}" method="POST">
<input value="{{ query }}" placeholder="Search" type="text" name="query"/>
<button type="submit">Search</button>
</form>
</div>
</div>
<div class="pluginslist themes">
{% if plugins|length %}
{% for plugin in plugins %}
<div class="plugin">
<div class="content">
{% if plugin.isInstalled %}
<span class="install">Installed</span>
{% else %}
<a href="{{ linkTo({'action': 'installPlugin', 'pluginName': plugin.name, 'nonce': nonce}) }}"
class="install">Install</a>
{% endif %}
<h3 class="header"><a href="javascript:return;" class="more">{{ plugin.name }}</a></h3>
<p class="description">{{ plugin.description }}</p>
<a href="javascript:return;" class="more"><img class="preview" src="{{ plugin.screenshots|first }}?w=250&h=250"/></a>
</div>
<div class="footer">
<hr class="metadataSeparator">
<ul class="metadata">
<li>Version: <strong>{{ plugin.latestVersion }}</strong></li>
<li class="even">Updated: <strong>{{ plugin.lastUpdated }}</strong></li>
<li>Downloads: <strong>{{ plugin.numDownloads }}</strong></li>
</ul>
</div>
</div>
{% endfor %}
{% else %}
No themes found
{% endif %}
</div>
{% endblock %}