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
This commit is part of merge request !56. Comments created here will be created in the context of that merge request.
...@@ -66,7 +66,6 @@ banners: ...@@ -66,7 +66,6 @@ banners:
type: 'image/jpeg' type: 'image/jpeg'
img_element: '../../../../source/images/president/president_xlarge.jpg' img_element: '../../../../source/images/president/president_xlarge.jpg'
alt: 'Alternative text' alt: 'Alternative text'
big_text: 'Image3'
link: 'http://google.ca' link: 'http://google.ca'
autoplay: 1 autoplay: 1
slide_speed: 7000 slide_speed: 7000
......
...@@ -2,56 +2,59 @@ ...@@ -2,56 +2,59 @@
<article class="card {{ modifier_classes }} {% if show_hover %} card--show-hover {% endif %} {{ type }}" > <article class="card {{ modifier_classes }} {% if show_hover %} card--show-hover {% endif %} {{ type }}" >
<div class="card__body"> <div class="card__body">
<div class="card__header">
{% if date %} {% if title or author or date %}
<div class="card__date"> <div class="card__header">
{% if date is iterable %} {% if date %}
{% for d in 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 { {% include "@base/date-formats/_date-format.twig" with {
'date_format': date_format, 'date_format': date_format,
'date': d 'date': date
}%} }%}
{% endfor %} {% endif %}
{% else %} </div>
{% include "@base/date-formats/_date-format.twig" with { {% endif %}
'date_format': date_format,
'date': date
}%}
{% endif %}
</div>
{% endif %}
{% if title %} {% if title %}
<h{{ header_level }} class="card__title"> <h{{ header_level }} class="card__title">
{% if url %} {% if url %}
<a href="{{ url }}"> <a href="{{ url }}">
{% endif %} {% endif %}
{{ title }} {{ title }}
{% if url %} {% if url %}
</a> </a>
{% endif %}
</h{{ header_level }}>
{% if sub_title %}
<span class="sub-title">{{ sub_title }}</span>
{% endif %} {% endif %}
</h{{ header_level }}>
{% if sub_title %}
<span class="sub-title">{{ sub_title }}</span>
{% endif %} {% endif %}
{% endif %}
{% if author_name %} {% if author_name %}
<div class="card__author"> <div class="card__author">
{% if author_link %} {% if author_link %}
by by
<a href="{{ author_link }}"> <a href="{{ author_link }}">
{% endif %} {% endif %}
{{ author_name }} {{ author_name }}
{% if author_link %} {% if author_link %}
</a> </a>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% endif %}
{% if sources or img_element %} {% 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