Skip to content
Snippets Groups Projects
Commit 12ce12e3 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5195: fixing profiles to use new node theming and fixing card teaser

parent 38af86ac
No related branches found
No related tags found
1 merge request!118Feature/istwcms 5195 ebremner node theming
...@@ -7,13 +7,11 @@ ...@@ -7,13 +7,11 @@
{% include '@components/card/card.twig' with { {% include '@components/card/card.twig' with {
'type': type, 'type': type,
'url': teaser.url, 'url': teaser.url,
'title': teaser.title,
'sub_title': teaser.sub_title,
'date': teaser.date,
'header': teaser.header, 'header': teaser.header,
'listing_image': teaser.listing_image, 'listing_image': teaser.listing_image,
'content': teaser.content, 'content': teaser.content,
'tags': teaser.tags, 'tags': teaser.tags,
'show_hover': show_hover, 'show_hover': show_hover,
'card_type': 'teaser', 'type': type,
'show_body': show_body
} %} } %}
...@@ -11,10 +11,12 @@ ...@@ -11,10 +11,12 @@
{% set show_header = 'yes' %} {% set show_header = 'yes' %}
{% endif %} {% endif %}
{% if not hero_image and not listing_image and not banner and not content %} {% if not show_body %}
{% set show_body = 'no' %} {% if not hero_image and not listing_image and not banner and not content %}
{% else %} {% set show_body = 'no' %}
{% set show_body = 'yes' %} {% else %}
{% set show_body = 'yes' %}
{% endif %}
{% endif %} {% endif %}
<article class="card{% if type %} card__{{ type }}{% endif %}{% if show_hover %} card--show-hover {% endif %}" > <article class="card{% if type %} card__{{ type }}{% endif %}{% if show_hover %} card--show-hover {% endif %}" >
......
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
{% block content %} {% block content %}
{% for profile in profiles %} {% for profile in profiles %}
{% include '@components/card/card--teaser/card--teaser.twig' with { {% include '@components/card/card--teaser/card--teaser.twig' with {
teaser: profile, 'teaser': profile,
'type': 'teaser',
'show_body': 'yes',
} %} } %}
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
{% endembed %} {% endembed %}
</div> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment