diff --git a/source/_patterns/04-components/card/card-footer-elements/_additional-info.twig b/source/_patterns/04-components/card/card-elements/_additional-info.twig similarity index 100% rename from source/_patterns/04-components/card/card-footer-elements/_additional-info.twig rename to source/_patterns/04-components/card/card-elements/_additional-info.twig diff --git a/source/_patterns/04-components/card/card-footer-elements/_location-info.twig b/source/_patterns/04-components/card/card-elements/_location-info.twig similarity index 100% rename from source/_patterns/04-components/card/card-footer-elements/_location-info.twig rename to source/_patterns/04-components/card/card-elements/_location-info.twig diff --git a/source/_patterns/04-components/card/card-footer-elements/_tags.twig b/source/_patterns/04-components/card/card-elements/_tags.twig similarity index 100% rename from source/_patterns/04-components/card/card-footer-elements/_tags.twig rename to source/_patterns/04-components/card/card-elements/_tags.twig diff --git a/source/_patterns/04-components/card/card.twig b/source/_patterns/04-components/card/card.twig index 33bdc7110d00b4420e68b4f4bc205881622c61ef..5b1102db086f99f106fbd0e08339fc0a94def5cb 100644 --- a/source/_patterns/04-components/card/card.twig +++ b/source/_patterns/04-components/card/card.twig @@ -70,6 +70,7 @@ {% endif %} </div> {% endif %} + {% if not featured_image and (sources or img_element) %} <div class="card__media"> {% if url %} @@ -106,7 +107,7 @@ {{ footer }} {% if additional_info %} - {% include '@components/card/card-footer-elements/_additional-info.twig' with { + {% include '@components/card/card-elements/_additional-info.twig' with { 'additional_info': additional_info } %} {% endif %} @@ -141,7 +142,7 @@ {% endif %} {% if location_info %} - {% include '@components/card/card-footer-elements/_location-info.twig' with { + {% include '@components/card/card-elements/_location-info.twig' with { 'address': location_info.address, 'map': location_info.map, 'map_link': location_info.map_link, @@ -209,7 +210,7 @@ {% endif %} {% if tags %} - {% include '@components/card/card-footer-elements/_tags.twig' with { + {% include '@components/card/card-elements/_tags.twig' with { 'tags': tags, } %} {% endif %}