summaryrefslogtreecommitdiff
path: root/themes/example/example.theme
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-24 17:50:08 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-24 17:50:08 +0000
commita45fc1a20e1e9b8bf64c286db7a672d3954e88d9 (patch)
tree620f3318bdd4c9bb09b24c74f8e450a2e90c4be8 /themes/example/example.theme
parent8b6e78075c9baf831bd49d8dc0b461401c5174d8 (diff)
downloadbrdo-a45fc1a20e1e9b8bf64c286db7a672d3954e88d9.tar.gz
brdo-a45fc1a20e1e9b8bf64c286db7a672d3954e88d9.tar.bz2
- themes now get there header/footer links through theme_link();
- tidied up example.theme
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r--themes/example/example.theme102
1 files changed, 40 insertions, 62 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index 73037482e..15787c598 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -17,9 +17,14 @@
<TABLE BORDER="1">
<TR>
<TD>
- </TD>
Logo? <!-- I left a TD to add a logo of some kind -->
- <TD>
+ </TD>
+ <TD ALIGN="right" COLSPAN="2">
+
+<?php
+ print theme_link(" | ");
+?>
+
</TD>
</TR>
<TR>
@@ -40,7 +45,7 @@
function story($story, $reply = 0) {
?>
- <TABLE BORDER="1">
+ <TABLE BORDER="1" WIDTH="100%">
<TR>
<TD COLSPAN="2">
<?php echo check_output($story->title); ?>
@@ -106,59 +111,41 @@
echo "<A NAME=\"$comment->cid\"></A>\n";
// Create comment header:
- echo " <TABLE>";
+ echo " <TABLE BORDER=\"1\" WIDTH=\"100%\">";
echo " <TR>";
echo " <TD>";
- echo " <TABLE BORDER=\"1\">";
- echo " <TR>";
- echo " <TD>";
- echo " <TABLE>";
- echo " <TR>";
- echo " <TD>";
- echo " <TABLE BORDER=\"1\">";
-
- // Subject:
- echo " <TR>";
- echo " <TD>";
- echo " ". t("Subject") .":";
- echo " </TD>";
- echo " <TD >";
- echo " ". check_output($comment->subject);
- echo " </TD>";
+ echo t("Subject") .":";
+ echo " </TD>";
+ echo " <TD>";
+ echo " ". check_output($comment->subject);
+ echo " </TD>";
// Moderation:
- echo " <TD>";
- echo comment_moderation($comment);
- echo " </TD>";
- echo " </TR>";
-
- // Author:
- echo " <TR>";
- echo " <TD>". t("Author") .":</FONT></TD><TD>". format_username($comment->userid);
-
- // Date:
- echo " on ". format_date($comment->timestamp);
- echo " </TD>";
- echo " </TR>";
-
- echo " </TABLE>";
- echo " </TD>";
- echo " </TR>";
-
- // Print body of comment:
- if ($comment) echo " <TR><TD>" . check_output($comment->comment, 1) ."</TD></TR>";
-
- // Print bottom link(s):
- echo " <TR><TD>$link</TD></TR>";
- echo " </TABLE>";
- echo " </TD>";
- echo " </TR>";
- echo " </TABLE>";
+ echo " <TD>";
+ echo comment_moderation($comment);
echo " </TD>";
echo " </TR>";
- echo " </TABLE>";
- echo " <BR>";
+ // Author and date:
+ echo " <TR>";
+ echo " <TD>";
+ echo t("Author") .":";
+ echo " </TD>";
+ echo " <TD COLSPAN=\"2\">";
+ echo format_username($comment->userid) ." on ". format_date($comment->timestamp);
+ echo " </TD>";
+ echo " </TR>";
+
+ // Body of comment:
+ echo " <TR>";
+ echo " <TD COLSPAN=\"3\">";
+ echo check_output($comment->comment, 1);
+
+ // Print navigation / control links:
+ echo " <P>$link</P>";
+ echo " </TD>";
+ echo " </TR>";
+ echo " </TABLE>";
} // close comment function
function box($subject, $content, $options = "") {
@@ -224,20 +211,11 @@
</TD>
</TR>
<TR>
- <TD></TD>
- <TD>
- <TABLE BORDER="1">
- <TR>
- <TD></TD>
- <TD>
- <!-- These are just some links from my theme as an example. -->
- <A HREF="index.php">Home</A> <A HREF="module.php?mod=faq">Faq</A> <A HREF="search.php">Search</A> <A HREF="module.php?mod=diary">Diary</A> <A HREF="submit.php">Submit news</A> <A HREF="account.php">Account</A>
- </TD>
- <TD></TD>
- </TR>
- </TABLE>
+ <TD ALIGN="center" COLSPAN="3">
+<?php
+ print theme_link(" | ");
+?>
</TD>
- <TD></TD>
</TR>
</TABLE>
</BODY>