[futaba] add greentext formatting
This commit is contained in:
parent
3ba8834c20
commit
751a8f61d2
2 changed files with 7 additions and 0 deletions
|
@ -87,6 +87,10 @@ class CustomCommentListTheme extends CommentListTheme
|
|||
} else {
|
||||
$h_comment = $tfe->formatted;
|
||||
}
|
||||
$h_comment = preg_replace("/(^|>)(>[^<\n]*)(<|\n|$)/", '${1}<span class=\'greentext\'>${2}</span>${3}', $h_comment);
|
||||
// handles discrepency in comment page and homepage
|
||||
$h_comment = str_replace("<br>", "", $h_comment);
|
||||
$h_comment = str_replace("\n", "<br>", $h_comment);
|
||||
$i_comment_id = $comment->comment_id;
|
||||
$i_image_id = $comment->image_id;
|
||||
|
||||
|
|
|
@ -160,3 +160,6 @@ TABLE.tag_list>TBODY>TR>TD:after {
|
|||
.thumb {
|
||||
margin: 16px;
|
||||
}
|
||||
.greentext {
|
||||
color: green;
|
||||
}
|
Reference in a new issue