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 @@ ...@@ -7,6 +7,7 @@
{% set modifier_classes = 'teaser--' ~ teaser.bundle %} {% set modifier_classes = 'teaser--' ~ teaser.bundle %}
{% include '@components/card/card.twig' with { {% include '@components/card/card.twig' with {
'bundle': node.bundle,
'modifier_classes': modifier_classes, 'modifier_classes': modifier_classes,
'type': type, 'type': type,
'url': teaser.url, 'url': teaser.url,
......
<div class="card__header"> <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 header.date %}
{% if type == 'event' %} {% if type == 'event' %}
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
} %} } %}
{% endif %} {% endif %}
{% if image %} {% if image and show_image == 'yes' %}
{% include '@components/card/card-elements/_image.twig' with { {% include '@components/card/card-elements/_image.twig' with {
'image': image 'image': image
} %} } %}
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
{% include '@components/card/card-elements/_header.twig' with { {% include '@components/card/card-elements/_header.twig' with {
'header': header, 'header': header,
'show_title': show_title, 'show_title': show_title,
'type': type 'type': type,
'image': image,
'bundle': bundle
} %} } %}
{% endif %} {% endif %}
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
{% if content %} {% if content %}
{% include '@components/card/card-elements/_content.twig' with { {% include '@components/card/card-elements/_content.twig' with {
'content': content 'content': content,
} %} } %}
{% endif %} {% endif %}
</div> </div>
......
Supports Markdown
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