From 9e94bb610136ceb8cfedf2cc139c4b34ed7a46c4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 30 Mar 2007 07:45:20 +0000 Subject: - Patch #130366 by webchick and steven: improved signature handling. Step 1 of 2. --- themes/bluemarine/comment.tpl.php | 9 ++++++++- themes/chameleon/chameleon.theme | 8 +++++++- themes/engines/phptemplate/comment.tpl.php | 5 +++++ themes/engines/phptemplate/phptemplate.engine | 1 + themes/garland/comment.tpl.php | 5 +++++ themes/pushbutton/comment.tpl.php | 9 ++++++++- 6 files changed, 34 insertions(+), 3 deletions(-) (limited to 'themes') diff --git a/themes/bluemarine/comment.tpl.php b/themes/bluemarine/comment.tpl.php index 02eee299c..810204fc2 100644 --- a/themes/bluemarine/comment.tpl.php +++ b/themes/bluemarine/comment.tpl.php @@ -4,6 +4,13 @@ } ?>

-
+
+ + +
+ +
+ +
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index f4b5b702f..c3da58a40 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -163,7 +163,13 @@ function chameleon_comment($comment, $links = "") { $output = "
status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n"; $output .= "

". l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") ."

\n"; - $output .= "
". $comment->comment ."
\n"; + $output .= "
". $comment->comment; + if ($signature) { + $output .= "
"; + $output .= $signature ."\n"; + $output .= "
\n"; + } + $output .= "
\n"; $output .= "
". theme('links', array_merge($submitted, $links)) ."
\n"; $output .= "
\n"; diff --git a/themes/engines/phptemplate/comment.tpl.php b/themes/engines/phptemplate/comment.tpl.php index c7211b9bf..ac4eeb88a 100644 --- a/themes/engines/phptemplate/comment.tpl.php +++ b/themes/engines/phptemplate/comment.tpl.php @@ -14,6 +14,11 @@
+ +
+ +
+
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index 329762d8d..acde67a34 100644 --- a/themes/engines/phptemplate/phptemplate.engine +++ b/themes/engines/phptemplate/phptemplate.engine @@ -313,6 +313,7 @@ function phptemplate_comment($comment, $links = 0) { 'date' => format_date($comment->timestamp), 'links' => isset($links) ? theme('links', $links) : '', 'new' => $comment->new ? t('new') : '', + 'signature' => $comment->signature, 'picture' => theme_get_setting('toggle_comment_user_picture') ? theme('user_picture', $comment) : '', 'submitted' => t('Submitted by !a on @b.', array('!a' => theme('username', $comment), diff --git a/themes/garland/comment.tpl.php b/themes/garland/comment.tpl.php index 30c5ff937..1ca545f12 100644 --- a/themes/garland/comment.tpl.php +++ b/themes/garland/comment.tpl.php @@ -16,6 +16,11 @@
+ +
+ +
+
diff --git a/themes/pushbutton/comment.tpl.php b/themes/pushbutton/comment.tpl.php index 2f2113b8e..20949e774 100644 --- a/themes/pushbutton/comment.tpl.php +++ b/themes/pushbutton/comment.tpl.php @@ -4,7 +4,14 @@

new) : ?> *
-
+
+ + +
+ +
+ +
-- cgit v1.2.3