0.0.33 block photo_n_text

This commit is contained in:
SDE
2023-12-06 14:23:43 +03:00
parent 1f2c47410a
commit 7bb8ef33e6
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<div>
{% for widget in block.get_widgets %}
<div>
<div>
{% if widget.name %}
<div>{{ widget.name }}</div>
{% endif %}
{% if widget.description %}
<div>{{ widget.description|safe|linebreaksbr }}</div>
{% endif %}
</div>
<div>
{% if widget.video_url %}
<div>{{ widget.video_url|safe }}</div>
{% elif widget.picture %}
<img src="{{ MEDIA_URL }}{{ widget.picture }}" alt="{{ widget.name }}" />
{% endif %}
</div>
</div>
{% endfor %}
</div>