From 540fdfc0c62f772c26a847177a83b08c5a5c0840 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 24 May 2001 10:05:18 +0000 Subject: - Replaced $theme->story() by a more generic $theme->node(). All themes required an update (and so will your custom themes). --- themes/example/example.theme | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'themes/example/example.theme') diff --git a/themes/example/example.theme b/themes/example/example.theme index 32b7376de..b09563474 100644 --- a/themes/example/example.theme +++ b/themes/example/example.theme @@ -47,35 +47,33 @@ } // close header function - function story($story, $main = 0) { + function node($node, $main = 0) { ?> @@ -83,7 +81,7 @@ @@ -93,7 +91,7 @@ cid\">\n"; -- cgit v1.2.3
- title); ?> + title); ?>
format_username($story->userid), "%b" => format_date($story->timestamp, "small"))); + echo strtr(t("by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "small"))); ?> cid) ." / ". topic_name($story->tid); + echo category_name($node->cid) ." / ". topic_name($node->tid); ?>
". check_output($story->abstract, 1) ."

"; - if (!$main && $story->body) - echo "

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

"; + echo "

". check_output($node->body, 1) ."

"; ?>