2023-12-30 00:34:55 +00:00
|
|
|
<div class="card shadow-sm">
|
2023-12-29 03:14:10 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
{% if this.headline and this.headline|length >= 1 and not this.title %}
|
|
|
|
<div class="card-header position-relative">
|
2023-12-29 03:14:10 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
{{ this.headline }}
|
2023-12-29 03:14:10 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
{% if gallery.reactions_enabled|default(False) %}
|
|
|
|
<a href="#" class="btn btn-link float-end">
|
|
|
|
<i class="bi-heart-fill position-absolute translate-middle top-50 end-1 text-danger"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2023-12-29 17:24:33 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-12-29 17:24:33 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
<img
|
|
|
|
class="card-image-top"
|
|
|
|
src="{{ this.src }}"
|
|
|
|
alt="{{ this.alt_text if this.alt_text else this.title }}"
|
|
|
|
/>
|
2023-12-29 17:24:33 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
{% if this.description and this.description|length >= 1 %}
|
|
|
|
<div class="card-body position-relative">
|
2023-12-29 17:24:33 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
{% if this.title and this.title|length >= 1 %}
|
|
|
|
<h5 class="card-title">{{ this.title }}</h5>
|
|
|
|
|
|
|
|
{% if this.subtitle and this.subtitle|length >= 1 %}
|
|
|
|
<h6 class="card-subtitle mb-2 text-body-secondary">{{ this.subtitle }}</h6>
|
|
|
|
{% endif %}
|
2023-12-29 17:24:33 +00:00
|
|
|
|
2023-12-30 00:34:55 +00:00
|
|
|
{% if gallery.reactions_enabled|default(False) %}
|
|
|
|
<a href="#" class="btn btn-link position-absolute bottom-1 end-0">
|
|
|
|
<i class="bi-heart-fill text-danger"></i>
|
|
|
|
</a>
|
2023-12-29 05:39:18 +00:00
|
|
|
{% endif %}
|
2023-12-30 00:34:55 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<p class="card-text">{{ this.description }}</p>
|
|
|
|
|
|
|
|
{% if this.subtext and this.subtext|length >= 1 %}
|
|
|
|
<p class="card-text">
|
|
|
|
<small class="text-body-secondary">
|
|
|
|
{{ this.subtext }}
|
|
|
|
</small>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2023-12-29 03:14:10 +00:00
|
|
|
|
|
|
|
</div>
|
2023-12-30 00:34:55 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Don't render reaction section if disabled or max reactions are zero (or less) #}
|
|
|
|
{% if gallery.reactions_enabled|default(False) or gallery.max_reactions_per_card|int <= 0 %}
|
|
|
|
{% include 'card_reaction_section.html' %}
|
|
|
|
{% endif %}
|
|
|
|
|
2019-04-10 05:00:33 +00:00
|
|
|
</div>
|