root / cloudcms / templates / content / about_block.html @ c1468bcc
History | View | Annotate | Download (1.7 kB)
1 |
<div class=" |
---|---|
2 |
section positioned
|
3 |
{% if content.image_position == "left" or == "right" %}withimg{% endif %}" |
4 |
style="{% spaceless %} |
5 |
{% if content.position_left %}left:{{ content.position_left }}px;{% endif %}
|
6 |
{% if content.position_top %}top:{{ content.position_top }}px;{% endif %}
|
7 |
{% if content.size_width %}width:{{ content.size_width }}px;{% endif %}
|
8 |
{% if content.size_height %}height:{{ content.size_height }}px;{% endif %}
|
9 |
{% if content.color %}color:{{ content.color }};{% endif %}
|
10 |
{% if content.offset_left %}padding-left:{{ content.offset_left }}px;float:left;{% endif %}
|
11 |
{% if content.offset_top %}padding-top:{{ content.offset_top }}px;float:left;{% endif %}
|
12 |
{% endspaceless %}"> |
13 |
|
14 |
<div class="section-inner"> |
15 |
{% if content.image_position == "left" %} |
16 |
<div class="img"> |
17 |
<img src="{{ content.image.get_absolute_url }}" alt="{{ content.title }}" /> |
18 |
</div>
|
19 |
{% endif %} |
20 |
<div class="content"> |
21 |
{% if content.image_position == "top" %} |
22 |
<div class="img"> |
23 |
<img src="{{ content.image.get_absolute_url }}" alt="{{ content.title }}" /> |
24 |
</div>
|
25 |
{% endif %} |
26 |
<h3>{{ content.title }}</h3> |
27 |
<div class="text">{{ content.content }}</div> |
28 |
{% if content.image_position == "bottom" %} |
29 |
<div class="img"> |
30 |
<img src="{{ content.image.get_absolute_url }}" alt="{{ content.title }}" /> |
31 |
</div>
|
32 |
{% endif %} |
33 |
</div>
|
34 |
{% if content.image_position == "right" %} |
35 |
<div class="img"> |
36 |
<img src="{{ content.image.get_absolute_url }}" alt="{{ content.title }}" /> |
37 |
</div>
|
38 |
{% endif %} |
39 |
</div>
|
40 |
</div>
|