theme_blocks("all", $this);
?>
|
}
function abstract($story) {
$timestamp = format_date($story->timestamp);
?>
" NOWRAP> |
echo "". check_output($story->subject) .""; ?>
|
if (rand(0,1) == 0) $img = "news2.gif"; else $img = "news4.gif"; if (rand(0,100) == 50) $img = "news5.gif"; ?>
|
|
switch (rand(0,13)) {
case 0: $how = "Yelled at us"; 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 at us"; break; case 7: $how = "Morsed"; break;
case 8: $how = "Flagged"; break; case 9: $how = "Written to us"; break;
case 10: $how = "Made up"; break; case 11: $how = "Uploaded"; break;
case 12: $how = "Forged"; break;
default: $how = "Sneaked through";
}
print "$how by " . format_username($story->userid) . " on $timestamp
|
category) ."\">fgc3; ?>\">$story->category ";
?>
|
if ($story->updates) {
echo " hlc1\">Editor's note: ". check_output($story->updates, 1) ." ";
}
if ($story->abstract) {
echo "". check_output($story->abstract, 1) ." ";
}
?>
|
echo theme_morelink($this, $story);?>
|
|
|
|
}
function article($story, $reply) {
$timestamp = format_date($story->timestamp);
?>
" NOWRAP> |
echo "". check_output($story->subject) .""; ?>
|
if (rand(0, 1) == 0) $img = "news2.gif"; else $img = "news4.gif"; if (rand(0, 100) == 50) $img = news5.gif; ?>
|
|
switch (rand(0,13)) {
case 0: $how = "Yelled at us"; 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 at us"; break; case 7: $how = "Morsed"; break;
case 8: $how = "Flagged"; break; case 9: $how = "Written to us"; break;
case 10: $how = "Made up"; break; case 11: $how = "Uploaded"; break;
case 12: $how = "Forged"; break;
default: $how = "Sneaked through";
}
if ($story->userid) {
print "$how by userid\">$story->userid on $timestamp"; ?> print "
|
category\">fgc3; ?>\">$story->category ";
}
else {
print "Reported to us by $anonymous on $story->timestamp"; ?> print "
|
fgc3; ?>\">$story->category";
}
?>
|
if ($story->updates) {
echo " check_output($story->abstract, 1) hlc1\">Editor's note by editor\">$story->editor:$story->updates ";
}
else {
echo check_output($story->abstract, 1);
}
if ($story->article)
echo "". check_output($story->article, 1) ." ";
?>
|
echo $reply; ?>
|
|
|
|
}
function controls() {
print comment_controls();
}
function comment($comment, $link = "", $thread = "") {
print "cid\">\n";
// Create comment header:
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
echo " ";
// Subject:
echo " ";
echo " Subject: | ";
echo " ". check_output($subject) ."";
echo " | ";
// Moderation:
echo " ";
print comment_moderation($comment);
echo " | ";
echo " ";
// Author:
echo " ";
echo " Author: | " .format_username($comment->userid) . " ";
if ($comment->userid != $anonymous) {
// Display extra information line:
if ($comment->fake_email) $info .= format_email($comment->fake_email);
if (eregi("http://",$comment->url)) $info .= " | " . format_url($comment->url);
}
echo " | ";
echo " ";
// Date
echo " Date: | ". format_date($comment->timestamp) ." | ";
echo " ";
echo " | ";
echo " ";
// Print body of comment:
if ($comment) echo " " . check_output($comment->comment, 1) ." | ";
// Print thread (if any):
if ($thread) echo " $thread | ";
// Print bottom link(s):
echo " [ $link ] | ";
echo " ";
echo " | ";
echo " ";
echo " ";
echo " | ";
echo " ";
echo " ";
echo " ";
}
function box($subject, $content, $options = "") {
if (rand(0,50) == 25) $img = "boxbottomright2.gif";
else $img = "boxbottomright1.gif";
$width = rand(10,200);
if (rand(0,100) == 50) $img2 = "boxtopleftside2.gif";
else $img2 ="boxtopleftside1.gif";
?>
}
function footer() {
?>
|
global $PHP_SELF;
theme_account($this);
?>
|