Commit 77eb3176 authored by Jeroen's avatar Jeroen

Hey,

This is another version of my theme. I hope things will look better now, allthough UnConeD but also Dries told me that there were no/only one fat border. It was due to the DOCTYPE I added. People at irc.homelien.no #html told me that the doctype _should_ not affect the code, and that the browser _should_ ommit the doctype line. Well it looks like it doesn't always do that. Therefore I commented out <!-- --> the doctype. I don't know if w3 is going to like this but I sure hope so. For the drop down menu at the top. I know that it doesn't work, and it still doesn't I just copy pasted the code from http://linux.com/ but it doesn't seem to work. It doesn't remember the current page. If anyone knows why this would be, make sure to let me know please. They set the variable location to something in the javascript but don't do anything with it... I did a search on the linux.com code and they only use it somewhere at the top (they compare top.location.href with location.href... But I don't know what it means... Even if I copy pasted that part in my code it still didn't work. Therefore, this commit with a drop down menu that works for 95%... *snif*
I added a bit more color, as UnConeD asked with some random stuff too (you know how I love random thingies), and I changed the font-size, but already said that in another mail... All I am looking for now is a logo to go in the upper left corner... I tried some thingies, but really suck at doing logos, not only that but also the HTML didn't want to co-operate.

Jeroen.

P.S.: this can count as a bug report. When clicking a section at the main page it should give you a search of all stories of that section shouldn't it? Well it doesn't do that, nomatter what you click there are never any results...

Oh UnConeD, what do you mean with the td on the left being to wide? It's OK here in linux, it is set to 20%. Maybe you could mail me a little screenshot?
parent 296fb7b9
......@@ -13,28 +13,41 @@ class Theme {
function header() {
switch (rand(0,8)) {
case 0: $color = "#c4a2a2"; break;
case 1: $color = "#a2c4a7"; break;
case 2: $color = "#c2c4a2"; break;
case 3: $color = "#ad4322"; break;
case 4: $color = "#6c6c23"; break;
case 6: $color = "#d31717"; break;
case 7: $color = "#383838"; break;
default: $color = "#a3b1c7";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -->
<html>
<head>
<title><?php echo variable_get(site_name, "drupal"); ?></title>
<style type="text/css">
<!--
a { text-decoration: none; font-size: 12pt; color: #000000 }
a.active { color: #000000}
a.visited { color: #000000 }
a:hover { color: black}
a { text-decoration: none; color: #24677f }
a.active { color: #24677f }
a.visited { color: #24677f }
a:hover { color: <?php echo $color; ?> }
td { font-family: Arial; font-size: 10pt }
.spacer1 { background-color: #000000 }
.small { font-family: Arial; font-size: 10pt }
.box { font-size: 12pt }
-->
</style>
<script language="javascript">
<script language="JavaScript">
<!--
function do_nav() {
if (document.navmenu.sitedrop.options[document.navmenu.sitedrop.selectedIndex].value != "none") {
location = document.navmenu.sitedrop.options[document.navmenu.sitedrop.selectedIndex].value
location = document.navmenu.sitedrop.options[document.navmenu.sitedrop.selectedIndex].value;
}
}
-->
......@@ -44,26 +57,25 @@ function do_nav() {
<body bgcolor="#878787" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="middle" colspan="2" width="20%" class="header">
<td align="left" valign="middle" width="20%" heigth="5%" class="header">
&nbsp;<b><a href="http://drop.org/">drop.org</a></b>
</td>
<td class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /></td>
<form name="navmenu" action="" method="get">
<td align="right" valign="top" width="80%">
<select name="sitedrop" onChange="do_nav()">
<option value="/" selected>Main</option>
<option value="/account.php/">Account</option>
<option value="/module.php?mod=diary/">Diary</option>
<option value="/module.php?mod=handbook/">Handbook</option>
<option value="/submit.php/">Submit news</option>
<option value="/search/">Search</option>
<select name="sitedrop" onChange="do_nav()" class="small">
<option value="index.php" selected>Main</option>
<option value="account.php">Account</option>
<option value="module.php?mod=diary">Diary</option>
<option value="module.php?mod=book">Handbook</option>
<option value="submit.php">Submit news</option>
<option value="search">Search</option>
</select>
<noscript><input type="submit" value="Go!"></noscript>
</td>
</form>
</tr>
<tr>
<td colspan="3" class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0"><br /></td>
</tr>
<tr><td colspan="3" class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /></td></tr>
<tr>
<td align="center" valign="top" width="20%">
<br />
......@@ -76,8 +88,8 @@ function do_nav() {
?>
</td>
<td class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0"><br /></td>
<td align="center" valign="top" bgcolor="#f4f4f4" width="80%">
<td class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /></td>
<td align="center" valign="top" bgcolor="#f4f4f4" width="80%" height="100%">
<br />
<?php
......@@ -99,16 +111,14 @@ function story($story, $reply = 0) {
?>
<table border="0" cellpadding="0" cellspacing="1" width="95%">
<table border="0" cellpadding="0" cellspacing="1" width="95%" height="100%">
<tr>
<td>
<img src="themes/jeroen2/images/<?php echo $img; ?>">&nbsp;<b><?php echo check_output($story->title); ?></b>
<?php echo strtr(t(" By %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp), "small")); ?>
<a href="search.php?category=<?php echo urlencode($story->section); ?>"><img src="themes/jeroen2/images/<?php echo $img; ?>" border="0" /></a>&nbsp;<b style="font-size: 12pt"><?php echo check_output($story->title); ?></b>
<?php echo strtr(t("by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp), "small")); ?>
</td>
</tr>
<tr>
<td bgcolor="<?php echo $color; ?>"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0"><br /></td>
</tr>
<tr><td bgcolor="<?php echo $color; ?>"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /></td></tr>
<tr>
<td>
......@@ -140,25 +150,64 @@ function story($story, $reply = 0) {
function comment($comment, $link = "") {
echo "<a name=\"$comment->cid\"></a>\n";
?>
<table width="90%" border="0" cellpadding="0" cellspacing="1" heigth="100%">
<tr>
<td class="box">
<img src="themes/jeroen2/images/square.gif" />&nbsp;<b><?php echo check_output($comment->subject); ?></b>
<font size="-1"><?php echo strtr(t(" by %a on %b"), array("%a" => format_username($comment->userid), "%b" => format_date($comment->timestamp), "small")); ?></font>
</td>
<td align="right"><?php echo comment_moderation($comment); ?></td>
</tr>
<tr><td colspan="2" class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /><br></td></tr>
<tr>
<td>
<br />
<?php echo check_output($comment->comment, 1); ?>
</td>
</tr>
<tr>
<td align="right">
<br />
[ <?php echo $link; ?> ]<br />
&nbsp;
</td>
</tr>
</table>
<?php
} // close comment function
function box($subject, $content, $options = "") {
switch (rand(0,7)) {
case 0: $img = "square.gif"; break;
case 1: $img = "square2.gif"; break;
case 2: $img = "square3.gif"; break;
case 3: $img = "square4.gif"; break;
case 4: $img = "square5.gif"; break;
case 6: $img = "square6.gif"; break;
case 7: $img = "square7.gif"; break;
default: $img = "square.gif";
}
?>
<table width="90%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td><img src="themes/jeroen2/images/square.gif">&nbsp;<?php echo $subject; ?></td>
</tr>
<tr>
<td class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0"><br></td>
<td class="box"><img src="themes/jeroen2/images/square.gif" />&nbsp;<b><?php echo $subject; ?></b></td>
</tr>
<tr><td class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /><br></td></tr>
<tr>
<td>
<br />
<?php echo $content; ?>
<br />&nbsp;
</td>
</tr>
<tr><td align="right" class="box"><img src="themes/jeroen2/images/<?php echo $img; ?>" /><br />&nbsp;</td></tr>
</table>
<?php
......@@ -169,16 +218,17 @@ function footer() {
?>
&nbsp; <!-- I call this the super-space, withouth it, the comment section looks crappy at the bottom :) -->
</td>
</tr>
<tr>
<td colspan="3" class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0"><br /></td>
</tr>
<tr><td colspan="3" class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /></td></tr>
<tr>
<td align="left">
&nbsp;Creator: <a href="mailto:jeroen@drop.org">Jeroen</a>
&nbsp;<a href="mailto:info@drop.org">info@drop.org</a>
</td>
<td class="spacer1"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /></td>
<td align="right">
The weblog for a dynamic community powered by Drupal&nbsp;
</td>
</tr>
</table>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment