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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
|
<?php
/*********************************************************************
Theme: Jeroen
Author: Jeroen Bensch (Jeroen)
Email: jeroen@drop.org
Description: Very graphical theme using a cool pipe-design.
*********************************************************************/
class Theme extends BaseTheme {
// General colorset that can be used for this theme
var $foreground = "#000000";
var $background = "#E7E7E7";
/*
I am going to use some colors throughout this theme:
#000000 : black used for all links and the table in every box you'll see, I use it to create the thin black border around each.
#E7E7E7 : light grey bgcolor for every box you'll see before the background gets drawn over it.
#6C6C6C : grey used as bgcolor before the articles' and abstacts' background is drawn.
#202020 : dark grey text used on the headers in abstract and article.
#FEFEFE : white text on the dark grey headers of all boxes with the drop.org background in it.
#E09226 : orange-brown rust color used to give some finishing touches around links, you'll see. :)
*/
function header() {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php echo variable_get(site_name, "drupal"); ?> - Tears of technology</title>
<style type="text/css">
<!--
body,p,div,li,ul,td,em,FONT,BLOCKQUOTE,FORM{ font-size: 10pt; font-family: Helvetica,Lucida,sans-serif; }
SMALL { font-size: 10pt; }
-->
</style>
</head>
<body text="#202020" bgcolor="#FEFEFE" background="themes/jeroen/images/background.gif" alink="#000000" link="#000000" vlink="#000000">
<table width="100%" align="left" cellpadding="0" cellspacing="6" border="0">
<tr>
<td colspan="2" width="80%">
<?php $img = (rand(0,150) == 75) ? "logo2.gif" : "logo.gif"; ?>
<img src="themes/jeroen/images/<?php echo $img; ?>" alt=""><br /><br />
</td>
<td width="20%">
<?php
$mybox = 1;
$this->box("Drop where?", "<td align=\"left\" valign=\"top\">
<a href=\"index.php\">home</a><br />
<a href=\"module.php?mod=book\">handbook</a><br />
<a href=\"search.php\">search</a>
</td>
<td align=\"right\" valign=\"top\">
<a href=\"module.php?mod=diary\">diary</a><br />
<a href=\"submit.php\">submit</a><br />
<a href=\"account.php\">account</a>
</td>");
?>
</td>
</tr>
<tr>
<td valign="top" align="right">
<?php
theme_blocks("left", $this);
?>
</td>
<td width="80%" valign="top" align="left">
<?php
} // close header function
function node($node, $main = 0, $links = 0) {
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="bottom" width="20" height="20" background="themes/jeroen/images/<?php echo (rand(0, 1) ? "news1.gif" : "news3.gif"); ?>" nowrap> </td>
<td align="center" valign="top" width="100%" background="themes/jeroen/images/newsmiddle.gif" nowrap>
<B><?php echo "". check_output($node->title) .""; ?></B>
</td>
<td align="right" valign="bottom" width="20" background="themes/jeroen/images/<?php echo (rand(0, 1) == 0) ? "news2.gif" : "news4.gif"; if (rand(0,100) == 50) "news5.gif"; ?>" nowrap> </td>
</tr>
<tr>
<td></td>
<td>
<table border="0" cellpadding="1" cellspacing="0" BGCOLOR="#000000" width="100%">
<tr>
<td>
<table border="0" cellpadding="2" cellspacing="0" width="100%" BGCOLOR="#E7E7E7" background="themes/jeroen/images/sketch.gif">
<tr>
<td align="left" background="themes/jeroen/images/menutitle.gif" nowrap>
<FONT COLOR="#FEFEFE">
<?php
switch (rand(0,13)) {
case 0: $how = "Yelled"; break; case 1: $how = "Whispered"; break;
case 2: $how = "Reported"; break; case 3: $how = "Posted"; break;
case 4: $how = "Beamed through"; break; case 5: $how = "Faxed"; break;
case 6: $how = "Tossed"; break; case 7: $how = "Morsed"; break;
case 8: $how = "Flagged"; break; case 9: $how = "Written"; break;
case 10: $how = "Made up"; break; case 11: $how = "Uploaded"; break;
case 12: $how = "Forged"; break;
default: $how = "Sneaked through";
}
echo "<FONT SIZE=\"-1\">". strtr(t("$how by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp), "large")) ."</FONT>";
?>
</FONT>
</td>
<?php
echo "<td align=\"right\" background=\"themes/jeroen/images/menutitle.gif\" nowrap><b>". node_index($node) ."</b>";
?>
</td>
</tr>
<tr>
<td colspan="2" valign="top" width="100%">
<?php
echo "<br />". check_output($node->body, 1) ."<br />";
?>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<?php
if (node_links($links, $node, $main))
echo $this->links($links, $main);
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<?php
} // close node function
function comment($comment, $link = "") {
echo "<A NAME=\"$comment->cid\"></a>\n";
// Create comment header:
echo " <table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\">";
echo " <tr>";
echo " <td>";
echo " <table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" BGCOLOR=\"#000000\" width=\"100%\">";
echo " <tr>";
echo " <td>";
echo " <table background=\"themes/jeroen/images/menutitle.gif\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">";
echo " <tr>";
echo " <td>";
echo " <table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">";
// Subject:
echo " <tr>";
echo " <td align=\"right\" width=\"5%\">";
echo " <FONT COLOR=\"#FEFEFE\"><B>". t("Subject") .":</B>";
echo " </td>";
echo " <td width=\"80%\">";
echo " <B>". check_output($comment->subject) ."</B>";
echo " </FONT>";
echo " </td>";
// Moderation:
echo " <td BGCOLOR=\"#6C6C6C\" background=\"themes/jeroen/images/menutitle.gif\" align=\"right\" ROWSPAN=\"2\" valign=\"middle\" width=\"15%\">";
echo " <FONT COLOR=\"#000000\">";
echo comment_moderation($comment);
echo " </FONT>";
echo " </td>";
echo " </tr>";
// Author:
echo " <tr>";
echo " <td align=\"right\"><FONT COLOR=\"#FEFEFE\">". t("Author") .":</FONT></td><td><B>". format_username($comment->userid) ."</B> ";
if ($comment->userid) {
// Display extra information line:
if ($comment->fake_email) $info .= format_email($comment->fake_email);
if (eregi("http://",$comment->url)) $info .= " | " . format_url($comment->url);
}
// Date:
echo " <FONT COLOR=\"#FEFEFE\">on ". format_date($comment->timestamp) ."</FONT>";
echo " </td>";
echo " </tr>";
echo " </table>";
echo " </td>";
echo " </tr>";
// Print body of comment:
if ($comment) echo "
<tr>
<td BGCOLOR=\"#E7E7E7\" background=\"themes/jeroen/images/sketch.gif\">". check_output($comment->comment, 1) ."</td>
</tr>";
// Print bottom link(s):
echo " <tr><td align=\"right\" BGCOLOR=\"#E7E7E7\" background=\"themes/jeroen/images/sketch.gif\"><FONT COLOR=\"#E09226\">[</FONT> $link <FONT COLOR=\"#E09226\">]</FONT></td></tr>";
echo " </table>";
echo " </td>";
echo " </tr>";
echo " </table>";
echo " </td>";
echo " </tr>";
echo " </table>";
echo " <br />";
} // close comment function
function box($subject, $content, $options = "") {
$img = (rand(0, 50) == 25) ? "boxbottomright2.gif" : "boxbottomright1.gif";
$width = rand(10, 200);
$img2 = (rand(0, 100) == 50) ? "boxtopleftside2.gif" : "boxtopleftside1.gif";
?>
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td background="themes/jeroen/images/boxtopleft.gif" width="20" height="20" border="0" nowrap> </td>
<td width="<?php echo $width; ?>" background="themes/jeroen/images/boxtop.gif"> </td>
<td background="themes/jeroen/images/boxtopmiddle.gif" nowrap> </td>
<td background="themes/jeroen/images/boxtop.gif"nowrap> </td>
<td width="20" background="themes/jeroen/images/boxtopright.gif" nowrap> </td>
</tr>
<tr>
<td background="themes/jeroen/images/<?php echo $img2; ?>" height="20"> </td>
<td align="center" width="100%" colspan="3" background="themes/jeroen/images/menutitle.gif" nowrap>
<FONT COLOR="#FEFEFE"><?php echo $subject; ?></FONT>
</td>
<td background="themes/jeroen/images/boxtoprightside.gif"> </td>
</tr>
<tr>
<td background="themes/jeroen/images/boxleft.gif" nowrap> </td>
<td colspan="3" align="center" BGCOLOR="#E7E7E7" background="themes/jeroen/images/sketch.gif">
<table width="100%" border="0">
<tr>
<?php
if ($mybox == 1) {
echo $content;
$mybox = 0;
}
else {
echo "<td>";
echo $content;
echo "</td>";
}
?>
</tr>
</table>
</td>
<td background="themes/jeroen/images/boxright.gif" nowrap> </td>
</tr>
<tr>
<td background="themes/jeroen/images/boxbottomleft.gif" height="20" nowrap> </td>
<td colspan="3" background="themes/jeroen/images/boxbottom.gif"> </td>
<td background="themes/jeroen/images/<?php echo $img; ?>" nowrap> </td>
</tr>
</table>
<br />
<?php
} // close box function
function footer() {
?>
</td>
<td width="20%" valign="top" align="right">
<?php
global $PHP_SELF;
theme_account($this);
theme_blocks("right", $this);
?>
</td>
</tr>
<tr>
<td></td>
<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" width="20" height="20" background="themes/jeroen/images/footerleft.gif" nowrap> </td>
<td width="100%" background="themes/jeroen/images/footer.gif" align="center" valign="middle">
<FONT COLOR="#E09226" SIZE="2">[ <?php print theme_link(); ?> ] </FONT>
</td>
<td align="right" width="20" background="themes/jeroen/images/footerright.gif" nowrap> </td>
</tr>
</table>
</td>
<td></td>
</tr>
</table>
</body>
</html>
<?php
}
}
?>
|