-
Notifications
You must be signed in to change notification settings - Fork 0
/
cards-img-olivares.html.twig
55 lines (52 loc) · 2.62 KB
/
cards-img-olivares.html.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
{# Ukit 3.0 Card with images by José Luis Olivares.
You can say thanks endorsing my skills on https://www.linkedin.com/in/jolivaress/.
and/or making a voluntary donation through Paypal https://paypal.me/joolivares #}
{% extends '@nucleus/partials/particle.html.twig' %}
{% block particle %}
<div class="uk-container">
{% if particle.title %}
<div class="g-grid">
<div class="g-block size-100 {{ particle.title_css }}">
<{{ particle.titlehx|raw }} class="g-title">{{ particle.title|raw }}</{{ particle.titlehx|raw }}>
</div>
</div>
{% endif %}
<div class="uk-child-width-1-{{particle.cardcount|default('4')}}@m uk-grid-match uk-grid" uk-grid="">
{% for item in particle.items %}
{% if loop.first %}
<div class="uk-first-column">
{% else %}
<div>
{% endif %}
{% if item.showthiscard %}
<div class="uk-card uk-card-{{item.cardtype|default('default')}} uk-card-hover">
{% if item.textbadge %}
<div class="uk-card-badge">{{item.textbadge|e}}</div>
{% endif %}
<div class="uk-card-body {{item.cardbodypadding|e}}">
{% if item.textcardheader %}
<h3 class="uk-card-title">{{item.textcardheader|raw}}</h3>
{% endif %}
<a target="{{ item.target|default('_parent')|e }}" href="{{ item.link|e }}">
<div class="uk-height-medium uk-flex uk-flex-center uk-flex-bottom uk-background-cover uk-light" data-src="{{ url(item.cardbodyimage)}}" uk-img>
{% if item.textbuttonbody %}
<p uk-margin="">
<button class="uk-button {{item.buttontype|e}} uk-first-column" >{{item.textbuttonbody|e}}{% if item.buttonicon %}<span class="{{item.buttonicon|e}}"></span>{% endif %}
</button>
</p>
{% endif %}
</div>
</a>
</div>
{% if item.textfooter %}
<div class="uk-card-footer {{item.textfooteralign|e}} ">
<a target="{{ item.target|default('_parent')|e }}" href="{{ item.link|e }}" class="uk-button uk-button-text">{{ item.textfooter|raw}}</a>
</div>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endblock %}