forked from timpritlove/podlove-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contributor-profile.twig
63 lines (50 loc) · 1.79 KB
/
contributor-profile.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
{# Template: contributor-profile #}
{# Version: 1.0 #}
{% if not avatar_size %}
{% set avatar_size = 128 %}
{% endif %}
{% if not avatar_size %}
{% set avatar_size = 128 %}
{% endif %}
<div class="contributor-profile">
{% set contributor = podcast.contributors({scope: "podcast", id: userid}) %}
{% if contributor %}
<img src="{{ contributor.avatar.url }}" title="{{ contributor.name }}" height="{{ avatar_size }}" width="{{ avatar_size }}"/ /><br/>
<strong>{{ contributor.name }}</strong>
{%if contributor.comment %}
<br/><em>{{ contributor.comment }}</em>
{% endif %}
{% if social == "yes" %}
{% for service in contributor.services({type: "social"}) %}
{% if loop.first %}<br/>{% endif %}
<a target="_blank" title="{{ service.title }}" href="{{ service.profileUrl }}">
<img width="32" height="32" src="{{ service.logoUrl }}" class="podlove-contributor-button" alt="{{ service.title }}" />
</a>
{% endfor %}
{% endif %}
{% if donations == "yes" %}
{% for service in contributor.services({type: "donation"}) %}
{% if loop.first %}<br/>{% endif %}
<a target="_blank" title="{{ service.title }}" href="{{ service.profileUrl }}">
<img width="32" height="32" src="{{ service.logoUrl }}" class="podlove-contributor-button" alt="{{ service.title }}" />
</a>
{% endfor %}
{% endif %}
{% if flattr == "yes" and contributor.flattr %}
<br/><a target="_blank"
class="FlattrButton"
title="Flattr {{ contributor.name }}"
rel="flattr;uid:{{ contributor.flattr }};button:compact;popout:0"
href="{{ contributor.flattr_url }}">
Flattr {{ contributor.name }}
</a>
{% endif %}
{% endif %}
</div>
<style>
div.contributor-profile {
float:right;
margin-left: 20px;
margin-left: 20px;
}
</style>