Commit f62872d9 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5329: adding logic for profiles listing image

parent be3b09b2
......@@ -7,6 +7,7 @@
{% set modifier_classes = 'teaser--' ~ teaser.bundle %}
{% include '@components/card/card.twig' with {
'bundle': node.bundle,
'modifier_classes': modifier_classes,
'type': type,
'url': teaser.url,
......
<div class="card__header">
{% if bundle == 'uw_ct_profile' %}
<div class="uw-image__profiles" style="width: 150px; height: 180px;">
{% include '@components/card/card-elements/_image.twig' with {
'image': image,
'bundle': bundle
} %}
</div>
{% endif %}
{% if header.date %}
{% if type == 'event' %}
......
......@@ -17,7 +17,7 @@
} %}
{% endif %}
{% if image %}
{% if image and show_image == 'yes' %}
{% include '@components/card/card-elements/_image.twig' with {
'image': image
} %}
......@@ -27,7 +27,9 @@
{% include '@components/card/card-elements/_header.twig' with {
'header': header,
'show_title': show_title,
'type': type
'type': type,
'image': image,
'bundle': bundle
} %}
{% endif %}
......@@ -41,7 +43,7 @@
{% if content %}
{% include '@components/card/card-elements/_content.twig' with {
'content': content
'content': content,
} %}
{% endif %}
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment