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

ISTWCMS-5195: cleaning up card now to use full new node theming

parent 60becf53
No related branches found
No related tags found
1 merge request!118Feature/istwcms 5195 ebremner node theming
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if additional_info.info %}
{{ additional_info.info }}
{% endif %}
{% endblock %} {% endblock %}
{% endembed %} {% endembed %}
</div> </div>
<div class="card__contact-for">
{% embed '@components/details/details.twig' %}
{% block details_summary %}
Contact for
{% endblock %}
{% block details_content %}
<div class="card__contact-for-content">
{{ contact_for.contact }}
</div>
{% endblock %}
{% endembed %}
</div>
<div class="card__contact-info">
{% embed '@components/details/details.twig' %}
{% block details_summary %}
Contact Information
{% endblock %}
{% block details_content %}
{% if contact_info.email %}
<div class="card__contact-info--email">
<a href="mailto:{{ contact_info.email }}">{{ contact_info.email }}</a>
</div>
{% endif %}
{% if contact_info.phone %}
<div class="card__contact-info--phone">
{{ contact_info.phone }}
</div>
{% endif %}
{% if contact_info.location %}
<div class="card__contact-info--location">
<span class="uw-label">Location:</span>
{{ contact_info.location }}
</div>
{% endif %}
{% endblock %}
{% endembed %}
</div>
{% if footer.additional_info %}
{% include '@components/card/card-elements/_additional-info.twig' with {
'additional_info': footer.additional_info
} %}
{% endif %}
{% if footer.contact_info %}
{% include '@components/card/card-elements/_contact-info.twig' with {
'contact_info': footer.contact_info
} %}
{% endif %}
{% if footer.links %}
{% include '@components/card/card-elements/_links.twig' with {
'links': footer.links
}%}
{% endif %}
{% if footer.location_info %}
{% include '@components/card/card-elements/_location-info.twig' with {
'location_info': footer.location_info
}%}
{% endif %}
{% if footer.contact_for %}
{% include '@components/card/card-elements/_contact-for.twig' with {
'contact_for': footer.contact_for
} %}
{% endif %}
{% if footer.groups %}
{% include '@components/card/card-elements/_groups.twig' with {
'groups': footer.groups.groups
} %}
{% endif %}
{% if footer.tags %}
{% include '@components/card/card-elements/_tags.twig' with {
'tags': footer.tags,
} %}
{% endif %}
<div class="card__groups">
{% embed '@components/details/details.twig' %}
{% block details_summary %}
Groups
{% endblock %}
{% block details_content %}
<div class="card__groups-list">
{% for group in groups %}
{% if loop.index0 > 0 %}
, {{ group.title }}
{% else %}
{{ group.title }}
{% endif %}
{% endfor %}
</div>
{% endblock %}
{% endembed %}
</div>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
{% if header.position %} {% if header.position %}
{% include '@components/card/card-elements/_position.twig' with { {% include '@components/card/card-elements/_position.twig' with {
'position': position 'position': header.position
} %} } %}
{% endif %} {% endif %}
......
<div class="card__contact-links">
{% embed '@components/details/details.twig' %}
{% block details_summary %}
Links
{% endblock %}
{% block details_content %}
{% if links.profile %}
<div class="card__link-profile">
<span class="uw-label">Link to Profile:</span>
{% include '@components/links/links.twig' with {
'links': links.profile
} %}
</div>
{% endif %}
{% if links.webpage %}
<div class="card__personal-webpage">
<span class="uw-label">Link to personal webpage:</span>
{% include '@components/links/links.twig' with {
'links': links.webpage
} %}
</div>
{% endif %}
{% endblock %}
{% endembed %}
</div>
...@@ -43,90 +43,9 @@ ...@@ -43,90 +43,9 @@
{% if footer %} {% if footer %}
<div class="card__footer"> <div class="card__footer">
{% if footer.additional_info %} {% include '@components/card/card-elements/_footer-elements.twig' with {
{% include '@components/card/card-elements/_additional-info.twig' with { 'footer': footer
'additional_info': footer.additional_info } %}
} %}
{% endif %}
{% if contact_info %}
some include
{% endif %}
{% if link_profile or personal_webpage %}
<div class="card__contact-links">
{% embed '@components/details/details.twig' %}
{% block details_summary %}
Links
{% endblock %}
{% block details_content %}
{% if link_profile %}
<div class="card__link-profile">
<span class="uw-label">Link to Profile:</span>
<a href="{{ link_profile.uri }}">{{ link_profile.title }}</a>
</div>
{% endif %}
{% if personal_webpage %}
<div class="card__personal-webpage">
<span class="uw-label">Link to personal webpage:</span>
<a href="{{ personal_webpage.uri }}">{{ personal_webpage.title }}</a>
</div>
{% endif %}
{% endblock %}
{% endembed %}
</div>
{% endif %}
{% if footer.location_info %}
{% include '@components/card/card-elements/_location-info.twig' with {
'location_info': footer.location_info
}%}
{% endif %}
{% if contact_for %}
<div class="card__contact-for">
{% embed '@components/details/details.twig' %}
{% block details_summary %}
Contact for
{% endblock %}
{% block details_content %}
<div class="card__contact-for-content">
{{ contact_for }}
</div>
{% endblock %}
{% endembed %}
</div>
{% endif %}
{% if groups %}
<div class="card__groups">
{% embed '@components/details/details.twig' %}
{% block details_summary %}
Groups
{% endblock %}
{% block details_content %}
<div class="card__groups-list">
{% for group in groups %}
{% if loop.index0 > 0 %}
, {{ group.title }}
{% else %}
{{ group.title }}
{% endif %}
{% endfor %}
</div>
{% endblock %}
{% endembed %}
</div>
{% endif %}
{% if footer.tags %}
{% include '@components/card/card-elements/_tags.twig' with {
'tags': footer.tags,
} %}
{% endif %}
{% if read_more and url %} {% if read_more and url %}
<div class="card__readmore"> <div class="card__readmore">
......
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