33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
{% load static %}
|
|
<div class="w_one_present{% if forloop.counter|divisibleby:2 %} even{% else %} odd{% endif %}" style="{% if widget.bg_color %}background: {{ widget.bg_color }};{% endif %}
|
|
{# {% if not bg_color %}padding: 0;{% endif %}#}
|
|
">
|
|
<div class="txt_part_w_one_present">
|
|
{% if widget.name %}
|
|
<div class="title_w_one_present standart_txt">
|
|
{{ widget.name }}
|
|
</div>
|
|
{% endif %}
|
|
{% if widget.description %}
|
|
<div class="splinner_w_one_present"></div>
|
|
<div class="description_w_one_present standart_txt">
|
|
{{ widget.description|safe|linebreaksbr }}
|
|
</div>
|
|
{% endif %}
|
|
{% with name_w='presentAerBim' %}
|
|
{% include 'blocks/block_elements/be_button.html' %}
|
|
{% endwith %}
|
|
</div>
|
|
{% if widget.video_url or widget.picture %}
|
|
<div class="img_container_part_w_one_present">
|
|
{% if widget.picture %}
|
|
<img class="img_part_w_one_present" src="{{ MEDIA_URL }}{{ widget.picture }}" alt="">
|
|
{% elif widget.video_url %}
|
|
<div>{{ widget.video_url|safe }}</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% with name_w='presentAerBim' mobile='mobile' %}
|
|
{% include 'blocks/block_elements/be_button.html' %}
|
|
{% endwith %}
|
|
</div> |