0.0.33 block photo_n_text
This commit is contained in:
21
templates/blocks/b_photo_n_text.html
Normal file
21
templates/blocks/b_photo_n_text.html
Normal 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>
|
||||
Reference in New Issue
Block a user