web2019/templates/shortcodes/layout_centered_img.html

15 lines
473 B
HTML
Raw Permalink Normal View History

<div class="{% if css %}{{ css }}{% else %}row d-flex align-items-center mt-5 mb-5{% endif %}">
2019-07-22 21:18:11 +08:00
<div class="col-12 col-md-8 mx-auto text-center">
2019-07-22 21:18:11 +08:00
{% 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>