From de7e1fb66aea6cced3349f0bebc020b3485cdd7c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 24 Mar 2001 16:26:56 +0000 Subject: - fixed potential quote problem: wrapped $story->section in a check_output - removed all $story->update related logic - the update field is redundant --- themes/example/example.theme | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'themes/example/example.theme') 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 @@ ?> - + <? echo $site_name; ?> - + @@ -20,7 +20,7 @@ Logo? + "; echo "
-
@@ -43,7 +43,7 @@ @@ -58,7 +58,7 @@ @@ -118,7 +116,7 @@ echo " "; echo " "; echo " "; - + // Print body of comment: if ($comment) echo " "; - + // Print bottom link(s): echo " "; echo "
- subject); ?> + title); ?>
section) ."\">$story->section"; + echo "section) ."\">". check_output($story->section) .""; ?> @@ -68,12 +68,10 @@ ". check_output($story->abstract, 1) ."

"; - if ($story->updates) - echo "

". t("Editor's note by editor\">$story->editor") .":". check_output($story->updates, 1) ."

"; if ($reply) - echo "

". check_output($story->article, 1) ."

"; + echo "

". check_output($story->article, 1) ."

"; ?>
"; echo " "; - + // Subject: echo " "; echo " "; - + // Moderation: echo " "; echo " "; - + // Author: echo " "; echo " "; echo " "; - + echo "
"; @@ -127,13 +125,13 @@ echo " "; echo " ". check_output($comment->subject); echo " "; echo comment_moderation($comment); echo "
". t("Author") .":". format_username($comment->userid); @@ -142,14 +140,14 @@ echo " on ". format_date($comment->timestamp); echo "
"; echo "
" . check_output($comment->comment, 1) ."
$link
"; @@ -160,7 +158,7 @@ echo "
"; echo "
"; - + } // close comment function function box($subject, $content, $options = "") { -- cgit v1.2.3