2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-31 11:57:31 +00:00
|
|
|
/*********************************************************************
|
2001-03-31 14:58:37 +00:00
|
|
|
|
2001-03-31 11:57:31 +00:00
|
|
|
Theme: Jeroen
|
|
|
|
Author: Jeroen Bensch (Jeroen)
|
|
|
|
Email: jeroen@drop.org
|
|
|
|
Description: Very graphical theme using a cool pipe-design.
|
2001-03-31 14:58:37 +00:00
|
|
|
|
2001-03-31 11:57:31 +00:00
|
|
|
*********************************************************************/
|
2001-03-31 14:58:37 +00:00
|
|
|
|
2001-06-10 13:53:45 +00:00
|
|
|
class Theme extends BaseTheme {
|
This a rather large commit that needs a lot of fine-tuning. If you
update, you'll break your site as you need switching from structure
to index.module: so this can be considered an intermediate commit.
If you upgrade, and you are welcome to, just create a collection
called "section" (for now) and assign your nodes some attributes
in the described format.
Feedback and bugreports are welcomed. Questions will be answered.
CHANGES:
- comment system:
+ when replying to a node (rather then to a comment), that
node is displayed above the reply form.
+ when replying to a comment (rather then to a node), that
comment is displayd above the reply form.
- removed structure.inc, removed structure.module.
- node.inc:
+ added 2 new node functions called 'node_attribute_edit()' and
'node_attribute_save()' used to 'hook in' any indexing system
including your home-brewed stuff if you'd want to. Currently,
index.module is the facto default index system.
See story.module for usage.
- book.module, story.module, poll.module, page.module, forum.module:
+ added preview functionality to administration section (via node
module).
+ removed all references to structure.inc (category, topic).
- moderate.module:
+ removed all references to structure.inc (category, topic).
- book.module, story.module, page.module, forum.module:
+ increased the sizes of some textareas.
- submit.php:
+ removed all references to structure.inc (category, topic).
- marvin.theme:
+ removed dead code: function story() was depricated.
- unconed.theme:
+ removed hardcoded references to drop.org.
- marvin.theme, unconed.theme, jeroen.theme, yaroon.theme, example.theme:
+ removed all references to structure.inc (category, topic).
TODO:
- file.module, trip_link.module:
+ update preview functionality:
see story.module for example.
+ remove references to 'cid' and 'tid', use 'attribute' instead:
see story.module for example.
- extend and build upon index.module as well as making it configurable
2001-06-10 15:01:20 +00:00
|
|
|
// General colorset that can be used for this theme
|
2001-06-09 19:31:34 +00:00
|
|
|
var $foreground = "#000000";
|
|
|
|
var $background = "#E7E7E7";
|
This a rather large commit that needs a lot of fine-tuning. If you
update, you'll break your site as you need switching from structure
to index.module: so this can be considered an intermediate commit.
If you upgrade, and you are welcome to, just create a collection
called "section" (for now) and assign your nodes some attributes
in the described format.
Feedback and bugreports are welcomed. Questions will be answered.
CHANGES:
- comment system:
+ when replying to a node (rather then to a comment), that
node is displayed above the reply form.
+ when replying to a comment (rather then to a node), that
comment is displayd above the reply form.
- removed structure.inc, removed structure.module.
- node.inc:
+ added 2 new node functions called 'node_attribute_edit()' and
'node_attribute_save()' used to 'hook in' any indexing system
including your home-brewed stuff if you'd want to. Currently,
index.module is the facto default index system.
See story.module for usage.
- book.module, story.module, poll.module, page.module, forum.module:
+ added preview functionality to administration section (via node
module).
+ removed all references to structure.inc (category, topic).
- moderate.module:
+ removed all references to structure.inc (category, topic).
- book.module, story.module, page.module, forum.module:
+ increased the sizes of some textareas.
- submit.php:
+ removed all references to structure.inc (category, topic).
- marvin.theme:
+ removed dead code: function story() was depricated.
- unconed.theme:
+ removed hardcoded references to drop.org.
- marvin.theme, unconed.theme, jeroen.theme, yaroon.theme, example.theme:
+ removed all references to structure.inc (category, topic).
TODO:
- file.module, trip_link.module:
+ update preview functionality:
see story.module for example.
+ remove references to 'cid' and 'tid', use 'attribute' instead:
see story.module for example.
- extend and build upon index.module as well as making it configurable
2001-06-10 15:01:20 +00:00
|
|
|
|
2001-02-28 18:02:06 +00:00
|
|
|
/*
|
|
|
|
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. :)
|
|
|
|
*/
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-01-15 11:20:58 +00:00
|
|
|
function header() {
|
2001-04-16 20:39:12 +00:00
|
|
|
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-01-10 18:51:15 +00:00
|
|
|
|
Hi all,
I tweaked my theme a bit, don't know if it'll help much but I was able to squeeze a table out of abstract and article. So what you'd say? Well, since the abstract function is called for every post on the main page, I thought that it'd improve it a bit. Of course it isn't much but less tables to show the same is always a good thing. Also, due of the deleted table, I could delete some backgrounds (less traffic from the server to the client) and placed them once in a TABLE header. OK, but a cool side-effect is that it's more HTML 4.01 compliant. Because BACKGROUNDs are allowed in TABLEs and I think it's a bit unclear if they can be in TD yes or no. Either way, this brought to my attention that my !DOCTYPE is strict... I started of strict though... But I think it's a better idea to switch to transitional/loose. OK I think that was it... Oh also because of the changed TABLE structure I had to delete some BGCOLORs. Again, it might be a teeny weeny bit faster, but when you see my site being build up it isn't that nice anymore. (bgcolors are displayed faster than backgrounds). Nevertheless its the result that counts not? Let's hope everything still works.
Jeroen.
2001-03-05 13:56:41 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2001-03-24 09:59:06 +00:00
|
|
|
<html>
|
2001-03-08 08:16:23 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
<head>
|
2001-04-06 14:14:16 +00:00
|
|
|
<title><?php echo variable_get(site_name, "drupal"); ?> - Tears of technology</title>
|
2001-03-24 09:59:06 +00:00
|
|
|
<style type="text/css">
|
Hi all,
I tweaked my theme a bit, don't know if it'll help much but I was able to squeeze a table out of abstract and article. So what you'd say? Well, since the abstract function is called for every post on the main page, I thought that it'd improve it a bit. Of course it isn't much but less tables to show the same is always a good thing. Also, due of the deleted table, I could delete some backgrounds (less traffic from the server to the client) and placed them once in a TABLE header. OK, but a cool side-effect is that it's more HTML 4.01 compliant. Because BACKGROUNDs are allowed in TABLEs and I think it's a bit unclear if they can be in TD yes or no. Either way, this brought to my attention that my !DOCTYPE is strict... I started of strict though... But I think it's a better idea to switch to transitional/loose. OK I think that was it... Oh also because of the changed TABLE structure I had to delete some BGCOLORs. Again, it might be a teeny weeny bit faster, but when you see my site being build up it isn't that nice anymore. (bgcolors are displayed faster than backgrounds). Nevertheless its the result that counts not? Let's hope everything still works.
Jeroen.
2001-03-05 13:56:41 +00:00
|
|
|
<!--
|
2001-04-16 20:39:12 +00:00
|
|
|
body,p,div,li,ul,td,em,FONT,BLOCKQUOTE,FORM{ font-size: 10pt; font-family: Helvetica,Lucida,sans-serif; }
|
|
|
|
SMALL { font-size: 10pt; }
|
Hi all,
I tweaked my theme a bit, don't know if it'll help much but I was able to squeeze a table out of abstract and article. So what you'd say? Well, since the abstract function is called for every post on the main page, I thought that it'd improve it a bit. Of course it isn't much but less tables to show the same is always a good thing. Also, due of the deleted table, I could delete some backgrounds (less traffic from the server to the client) and placed them once in a TABLE header. OK, but a cool side-effect is that it's more HTML 4.01 compliant. Because BACKGROUNDs are allowed in TABLEs and I think it's a bit unclear if they can be in TD yes or no. Either way, this brought to my attention that my !DOCTYPE is strict... I started of strict though... But I think it's a better idea to switch to transitional/loose. OK I think that was it... Oh also because of the changed TABLE structure I had to delete some BGCOLORs. Again, it might be a teeny weeny bit faster, but when you see my site being build up it isn't that nice anymore. (bgcolors are displayed faster than backgrounds). Nevertheless its the result that counts not? Let's hope everything still works.
Jeroen.
2001-03-05 13:56:41 +00:00
|
|
|
-->
|
2001-03-24 09:59:06 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
2001-03-08 08:16:23 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
<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%">
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php $img = (rand(0,150) == 75) ? "logo2.gif" : "logo.gif"; ?>
|
2001-03-24 09:59:06 +00:00
|
|
|
<img src="themes/jeroen/images/<?php echo $img; ?>" alt=""><br /><br />
|
|
|
|
</td>
|
|
|
|
<td width="20%">
|
2001-03-08 08:16:23 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-04-10 20:07:27 +00:00
|
|
|
$mybox = 1;
|
2001-04-08 12:11:24 +00:00
|
|
|
$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 />
|
2001-06-30 09:50:36 +00:00
|
|
|
<a href=\"module.php?mod=search\">search</a>
|
2001-04-08 12:11:24 +00:00
|
|
|
</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>");
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
|
|
|
|
?>
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" align="right">
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-04-16 20:39:12 +00:00
|
|
|
|
2001-02-27 16:55:37 +00:00
|
|
|
theme_blocks("left", $this);
|
2001-02-27 16:23:34 +00:00
|
|
|
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
|
|
|
<td width="80%" valign="top" align="left">
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-02-27 16:23:34 +00:00
|
|
|
|
|
|
|
} // close header function
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-06-29 22:08:57 +00:00
|
|
|
function node($node, $main = 0) {
|
2001-02-27 16:23:34 +00:00
|
|
|
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
<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>
|
2001-05-24 10:05:18 +00:00
|
|
|
<B><?php echo "". check_output($node->title) .""; ?></B>
|
2001-03-24 09:59:06 +00:00
|
|
|
</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>
|
2001-03-10 15:11:12 +00:00
|
|
|
<FONT COLOR="#FEFEFE">
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-03-10 15:11:12 +00:00
|
|
|
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";
|
|
|
|
}
|
2001-05-24 10:05:18 +00:00
|
|
|
echo "<FONT SIZE=\"-1\">". strtr(t("$how by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp), "large")) ."</FONT>";
|
2001-04-18 20:40:21 +00:00
|
|
|
?>
|
2001-03-10 15:11:12 +00:00
|
|
|
</FONT>
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
2001-04-18 20:40:21 +00:00
|
|
|
<?php
|
2001-06-11 20:01:13 +00:00
|
|
|
echo "<td align=\"right\" background=\"themes/jeroen/images/menutitle.gif\" nowrap><b>". node_index($node) ."</b>";
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" valign="top" width="100%">
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-05-24 10:05:18 +00:00
|
|
|
echo "<br />". check_output($node->body, 1) ."<br />";
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" align="right">
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-06-29 22:08:57 +00:00
|
|
|
if ($main)
|
|
|
|
echo $this->links(node_link($node));
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-03-11 20:54:59 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br />
|
2001-01-15 11:20:58 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
|
|
|
|
2001-05-24 10:05:18 +00:00
|
|
|
} // close node function
|
2001-01-26 13:38:46 +00:00
|
|
|
|
2001-03-03 12:17:12 +00:00
|
|
|
function comment($comment, $link = "") {
|
2001-04-08 12:11:24 +00:00
|
|
|
echo "<A NAME=\"$comment->cid\"></a>\n";
|
2001-02-27 16:23:34 +00:00
|
|
|
|
|
|
|
// Create comment header:
|
2001-03-24 09:59:06 +00:00
|
|
|
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%\">";
|
2001-03-08 08:16:23 +00:00
|
|
|
|
2001-02-27 16:23:34 +00:00
|
|
|
// Subject:
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " <tr>";
|
|
|
|
echo " <td align=\"right\" width=\"5%\">";
|
2001-03-10 15:11:12 +00:00
|
|
|
echo " <FONT COLOR=\"#FEFEFE\"><B>". t("Subject") .":</B>";
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " </td>";
|
|
|
|
echo " <td width=\"80%\">";
|
2001-03-10 15:11:12 +00:00
|
|
|
echo " <B>". check_output($comment->subject) ."</B>";
|
|
|
|
echo " </FONT>";
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " </td>";
|
2001-03-01 21:34:09 +00:00
|
|
|
|
2001-02-27 16:23:34 +00:00
|
|
|
// Moderation:
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " <td BGCOLOR=\"#6C6C6C\" background=\"themes/jeroen/images/menutitle.gif\" align=\"right\" ROWSPAN=\"2\" valign=\"middle\" width=\"15%\">";
|
2001-03-10 15:11:12 +00:00
|
|
|
echo " <FONT COLOR=\"#000000\">";
|
|
|
|
echo comment_moderation($comment);
|
|
|
|
echo " </FONT>";
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " </td>";
|
|
|
|
echo " </tr>";
|
2001-03-01 21:34:09 +00:00
|
|
|
|
2001-02-27 16:23:34 +00:00
|
|
|
// Author:
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " <tr>";
|
|
|
|
echo " <td align=\"right\"><FONT COLOR=\"#FEFEFE\">". t("Author") .":</FONT></td><td><B>". format_username($comment->userid) ."</B> ";
|
2001-04-06 14:14:16 +00:00
|
|
|
if ($comment->userid) {
|
2001-02-27 16:23:34 +00:00
|
|
|
// Display extra information line:
|
2001-03-10 15:11:12 +00:00
|
|
|
if ($comment->fake_email) $info .= format_email($comment->fake_email);
|
|
|
|
if (eregi("http://",$comment->url)) $info .= " | " . format_url($comment->url);
|
|
|
|
}
|
2001-02-27 16:23:34 +00:00
|
|
|
// Date:
|
2001-03-10 15:11:12 +00:00
|
|
|
echo " <FONT COLOR=\"#FEFEFE\">on ". format_date($comment->timestamp) ."</FONT>";
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " </td>";
|
|
|
|
echo " </tr>";
|
2001-03-01 21:34:09 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
echo " </table>";
|
|
|
|
echo " </td>";
|
|
|
|
echo " </tr>";
|
2001-03-01 21:34:09 +00:00
|
|
|
|
2001-02-27 16:23:34 +00:00
|
|
|
// Print body of comment:
|
2001-03-11 20:54:59 +00:00
|
|
|
if ($comment) echo "
|
2001-03-24 09:59:06 +00:00
|
|
|
<tr>
|
|
|
|
<td BGCOLOR=\"#E7E7E7\" background=\"themes/jeroen/images/sketch.gif\">". check_output($comment->comment, 1) ."</td>
|
|
|
|
</tr>";
|
2001-03-01 21:34:09 +00:00
|
|
|
|
2001-02-27 16:23:34 +00:00
|
|
|
// Print bottom link(s):
|
2001-03-24 09:59:06 +00:00
|
|
|
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 />";
|
2001-03-01 21:34:09 +00:00
|
|
|
|
2001-02-27 16:23:34 +00:00
|
|
|
} // close comment function
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-07-14 01:01:45 +00:00
|
|
|
function box($subject, $content, $region = "main") {
|
2001-02-28 18:07:29 +00:00
|
|
|
$img = (rand(0, 50) == 25) ? "boxbottomright2.gif" : "boxbottomright1.gif";
|
2001-02-27 16:23:34 +00:00
|
|
|
$width = rand(10, 200);
|
|
|
|
$img2 = (rand(0, 100) == 50) ? "boxtopleftside2.gif" : "boxtopleftside1.gif";
|
|
|
|
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
Made some "major" changes in how I display comments, articles, abstracts. It won't show much different but the ones that know my theme a bit will se a small change. I don't use .gifs anymore to display the borders of the articles e.g. but a table in a table, so you get a small black border. It looks nicer, and you need less .gifs, which is, in my theme an improvement :) I also themed the comments, they weren't yet, and I didn't know it was my thing to do. I still ain't happy with the comment's headers, but it's a start. Just check it out at http://jeroen.drop.org . Things to do, get the footer's navigation bar display nicely and find a better way to display the comment's header. Nevertheless I think it's doable. It's 01.40 now I think I'm going to sleep. But first commit and delete some .gifs from zind.net.
Jeroen.
2001-02-26 00:39:47 +00:00
|
|
|
|
2001-04-16 20:39:12 +00:00
|
|
|
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
|
2001-03-24 09:59:06 +00:00
|
|
|
<tr>
|
2001-04-16 20:39:12 +00:00
|
|
|
<td background="themes/jeroen/images/boxtopleft.gif" width="20" height="20" border="0" nowrap> </td>
|
2001-03-24 09:59:06 +00:00
|
|
|
<td width="<?php echo $width; ?>" background="themes/jeroen/images/boxtop.gif"> </td>
|
2001-04-16 20:39:12 +00:00
|
|
|
<td background="themes/jeroen/images/boxtopmiddle.gif" nowrap> </td>
|
|
|
|
<td background="themes/jeroen/images/boxtop.gif"nowrap> </td>
|
2001-03-24 09:59:06 +00:00
|
|
|
<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>
|
2001-03-10 15:11:12 +00:00
|
|
|
<FONT COLOR="#FEFEFE"><?php echo $subject; ?></FONT>
|
2001-03-24 09:59:06 +00:00
|
|
|
</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">
|
2001-04-08 12:11:24 +00:00
|
|
|
<table width="100%" border="0">
|
2001-03-24 09:59:06 +00:00
|
|
|
<tr>
|
2001-04-08 12:11:24 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
2001-04-10 20:07:27 +00:00
|
|
|
if ($mybox == 1) {
|
|
|
|
echo $content;
|
2001-04-08 12:11:24 +00:00
|
|
|
$mybox = 0;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo "<td>";
|
|
|
|
echo $content;
|
|
|
|
echo "</td>";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
</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 />
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-02-27 16:23:34 +00:00
|
|
|
|
|
|
|
} // close box function
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-01-15 11:20:58 +00:00
|
|
|
function footer() {
|
2001-02-27 16:23:34 +00:00
|
|
|
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
|
|
|
<td width="20%" valign="top" align="right">
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-02-07 22:01:57 +00:00
|
|
|
global $PHP_SELF;
|
|
|
|
|
2001-07-14 01:01:45 +00:00
|
|
|
theme_account("right", $this);
|
2001-02-27 16:55:37 +00:00
|
|
|
theme_blocks("right", $this);
|
2001-02-27 16:23:34 +00:00
|
|
|
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
?>
|
2001-02-27 16:23:34 +00:00
|
|
|
|
2001-03-24 09:59:06 +00:00
|
|
|
</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">
|
2001-06-29 22:08:57 +00:00
|
|
|
<FONT COLOR="#E09226" SIZE="2">[ <?php print $this->links(link_page()); ?> ] </FONT>
|
2001-03-24 09:59:06 +00:00
|
|
|
</td>
|
|
|
|
<td align="right" width="20" background="themes/jeroen/images/footerright.gif" nowrap> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
|
2001-03-09 15:59:44 +00:00
|
|
|
<?php
|
Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.
Jeroen.
2001-03-05 20:46:29 +00:00
|
|
|
|
2001-01-15 11:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
2001-01-10 18:51:15 +00:00
|
|
|
|
2001-04-16 20:39:12 +00:00
|
|
|
?>
|