Skip to content
Snippets Groups Projects
Commit f6ccc46c authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5880: adding classes on node for media

parent 39500dd4
No related branches found
No related tags found
1 merge request!48ISTWCMS-5880: ensuring that title displays when banner is used
{% if media_flags.has_media %} {% if media_flags.has_media %}
{% set node_image_class = 'with-media' %} {% set node_classes = 'uw-node__with-media' %}
{% else %} {% else %}
{% set node_image_class = 'without-media' %} {% set node_classes = 'uw-node__without-media' %}
{% endif %} {% endif %}
{% set modifier_classes = 'node--' ~ node.bundle %} {% if media_flags.has_portrait %}
<div class="uw-node__{{ node_image_class }}"> {% set node_classes = node_classes ~ ' uw-node__with-portrait' %}
{% endif %}
<div class="{{ node_classes }}">
{% include '@components/card/card.twig' with { {% include '@components/card/card.twig' with {
'bundle': node.bundle, 'bundle': node.bundle,
'url': node.url, 'url': node.url,
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
{% endif %} {% endif %}
{% if image is not empty and bundle != 'uw_ct_profile' %} {% if image is not empty and bundle != 'uw_ct_profile' %}
image
{% include '@components/card/card-elements/_image.twig' with { {% include '@components/card/card-elements/_image.twig' with {
'image': image 'image': image
} %} } %}
......
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