From 8e94fe162587c3285554cd3f0eb87a43ffc079b0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Apr 2001 20:40:21 +0000 Subject: - structure.inc: added category_name($cid) and topic_name($tid). They both return a linked string with the respective category, or topic name. Updated all themes to use these new functions. - (stripped tabs from emsa files, nevermind) --- themes/example/example.theme | 4 +--- themes/goofy/goofy.theme | 2 +- themes/jeroen/jeroen.theme | 11 ++++------- themes/marvin/marvin.theme | 2 +- 4 files changed, 7 insertions(+), 12 deletions(-) (limited to 'themes') diff --git a/themes/example/example.theme b/themes/example/example.theme index 8b7d608c8..32b7376de 100644 --- a/themes/example/example.theme +++ b/themes/example/example.theme @@ -60,15 +60,13 @@ format_username($story->userid), "%b" => format_date($story->timestamp, "small"))); ?> cid\">". check_output($story->category) ." / tid\">". check_output($story->topic) .""; - + echo category_name($story->cid) ." / ". topic_name($story->tid); ?> diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme index 69b988730..f60fbfb92 100644 --- a/themes/goofy/goofy.theme +++ b/themes/goofy/goofy.theme @@ -117,7 +117,7 @@ format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?> -
cid\">". check_output($story->category) ." / tid\">". check_output($story->topic) .""; ?>
+
cid) ." / ". topic_name($story->tid); ?>
diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme index 003ae3560..c93b8f4bc 100644 --- a/themes/jeroen/jeroen.theme +++ b/themes/jeroen/jeroen.theme @@ -103,9 +103,7 @@ - ". strtr(t("$how by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp), "large")) ." + echo "". strtr(t("$how by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp), "large")) .""; +?> - - cid\">". check_output($story->category) ." / tid\">". check_output($story->topic) .""; - +". category_name($story->cid) ." / ". topic_name($story->tid) .""; ?> - diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme index 584720919..5a7e33545 100644 --- a/themes/marvin/marvin.theme +++ b/themes/marvin/marvin.theme @@ -51,7 +51,7 @@ print " \"\"\n"; print " \n"; print " \n"; - print " ". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?>cid\">". check_output($story->category) ." / tid\">". check_output($story->topic) ."\n"; + print " ". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?>". category_name($story->cid) ." / ". topic_name($story->tid) ."\n"; print " \n"; print " \n"; print "  \n"; -- cgit v1.2.3