blob: 70dca67c14ca229e287884ed82a25a808626f79e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
div.ads {
text-align: center;
width: 125px;
}
div.ads, body {
margin: 0;
padding: 0;
background-color: #DDDAEC;
}
div.ads a img {
max-width: 125px;
max-height: 125px;
border: 0 none;
margin: 0.25em 0em;
}
div.ads hr {
width: 100%;
border: 0 none;
background-color: #000;
height: 1px;
text-align: center;
clear: both;
}
div.ads a h2 {
font-size: 100%;
text-align: center;
text-decoration: none;
}
div.ads a p {
font-size: 80%;
text-align: justify;
text-decoration: none;
}
div.arbit {
width:100%;
height: 100%
}
div.arbit a {
text-decoration: underline;
color: #0000FF;
}
div.arbit h2 {
font-size: 100%;
text-align: center;
text-decoration: none;
}
div.arbit p {
font-size: 80%;
text-align: justify;
text-decoration: none;
}
</style>
</head>
<body>
<div class="ads">
{% for ad in ads %}
<hr />
{% ifequal ad.type 'txt' %}
<a href="{{ad.url}}" target="_parent">
<h2>{{ ad.title }}</h2>
<p>
{{ ad.text }}
</p>
</a>
{% else %}
{% ifequal ad.type 'html' %}
<div class="arbit">
{{ ad.html|safe }}
</div>
{% else %}
<a href="{{ad.url}}" target="_parent"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a>
{% endifequal %}
{% endifequal %}
{% endfor %}
<hr />
</div>
</body>
</html>
|