Commit 2f898ebc authored by Jeroen's avatar Jeroen

Hey,

This should be it. For now... I applied most of the remarks you told me to. Only the seemingly floating squares... well let's just say they add to the mysteriousness of the page. I can't delete them. I don't think my site would look without them. We'll just see what the users think of it shall we? I can ask them abou the squares once it's released. So, all there is now is the fat vertical bar in NS 4.76. I also don't know what it looks like in Opera... and UnConeD, does it show a bit OK in IE? I polished the navigation box' algorithm a bit. Even more stable now.

I do have one remark Dries. When submitting something you don't have to choose story or book anymore but you have to select one of the categories. Is this OK? But wouldn't it be more logical to choose what type of thing you are going to submit. I don't think you will be placing an Announcement in the book. By the way how do you add a page to the book now? I can't find it... Or do I have to create book and story myself... Ahh heck Dries it's just broken OK? ;)

For the rest. Oh yes, I am not going to work with the categories. The squares in front of a $story->title represent the topic the title is under (e.g.: linux, science, Media, Announcements) But not the category (I see them as a some sort of sub-folder in each topic) I haven't found a good way to display it yet. I still have to find how to import it in the lay-out so it wouldn't mess up. I already liked the fact that I don't have text-links for the former categories anymore... We'll see what happens...

Jeroen.
parent 599677ef
......@@ -13,8 +13,7 @@ class Theme {
function header() {
global $PHP_SELF;
global $REQUEST_URI;
global $PHP_SELF, $REQUEST_URI, $cid, $id;
$true = 0;
......@@ -42,7 +41,7 @@ function header() {
a:hover { color: <?php echo $color; ?>; }
td { font-family: Arial,Helvetica; font-size: 10pt; }
.spacer1 { background-color: #000000; }
.small { font-family: Arial; font-size: 10pt; }
.small { font-family: Arial,Helvetica; font-size: 10pt; }
.box { font-size: 12pt; }
</style>
<script language="JavaScript">
......@@ -72,12 +71,12 @@ function do_nav() {
<select name="navdrop" onChange="do_nav()" class="small">
<option value="index.php" <?php if ($PHP_SELF == "/index.php") { echo "selected"; $true = 1; } ?>>Main</option>
<option value="account.php" <?php if ($PHP_SELF == "/account.php") { echo "selected"; $true = 1; } ?>>Account</option>
<option value="module.php?mod=diary" <?php if (substr($REQUEST_URI,12,9) == "mod=diary") { echo "selected"; $true = 1; } ?>>Diary</option>
<option value="module.php?mod=book" <?php if ($REQUEST_URI == "/module.php?mod=book") { echo "selected"; $true = 1; } ?>>Handbook</option>
<option value="submit.php" <?php if ($PHP_SELF == "/submit.php") { echo "selected"; $true = 1; } ?>>Submit news</option>
<option value="module.php?mod=diary" <?php if (strstr($REQUEST_URI, "mod=diary")) { echo "selected"; $true = 1; } ?>>Diary</option>
<option value="module.php?mod=book" <?php if (strstr($REQUEST_URI, "mod=book")) { echo "selected"; $true = 1; } ?>>Handbook</option>
<option value="submit.php" <?php if ($PHP_SELF == "/submit.php") { echo "selected"; $true = 1; } ?>>Submit</option>
<option value="search.php" <?php if ($PHP_SELF == "/search.php") { echo "selected"; $true = 1; } ?>>Search</option>
<?php if ($REQUEST_URI == "/module.php?mod=moderation") echo "<option selected>Moderation</option>";
if (!$true) { echo "<option selected>Node "; $id = substr($REQUEST_URI,strlen($REQUEST_URI) - 3); if (is_int((int) $id)) echo $id; echo"</option>"; } ?>
<?php if ($REQUEST_URI == "/module.php?mod=moderation") { $true = 1; echo "<option selected>Moderation</option>"; }
if (!$true) { echo "<option selected>"; if($cid) echo "Node $cid"; else if($id) echo "Node $id"; else echo "Other"; echo"</option>"; } ?>
</select>
<noscript><input type="submit" value="Go!"></noscript>
</td>
......@@ -109,14 +108,14 @@ function do_nav() {
function story($story, $reply = 0) {
switch ($story->section) {
case "Announcements": $color = "#c4a2a2"; $img = "square2.gif"; break;
case "Drop.org - Drupal": $color = "#a2c4a7"; $img = "square3.gif"; break;
case "Science": $color = "#c2c4a2"; $img = "square4.gif"; break;
case "Drop.org - Meta": $color = "#ad4322"; $img = "square5.gif"; break;
case "Coding & Webdesign": $color = "#6c6c23"; $img = "square6.gif"; break;
case "Computers & Internet": $color = "#d31717"; $img = "square7.gif"; break;
case "News & Media": $color = "#383838"; $img = "square8.gif"; break;
switch ($story->tid) {
case 0: $color = "#c4a2a2"; $img = "square2.gif"; break;
case 1: $color = "#a2c4a7"; $img = "square3.gif"; break;
case 2: $color = "#c2c4a2"; $img = "square4.gif"; break;
case 3: $color = "#ad4322"; $img = "square5.gif"; break;
case 4: $color = "#6c6c23"; $img = "square6.gif"; break;
case 5: $color = "#d31717"; $img = "square7.gif"; break;
case 6: $color = "#383838"; $img = "square8.gif"; break;
default: $color = "#a3b1c7"; $img = "square.gif";
}
......@@ -125,8 +124,8 @@ function story($story, $reply = 0) {
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td>
<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")); ?>
<a href="index.php?topic=<?php echo $story->tid; ?>"><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")); echo $story->cid; ?>
</td>
</tr>
<tr><td bgcolor="<?php echo $color; ?>"><img src="themes/jeroen2/images/pixel.gif" width="1" height="1" alt="" border="0" /></td></tr>
......@@ -166,7 +165,7 @@ function comment($comment, $link = "") {
<table width="90%" border="0" cellpadding="0" cellspacing="1" heigth="100%">
<tr>
<td class="box">
<td valign="bottom" 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>
......@@ -174,13 +173,13 @@ function comment($comment, $link = "") {
</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>
<td colspan="2">
<br />
<?php echo check_output($comment->comment, 1); ?>
</td>
</tr>
<tr>
<td align="right">
<td align="right" colspan="2">
<br />
[ <?php echo $link; ?> ]<br />
&nbsp;
......
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