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

ISTWCMS-4695: fixing displaying/not displaying title on cards

parent 0f54e950
No related branches found
No related tags found
2 merge requests!63Tag 3.0.1,!56Feature/istwcms 4695 ebremner theme banners
......@@ -66,7 +66,6 @@ banners:
type: 'image/jpeg'
img_element: '../../../../source/images/president/president_xlarge.jpg'
alt: 'Alternative text'
big_text: 'Image3'
link: 'http://google.ca'
autoplay: 1
slide_speed: 7000
......
......@@ -2,56 +2,59 @@
<article class="card {{ modifier_classes }} {% if show_hover %} card--show-hover {% endif %} {{ type }}" >
<div class="card__body">
<div class="card__header">
{% if date %}
<div class="card__date">
{% if date is iterable %}
{% for d in date %}
{% if title or author or date %}
<div class="card__header">
{% if date %}
<div class="card__date">
{% if date is iterable %}
{% for d in date %}
{% include "@base/date-formats/_date-format.twig" with {
'date_format': date_format,
'date': d
}%}
{% endfor %}
{% else %}
{% include "@base/date-formats/_date-format.twig" with {
'date_format': date_format,
'date': d
'date': date
}%}
{% endfor %}
{% else %}
{% include "@base/date-formats/_date-format.twig" with {
'date_format': date_format,
'date': date
}%}
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
{% endif %}
{% if title %}
<h{{ header_level }} class="card__title">
{% if url %}
<a href="{{ url }}">
{% endif %}
{{ title }}
{% if url %}
</a>
{% if title %}
<h{{ header_level }} class="card__title">
{% if url %}
<a href="{{ url }}">
{% endif %}
{{ title }}
{% if url %}
</a>
{% endif %}
</h{{ header_level }}>
{% if sub_title %}
<span class="sub-title">{{ sub_title }}</span>
{% endif %}
</h{{ header_level }}>
{% if sub_title %}
<span class="sub-title">{{ sub_title }}</span>
{% endif %}
{% endif %}
{% if author_name %}
<div class="card__author">
{% if author_link %}
by
<a href="{{ author_link }}">
{% endif %}
{% if author_name %}
<div class="card__author">
{% if author_link %}
by
<a href="{{ author_link }}">
{% endif %}
{{ author_name }}
{{ author_name }}
{% if author_link %}
</a>
{% endif %}
</div>
{% endif %}
{% if author_link %}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endif %}
{% if sources or img_element %}
......
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