Revision c6fdba44 cloudcms/templates/content/about_block.html
b/cloudcms/templates/content/about_block.html | ||
---|---|---|
1 |
<div class=" |
|
2 |
section positioned |
|
3 |
{% if content.image_position == "left" or content.image_position == "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|safe }}</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> |
|
1 |
<div class="two-cols clearfix dotted" > |
|
2 |
<div class="rt centered"> |
|
3 |
<img src="{{ content.image.get_absolute_url }}" alt="{{ content.title }}" /> |
|
4 |
</div> |
|
5 |
<div class="lt"> |
|
6 |
<h2 style=" |
|
7 |
{% spaceless %} |
|
8 |
{% if content.color %}color:{{ content.color }};{% endif %} |
|
9 |
|
|
10 |
{% endspaceless %}"> |
|
11 |
{{ content.title }} |
|
12 |
</h2> |
|
13 |
<div>{{ content.content|safe }}</div> |
|
14 |
</div> |
|
40 | 15 |
</div> |
Also available in: Unified diff