summaryrefslogtreecommitdiff
path: root/themes/example/example.theme
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-04-16 18:21:22 +0000
committerDries Buytaert <dries@buytaert.net>2001-04-16 18:21:22 +0000
commitb1c66cb5de4b37a5292c6901628b5b0697e8a459 (patch)
treea579df0abc46247f5261453a3e9c642c72137dda /themes/example/example.theme
parent2f898ebcff1d5a1125fa46aa85f0e2def1c650f4 (diff)
downloadbrdo-b1c66cb5de4b37a5292c6901628b5b0697e8a459.tar.gz
brdo-b1c66cb5de4b37a5292c6901628b5b0697e8a459.tar.bz2
Another big update so please read this carefully because there is important information hidden in it.
Made it so that we can disable/enable comments on a category by category basis. In order to accomplish this I had to make a few (*temporary*) changes. I moved all comment code from the "module level" (eg. story.module) to the "node level". It was nothing but the logical next step in nodifying drupal. This enables us to add comments to all existing content types including book entries. But also for book entries, this to can be toggled on and off. :-) Moreover module writers don't have to worry about the complex comment logic: it is "abstracted" away. This implies that story.module got smaller, faster and easier to comprehend. :-) In order to accomplish this, I had to update ALL THEMES, which I did - and on my way I updated Goofy, Oranzh and UnConeD - with the previous changes. All themes are up-to-date now! I also had to remove the [ reply to this story ] links, and temporally re-introcuded the "Add comment" button in the "Comment control". Tempora lly that is, UnConeD. ;) I plan to upgrade drop.org either tommorow or wednesday so test away if you have some time to kill. ;) Oh, I also fixed a few bugs and made various small improvements.
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r--themes/example/example.theme15
1 files changed, 3 insertions, 12 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index 9d5cbd250..8b7d608c8 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -47,7 +47,7 @@
} // close header function
- function story($story, $reply = 0) {
+ function story($story, $main = 0) {
?>
<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="3" WIDTH="100%">
@@ -74,27 +74,18 @@
</TR>
<TR>
<TD COLSPAN="2">
-
<?php
-
echo "<P>". check_output($story->abstract, 1) ."</P>";
- if ($reply && $story->body)
+ if (!$main && $story->body)
echo "<P>". check_output($story->body, 1) ."</P>";
-
?>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
-
<?php
-
-
- if (!$reply)
+ if ($main)
echo theme_morelink($this, $story);
- else
- echo $reply;
-
?>
</TD>