From b9952f537d5f1a102e145b0529c78bc31a1509af Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Apr 2001 11:38:12 +0000 Subject: 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) --- themes/example/example.theme | 68 +++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 35 deletions(-) (limited to 'themes/example/example.theme') 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 @@ <? echo variable_get(site_name, "drupal"); ?> - +
"; + echo " "; + echo "
@@ -50,10 +50,10 @@ function story($story, $reply = 0) { ?> - +
@@ -65,13 +65,11 @@ ?> - @@ -112,41 +110,41 @@ echo "cid\">\n"; // Create comment header: - echo "
- title); ?> + title); ?>
- + section) ."\">". check_output($story->section) .""; + echo "cid\">". check_output($story->category) ." / tid\">". check_output($story->topic) .""; ?> -
"; - echo " "; - echo " "; - echo " "; + echo "
"; - echo t("Subject") .":"; - echo " "; - echo " ". check_output($comment->subject); - echo "
"; + echo " "; + echo " "; + echo " "; // Moderation: - echo " "; - echo " "; + echo " "; + echo " "; // Author and date: - echo " "; - echo " "; - echo " "; - echo " "; + echo " "; + echo " "; + echo " "; + echo " "; // Body of comment: - echo " "; - echo " "; + echo " "; - echo " "; - echo "
"; + echo t("Subject") .":"; + echo " "; + echo " ". check_output($comment->subject); + echo " "; - echo comment_moderation($comment); - echo "
"; + echo comment_moderation($comment); + echo "
"; - echo t("Author") .":"; - echo " "; - echo format_username($comment->userid) ." on ". format_date($comment->timestamp); - echo "
"; + echo t("Author") .":"; + echo " "; + echo format_username($comment->userid) ." on ". format_date($comment->timestamp); + echo "
"; - echo check_output($comment->comment, 1); + echo "
"; + echo check_output($comment->comment, 1); // Print navigation / control links: - echo "

$link

"; - echo "
"; + echo "

$link

"; + echo "
"; } // close comment function function box($subject, $content, $options = "") { @@ -156,7 +154,7 @@ -- cgit v1.2.3
-

+