summaryrefslogtreecommitdiff
path: root/themes/example/example.theme
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-04-18 20:40:21 +0000
committerDries Buytaert <dries@buytaert.net>2001-04-18 20:40:21 +0000
commit8e94fe162587c3285554cd3f0eb87a43ffc079b0 (patch)
tree110ac86e2979b80e709f672b3efe88d5d272ca4d /themes/example/example.theme
parent73ad4c765889050c1bf91b93b50b5b3cac5ecd40 (diff)
downloadbrdo-8e94fe162587c3285554cd3f0eb87a43ffc079b0.tar.gz
brdo-8e94fe162587c3285554cd3f0eb87a43ffc079b0.tar.bz2
- 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)
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r--themes/example/example.theme4
1 files changed, 1 insertions, 3 deletions
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 @@
<TD>
<?php
-
echo strtr(t("by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "small")));
?>
</TD>
<TD ALIGN="right">
<?php
- echo "<A HREF=\"index.php?category=$story->cid\">". check_output($story->category) ."</A> / <A HREF=\"index.php?topic=$story->tid\">". check_output($story->topic) ."</A>";
-
+ echo category_name($story->cid) ." / ". topic_name($story->tid);
?>
</TD>
</TR>