friggeri_cv-1.0.0-alpha2/templates/footer.html.twig
templates/footer.html.twig
{% set title1 = profile.footer_col_1_title.value %}
{% set color1 = profile.footer_col_1_title_color.value %}
{% set number1 = profile.footer_col_1_colored_letter_number.value %}
{% set title2 = profile.footer_col_2_title.value %}
{% set color2 = profile.footer_col_2_title_color.value %}
{% set number2 = profile.footer_col_2_colored_letter_number.value %}
<section>
<div class="container">
<div class="row">
<div class="column">
<h4><span style="color: {{ color1 }}">{{ title1[:number1] }}</span>{{ title1[number1:] }}</h4>
<ul>
{% for item in profile.footer_col_1_items %}
<li>
{% if item.entity.picture.entity.field_media_image.entity.uri.value %}
{%
set icon = {
'#theme': 'image',
'#uri': item.entity.picture.entity.field_media_image.entity.uri.value,
'#alt': item.entity.picture.entity.field_media_image.alt
}
%}
{{ icon }}
{% endif %}
{{ item.entity.text.value }}
</li>
{% endfor %}
</ul>
</div>
<div class="column">
<h4><span style="color: {{ color2 }}">{{ title2[:number2] }}</span>{{ title2[number2:] }}</h4>
<ul>
{% for item in profile.footer_col_2_items %}
<li>
{% if item.entity.picture.entity.field_media_image.entity.uri.value %}
{%
set icon = {
'#theme': 'image',
'#uri': item.entity.picture.entity.field_media_image.entity.uri.value,
'#alt': item.entity.picture.entity.field_media_image.alt
}
%}
{{ icon }}
{% endif %}
{{ item.entity.text.value }}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
