#130366: Better styling for signature separator (thanks webchick).

6.x
Steven Wittens 2007-04-01 05:04:20 +00:00
parent dd30a14208
commit a2baa44499
5 changed files with 9 additions and 6 deletions

View File

@ -1776,7 +1776,7 @@ function theme_comment($comment, $links = array()) {
$output .= '<div class="subject">'. l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) . ' ' . theme('mark', $comment->new) ."</div>\n";
$output .= '<div class="credit">'. t('by %a on %b', array('%a' => theme('username', $comment), '%b' => format_date($comment->timestamp))) ."</div>\n";
$output .= '<div class="body">'. $comment->comment .'</div>';
$output .= '<div class="user-signature clear">'. $comment->signature .'</div>';
$output .= '<div class="clear"><div>—</div>'. $comment->signature .'</div>';
$output .= '<div class="links">'. theme('links', $links) .'</div>';
$output .= '</div>';
return $output;

View File

@ -7,7 +7,8 @@
<div class="content">
<?php print $content; ?>
<?php if ($signature): ?>
<div class="user-signature clear-block">
<div class="clear-block">
<div></div>
<?php print $signature ?>
</div>
<?php endif; ?>

View File

@ -165,7 +165,8 @@ function chameleon_comment($comment, $links = "") {
$output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") ."</h3>\n";
$output .= " <div class=\"content\">". $comment->comment;
if ($signature) {
$output .= " <div class=\"user-signature clear-block\">";
$output .= " <div class=\"clear-block\">";
$output .= "<div>—</div>\n";
$output .= $signature ."\n";
$output .= " </div>\n";
}

View File

@ -17,12 +17,12 @@
<div class="content">
<?php print $content ?>
<?php if ($signature): ?>
<div class="user-signature clear-block">
<div class="clear-block">
<div></div>
<?php print $signature ?>
</div>
<?php endif; ?>
</div>
</div>
<?php if ($links): ?>

View File

@ -7,7 +7,8 @@
<div class="content">
<?php print $content ?>
<?php if ($signature): ?>
<div class="user-signature clear-block">
<div class="clear-block">
<div></div>
<?php print $signature ?>
</div>
<?php endif; ?>