diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-16 11:38:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-16 11:38:12 +0000 |
commit | b9952f537d5f1a102e145b0529c78bc31a1509af (patch) | |
tree | 51f6a0ab5c46bd4643c5b2ac0579a4a411e45977 /themes/example/example.theme | |
parent | 49a7dccb64a239097d44e235b525708c6a39d29e (diff) | |
download | brdo-b9952f537d5f1a102e145b0529c78bc31a1509af.tar.gz brdo-b9952f537d5f1a102e145b0529c78bc31a1509af.tar.bz2 |
Large commit, read it carefully, and make the required changes to
your theme:
- corrected some missing translations in story.module. Oops!
- grealty simplified the "moderation threshold mechanism"(tm) so
that module writers don't have to worry about this. As a result
story.module and book.module became a bit smaller and easier to
grasp.
- greatly simplified new "category" and "topic" code which is soon
going to replace the "section" code. Needs more work though so
hang on thight.
- includes/section.inc and modules/section.module are replaced by
includes/structure.module and modules/structure.module.
- beautified example.theme a bit without adding HTML complexity:
it is a good example but still useful as a theme
- made theme example use "categories" and "topics"
--> TAKE A LOOK AT IT AND UPDATE YOUR THEME
- made theme marvin use "categories" and "topics"
--> TAKE A LOOK AT IT AND UPDATE YOUR THEME
- added 2 new "story listings" to administrator interface of
story.module to verify story integrity.
- optimized comment table a bit (work in progress)
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r-- | themes/example/example.theme | 68 |
1 files changed, 33 insertions, 35 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme index dbdad530d..9d5cbd250 100644 --- a/themes/example/example.theme +++ b/themes/example/example.theme @@ -19,7 +19,7 @@ <TITLE><? echo variable_get(site_name, "drupal"); ?></TITLE> </HEAD> <BODY> - <TABLE BORDER="1"> + <TABLE BORDER="0"> <TR> <TD> <BIG><A HREF="index.php"><?php print variable_get(site_name, "drupal"); ?></A></BIG> @@ -50,10 +50,10 @@ function story($story, $reply = 0) { ?> - <TABLE BORDER="1" WIDTH="100%"> + <TABLE BORDER="1" CELLSPACING="0" CELLPADDING="3" WIDTH="100%"> <TR> <TD COLSPAN="2"> - <?php echo check_output($story->title); ?> + <BIG><?php echo check_output($story->title); ?></BIG> </TD> </TR> <TR> @@ -65,13 +65,11 @@ ?> </TD> - <TD> - + <TD ALIGN="right"> <?php - echo "<A HREF=\"search.php?category=". urlencode($story->section) ."\">". check_output($story->section) ."</A>"; + 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>"; ?> - </TD> </TR> <TR> @@ -112,41 +110,41 @@ echo "<A NAME=\"$comment->cid\"></A>\n"; // Create comment header: - echo " <TABLE BORDER=\"1\" WIDTH=\"100%\">"; - echo " <TR>"; - echo " <TD>"; - echo t("Subject") .":"; - echo " </TD>"; - echo " <TD>"; - echo " ". check_output($comment->subject); - echo " </TD>"; + echo "<TABLE BORDER=\"1\" CELLSPACING=\"0\" CELLPADDING=\"3\" WIDTH=\"100%\">"; + echo " <TR>"; + echo " <TD>"; + echo t("Subject") .":"; + echo " </TD>"; + echo " <TD>"; + echo " ". check_output($comment->subject); + echo " </TD>"; // Moderation: - echo " <TD>"; - echo comment_moderation($comment); - echo " </TD>"; - echo " </TR>"; + echo " <TD>"; + echo comment_moderation($comment); + echo " </TD>"; + echo " </TR>"; // Author and date: - echo " <TR>"; - echo " <TD>"; - echo t("Author") .":"; - echo " </TD>"; - echo " <TD COLSPAN=\"2\">"; - echo format_username($comment->userid) ." on ". format_date($comment->timestamp); - echo " </TD>"; - echo " </TR>"; + echo " <TR>"; + echo " <TD>"; + echo t("Author") .":"; + echo " </TD>"; + echo " <TD COLSPAN=\"2\">"; + echo format_username($comment->userid) ." on ". format_date($comment->timestamp); + echo " </TD>"; + echo " </TR>"; // Body of comment: - echo " <TR>"; - echo " <TD COLSPAN=\"3\">"; - echo check_output($comment->comment, 1); + echo " <TR>"; + echo " <TD COLSPAN=\"3\">"; + echo check_output($comment->comment, 1); // Print navigation / control links: - echo " <P>$link</P>"; - echo " </TD>"; - echo " </TR>"; - echo " </TABLE>"; + echo " <P>$link</P>"; + echo " </TD>"; + echo " </TR>"; + echo "</TABLE>"; } // close comment function function box($subject, $content, $options = "") { @@ -156,7 +154,7 @@ <TABLE> <TR> <TD> - <DIV ALIGN="center"><B><? echo $subject; ?></B></DIV><HR> + <DIV ALIGN="center"><BIG><? echo $subject; ?></BIG></DIV><HR> </TD> </TR> <TR> |