card--node.twig 1.23 KB
Newer Older
1
{% if featured_image == 'yes' and node.image.img_element %}
2
3
4
  {% set node_image_class =  'with-image' %}
{% else %}
  {% set node_image_class =  'without-image' %}
5
{% endif %}
6
7
8

<div class="uw-node__{{ node_image_class }}">
  {% include '@components/card/card.twig' with {
9
    'type': type,
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    'title': node.title,
    'sub_title': node.sub_title,
    'date': node.date,
    'tags': node.tags,
    'content': node.content,
    'sources': node.image.sources,
    'img_element': node.image.img_element,
    'image': node.image.uri,
    'alt': node.image.alt,
    'header_level': 2,
    'show_hover': '',
    'author': node.author,
    'url': node.url,
    'email': node.email,
    'phone': node.phone,
    'location': node.location,
    'link_profile': node.link_profile,
    'personal_webpage': node.personal_webpage,
    'additional_info': node.additional_info,
    'contact_for': node.contact_for,
    'groups': node.groups,
    'featured_image': featured_image,
32
    'card_type': 'node',
33
    'hero': node.hero,
34
35
36
37
38
39
    'host': node.host,
    'event_website': node.event_website,
    'cost': node.cost,
    'map': node.map,
    'address': node.address,
    'map_link': node.map_link,
40
    'catalog_tags': node.catalog_tags,
41
    'position': node.position,
42
43
  } %}
</div>