summaryrefslogtreecommitdiff
path: root/themes/example/example.theme
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-05-24 10:05:18 +0000
committerDries Buytaert <dries@buytaert.net>2001-05-24 10:05:18 +0000
commit540fdfc0c62f772c26a847177a83b08c5a5c0840 (patch)
tree228cd5c3c0b05582288fefd87a8bc862c2672027 /themes/example/example.theme
parentb0288a46d8f24b0320da588fd4142060ac75d4fe (diff)
downloadbrdo-540fdfc0c62f772c26a847177a83b08c5a5c0840.tar.gz
brdo-540fdfc0c62f772c26a847177a83b08c5a5c0840.tar.bz2
- Replaced $theme->story() by a more generic $theme->node(). All themes
required an update (and so will your custom themes).
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r--themes/example/example.theme16
1 files changed, 7 insertions, 9 deletions
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) {
?>
<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="3" WIDTH="100%">
<TR>
<TD COLSPAN="2">
- <BIG><?php echo check_output($story->title); ?></BIG>
+ <BIG><?php echo check_output($node->title); ?></BIG>
</TD>
</TR>
<TR>
<TD>
<?php
- echo strtr(t("by %a on %b"), array("%a" => 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")));
?>
</TD>
<TD ALIGN="right">
<?php
- echo category_name($story->cid) ." / ". topic_name($story->tid);
+ echo category_name($node->cid) ." / ". topic_name($node->tid);
?>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<?php
- echo "<P>". check_output($story->abstract, 1) ."</P>";
- if (!$main && $story->body)
- echo "<P>". check_output($story->body, 1) ."</P>";
+ echo "<P>". check_output($node->body, 1) ."</P>";
?>
</TD>
</TR>
@@ -83,7 +81,7 @@
<TD COLSPAN="2">
<?php
if ($main)
- echo theme_morelink($this, $story);
+ echo theme_morelink($this, $node);
?>
</TD>
@@ -93,7 +91,7 @@
<?php
- } // close story function
+ } // close node function
function comment($comment, $link = "") {
echo "<A NAME=\"$comment->cid\"></A>\n";