1
0
Fork 0
web2019/templates/shortcodes/textimg.html

57 lines
1.0 KiB
HTML
Raw Normal View History

<div class="{% if customcss %}{{ customcss }}{% else %}row d-flex align-items-center mt-4 mb-4 pt-2 pb-2{% endif%}">
{% if bodyleft %}
<div class="col-12 col-md-6">
{% if md %}
{{ body | markdown | safe }}
{% else %}
{{ body | safe }}
{% endif %}
</div>
<div class="col-12 col-md-6 pt-3 pt-sm-0">
<div class="card {% if shadow %}shadow{% endif %}">
<img src="{{ get_url(path=src, cachebust=true) }}" alt="{{ alt }}" width="100%" class="card-img-top img-fluid">
</div>
</div>
{% else %}
<div class="col-12 col-md-6 order-2 order-md-1">
<div class="card {% if shadow %}shadow{% endif %}">
<img src="{{ get_url(path=src, cachebust=true) }}" alt="{{ alt }}" width="100%" class="card-img-top img-fluid">
</div>
</div>
<div class="col-12 col-md-6 order-1 order-md-2">
{% if md %}
{{ body | markdown | safe }}
{% else %}
{{ body | safe }}
{% endif %}
</div>
{% endif %}
</div>