- Patch #819214 by bleen18: the '#' marking comment permalinks is just weird and untranslatable.
parent
7bf8499835
commit
cd9a37e50d
|
@ -2204,8 +2204,10 @@ function template_preprocess_comment(&$variables) {
|
|||
$variables['signature'] = $comment->signature;
|
||||
|
||||
$uri = entity_uri('comment', $comment);
|
||||
$uri['options'] += array('attributes' => array('class' => 'permalink', 'rel' => 'bookmark'));
|
||||
|
||||
$variables['title'] = l($comment->subject, $uri['path'], $uri['options']);
|
||||
$variables['permalink'] = l('#', $uri['path'], $uri['options']);
|
||||
$variables['permalink'] = l(t('Permalink'), $uri['path'], $uri['options']);
|
||||
|
||||
// Preprocess fields.
|
||||
field_attach_preprocess('comment', $comment, $variables['elements'], $variables);
|
||||
|
|
|
@ -572,6 +572,7 @@ h1#page-title,
|
|||
position: relative;
|
||||
}
|
||||
#comments .attribution {
|
||||
padding-top: 20px;
|
||||
float: left; /* LTR */
|
||||
width: 110px;
|
||||
}
|
||||
|
@ -588,6 +589,10 @@ h1#page-title,
|
|||
font-size: 70%;
|
||||
color: #68696b;
|
||||
}
|
||||
#comments .permalink {
|
||||
font-size: 80%;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
#comments .content {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
|
|
@ -63,13 +63,13 @@
|
|||
<?php print $picture; ?>
|
||||
|
||||
<div class="submitted">
|
||||
<?php print $permalink; ?>
|
||||
<p class="commenter-name">
|
||||
<?php print $author; ?>
|
||||
</p>
|
||||
<p class="comment-time">
|
||||
<?php print $created; ?>
|
||||
</p>
|
||||
<?php print $permalink; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue