web2019/templates/shortcodes/layout_centered_img.html

15 lines
473 B
HTML

<div class="{% if css %}{{ css }}{% else %}row d-flex align-items-center mt-5 mb-5{% endif %}">
<div class="col-12 col-md-8 mx-auto text-center">
{% if title %}<h5>{{ title }}</h5>{% endif %}
<div class="card {% if shadow %}shadow{% endif %}">
<img class="card-img-top img-fluid" {% if popup %}data-popup="true" data-nsrc="{{ get_url(path=popup, cachebust=true) }}"{% endif %} src="{{ get_url(path=src) }}" alt="{{ alt }}">
</div>
</div>
</div>