From f9841d8aac693ad79ab9b30eb05a4772912159db Mon Sep 17 00:00:00 2001 From: Jeroen Bensch Date: Sun, 11 Mar 2001 11:06:49 +0000 Subject: Hi, OK and this should be marvin.theme. We gained like 20 lines or so. But there aren't many graphics in marvin and a lot of stuff I'd put on several lines, Dries doesn't. Nevertheless, a good optimalization. Glad Dries came up with this. :) Jeroen. --- themes/marvin/marvin.theme | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme index 2c6bc4b4b..7ba99d6f8 100644 --- a/themes/marvin/marvin.theme +++ b/themes/marvin/marvin.theme @@ -37,7 +37,6 @@ } function story($story, $reply = 0) { - if (!$reply) { print "\n\n"; print "\n"; print " \n"; @@ -52,32 +51,14 @@ print " \n"; print " \n"; print " \n"; - print " \n"; + if (!$reply) print " \n"; + else print " \n"; print "
\"\"   ". check_output($story->subject) ."
\n"; if ($story->abstract) print "

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

\n"; if ($story->updates) print "

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

\n"; + if ($reply) if ($story->article) print "

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

\n"; print "
 
". theme_morelink($this, $story) ."
". theme_morelink($this, $story) ."
". $reply ."
\n"; print "

\n\n"; - } - else { - print "\n\n"; - print "\n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print "
\"\"   ". check_output($story->subject) ."
\"\"
". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?>department) print "
from the $story->department dept."; ?>
section) ."\">$story->section
 
\n"; - if ($story->abstract) print "

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

\n"; - if ($story->updates) print "

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

\n"; - if ($story->article) print "

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

\n"; - print "
 
". $reply ."
\n"; - print "

\n\n"; - } } function controls() { -- cgit v1.2.3