summaryrefslogtreecommitdiff
path: root/themes/example/example.theme
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-24 16:26:56 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-24 16:26:56 +0000
commitde7e1fb66aea6cced3349f0bebc020b3485cdd7c (patch)
treede987f7295fdfec3b39b1cbd28d7b6df8fa68b41 /themes/example/example.theme
parent7afe387d9acb81daa9766b79cb26a7babbb99b28 (diff)
downloadbrdo-de7e1fb66aea6cced3349f0bebc020b3485cdd7c.tar.gz
brdo-de7e1fb66aea6cced3349f0bebc020b3485cdd7c.tar.bz2
- fixed potential quote problem: wrapped $story->section in a check_output
- removed all $story->update related logic - the update field is redundant
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r--themes/example/example.theme30
1 files changed, 14 insertions, 16 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index bea81f153..73037482e 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -8,11 +8,11 @@
?>
<HTML>
-
+
<HEAD>
<TITLE><? echo $site_name; ?></TITLE>
</HEAD>
-
+
<BODY>
<TABLE BORDER="1">
<TR>
@@ -20,7 +20,7 @@
</TD>
Logo? <!-- I left a TD to add a logo of some kind -->
<TD>
- </TD>
+ </TD>
</TR>
<TR>
<TD VALIGN="top">
@@ -43,7 +43,7 @@
<TABLE BORDER="1">
<TR>
<TD COLSPAN="2">
- <?php echo check_output($story->subject); ?>
+ <?php echo check_output($story->title); ?>
</TD>
</TR>
<TR>
@@ -58,7 +58,7 @@
<TD>
<?php
- echo "<A HREF=\"search.php?category=". urlencode($story->section) ."\">$story->section</A>";
+ echo "<A HREF=\"search.php?category=". urlencode($story->section) ."\">". check_output($story->section) ."</A>";
?>
@@ -68,12 +68,10 @@
<TD COLSPAN="2">
<?php
-
+
echo "<P>". check_output($story->abstract, 1) ."</P>";
- if ($story->updates)
- echo "<P>". t("Editor's note by <A HREF=\"account.php?op=userinfo&uname=$story->editor\">$story->editor</A>") .":". check_output($story->updates, 1) ."</P>";
if ($reply)
- echo "<P>". check_output($story->article, 1) ."</P>";
+ echo "<P>". check_output($story->article, 1) ."</P>";
?>
</TD>
@@ -118,7 +116,7 @@
echo " <TR>";
echo " <TD>";
echo " <TABLE BORDER=\"1\">";
-
+
// Subject:
echo " <TR>";
echo " <TD>";
@@ -127,13 +125,13 @@
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);
@@ -142,14 +140,14 @@
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>";
@@ -160,7 +158,7 @@
echo " </TR>";
echo " </TABLE>";
echo " <BR>";
-
+
} // close comment function
function box($subject, $content, $options = "") {