kopia lustrzana https://github.com/rtts/django-simplecms
don’t wrap included sections by default
rodzic
b106d740a0
commit
10e90052f7
|
@ -18,9 +18,7 @@
|
||||||
|
|
||||||
{% for section in object.sections.all %}
|
{% for section in object.sections.all %}
|
||||||
<section class="{{section.type}} color{{section.color}}">
|
<section class="{{section.type}} color{{section.color}}">
|
||||||
<div class="wrapper">
|
{% include 'cms/sections/'|add:section.type|add:'.html' %}
|
||||||
{% include 'cms/sections/'|add:section.type|add:'.html' %}
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,33 +1,37 @@
|
||||||
{% load thumbnail embed_video_tags %}
|
{% load thumbnail embed_video_tags %}
|
||||||
|
|
||||||
{% if section.image %}
|
<div class="wrapper">
|
||||||
<div class="image">
|
|
||||||
<img alt="" src="{% thumbnail section.image 800x800 %}">
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="title">
|
{% if section.image %}
|
||||||
<h1>
|
<div class="image">
|
||||||
{{section.title}}
|
<img alt="" src="{% thumbnail section.image 800x800 %}">
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if section.content %}
|
|
||||||
<div class="content">
|
|
||||||
{{section.content|safe}}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if section.video %}
|
|
||||||
<div class="video">
|
|
||||||
<div class="iframe">
|
|
||||||
{% video section.video '800x600' %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if section.button_text and section.button_link %}
|
<div class="title">
|
||||||
<div class="button">
|
<h1>
|
||||||
<a href="{{section.button_link}}">{{section.button_text}}</a>
|
{{section.title}}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
|
{% if section.content %}
|
||||||
|
<div class="content">
|
||||||
|
{{section.content|safe}}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if section.video %}
|
||||||
|
<div class="video">
|
||||||
|
<div class="iframe">
|
||||||
|
{% video section.video '800x600' %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if section.button_text and section.button_link %}
|
||||||
|
<div class="button">
|
||||||
|
<a href="{{section.button_link}}">{{section.button_text}}</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
Ładowanie…
Reference in New Issue